Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create users to management for full access and read only users for netdata log monitoring? #691

Closed
algoritmsystems opened this issue Jul 10, 2024 · 8 comments
Labels
question Further information is requested

Comments

@algoritmsystems
Copy link

How to create users to management for full access and read only users for netdata log monitoring system?
Is it doing on leader node?
Thanks in advance!

@vitabaks
Copy link
Owner

You can do this simply by using SQL or by defining them in the postgresql_users variable in order for automation to create these users.

@algoritmsystems
Copy link
Author

Thanks you very much for your work!

@Jamic28
Copy link

Jamic28 commented Jul 18, 2024

You can do this simply by using SQL or by defining them in the postgresql_users variable in order for automation to create these users.

I configured main.yml:

...postgresql_users:

  • { name: "{{ pgbouncer_auth_username }}", password: "{{ pgbouncer_auth_password }}", flags: "LOGIN", role: "" }
  • { name: "logmon", password: "logmonpass", flags: "LOGIN", role: "pg_monitor" }
    ...

But how to loging in netdata web interface with logmon user?

@vitabaks
Copy link
Owner

How is Netdata related to this? This is a user of the Postgres database.

@Jamic28
Copy link

Jamic28 commented Jul 19, 2024

You can do this simply by using SQL or by defining them in the postgresql_users variable in order for automation to create these users.

I tried follow this instructions. I thought that netdata stores it's metrics and logs in this database.
In my main.yml file I configured "netdata = true", so it is installing and working from the address ip:19999. But everyone has access to this web.
Can I restrict access to the netdata by creating users for monitoring and for administring separately?
Thank you in advance!

@vitabaks
Copy link
Owner

As far as I know, there is no authorization in the local Netdata, only in the cloud. Please see the documentation of the Netdata project.

@Jamic28
Copy link

Jamic28 commented Jul 19, 2024

As far as I know, there is no authorization in the local Netdata, only in the cloud. Please see the documentation of the Netdata project.

yes, but some functions as logs you can's see without sign in.
Did you try to integrate pmm instead of netdata?

@vitabaks
Copy link
Owner

Did you try to integrate pmm instead of netdata?

No. See related issue #249

@vitabaks vitabaks added the question Further information is requested label Jul 25, 2024
@vitabaks vitabaks closed this as not planned Won't fix, can't repro, duplicate, stale Aug 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants
@vitabaks @algoritmsystems @Jamic28 and others