Depends what you mean by "login". Is it filling in a form and POSTing it? HTTP Basic Auth? Javascript magic? Something else?
If it's filling in a form, then you should be able to provide the form content using "method: POST" and "body:" attributes of the http_probe <https://github.com/prometheus/blackbox_exporter/blob/master/CONFIGURATION.md#http_probe>. You can check that you get a redirect status (e.g. 302) using "valid_status_codes", and it will measure the response time. You'll have to ensure the body is correctly formatted/encoded, and will probably have to set headers like "Content-Type: application/x-www-form-urlencoded". You can probably capture what you need by logging in while your browser's developer console is open. On Monday, 3 March 2025 at 07:21:52 UTC Dương Hưng wrote: > Can anyone help me in this situation: > I have a webpage *https://example.com/login <https://example.com/login>*. > Then I enter username/password and this webpage redirect to > *https://example.com/loginSuccess > <https://example.com/loginSuccess>* or *https://example.com/loginFailed > <https://example.com/loginFailed>*. > > And I want to monitor that redirect time by blackbox exporter and > visualize with grafana. > > Thanks > -- 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 [email protected]. To view this discussion visit https://groups.google.com/d/msgid/prometheus-users/d4f071cc-7ea5-4782-9ab4-2a2e2dd47d9bn%40googlegroups.com.

