Adding pmm-client and accessing Prometheus UI without authentication

Hi everyone,
I’m currently testing the v2.4.0 running in docker which works fine.
I have an “old” pmm v1 which was configured without authentication and I cannot reproduce this behavior in the v2.
If I disable the authentication on v2, my client cannot join the server (permission denied). Same behavior when I create an “Editor” user.
I can only add a client if I use an Admin user.
Is it a normal behavior, or is there a way to do it ? At least, is it possible to disable the authentication for the prometheus interface?
Any help would be appreciated, thanks !

Hi,
Directive “auth_request off” can be used in nginx configuration file (/etc/nginx/conf.d/pmm.conf) for the location /prometheus 

@adivinho
 Thank you for your quick answer, it works well. 
Can you tell me if it’s possible also to deactivate authentication for pmm-client to join the server ? Or at least confirm me that only Admin credentials must be used ?

Hi @Chr0my,
It can’t be deactivated. Any account with role “admin” can be used for connecting to pmm server.


Thank you that’s what I thought.