Supervise http/https Form authentication

10 views
Skip to first unread message

Ilhem Hamdi

unread,
Apr 15, 2020, 5:49:30 AM4/15/20
to Prometheus Users
Hello Dear Prometheus Users,

I want to supervise the  sucess of authentication by entring the correct the login/password  on http/https  forms .

Here is why :  Sometimes when there are problemes with database server . the authentication does not work even with entering the correct credentials 

Any Idea how ?

Thanks in advance :)


Brian Candler

unread,
Apr 15, 2020, 6:52:44 AM4/15/20
to Prometheus Users
Yes: increment a counter whenever there's a failed login.  Scrape that counter from prometheus.

You can either instrument your web application directly with one of the many prometheus client libraries out there; or you can use statsd_exporter which will maintain the counters for you (and you send it a message to increment a counter)

It's probably a good idea to have a second counter for successful logins too, then you can take the ratio of the two to get the percentage success.
Reply all
Reply to author
Forward
0 new messages