Slow with basic authentication

41 views
Skip to first unread message

Sebas tech

unread,
Jan 13, 2021, 2:26:48 PM1/13/21
to Prometheus Users
Enabled the basic authentication as per v2.24.

Loading a dashboard in Grafana is a lot slower now with the node-exporter graphs appearing slowly one by one. Is this to be expected because maybe (a guess) each query has to be authenticated now or is this not normal?

Julien Pivotto

unread,
Jan 13, 2021, 2:38:31 PM1/13/21
to Sebas tech, Prometheus Users
Hello,

Yes this is an issue due to bcrypt. As a workaround you can reduce the
roundtrips to 4.

I also note that Prometheus is not the only one to have this issue, e.g.
caddy had that too:
https://github.com/caddyserver/caddy/issues/3462
Which they fixed by 'caching' the passwords:
https://github.com/caddyserver/caddy/commit/9a7756c6e4b4ddb945bede3ddb2dfbf241208915

I will probably propose such an implementation so further
implementations hopefully see improvements in that regards.

>
> --
> You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/9921f002-689c-44d4-b8fb-bf28534813e5n%40googlegroups.com.


--
Julien Pivotto
@roidelapluie

Sebas tech

unread,
Jan 13, 2021, 3:29:13 PM1/13/21
to Prometheus Users
Thanks! Using 4 now. The performance improved a lot.
Hopefully with your proposal implementation the performance will be close to no auth.

Julien Pivotto

unread,
Jan 20, 2021, 7:26:11 AM1/20/21
to Sebas tech, Prometheus Users
Hello Sebas,

Can you please upgrade to 2.24.1 which solves the issue.
> To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/ba832025-75a3-4e45-8555-a9daf0aca597n%40googlegroups.com.


--
Julien Pivotto
@roidelapluie
Reply all
Reply to author
Forward
0 new messages