Can Prometheus be used to login to a website?

Hi team - is there anyway to configure prometheus to login to a website? when we try to Probe a URL which has login page , can we make the prometheus to enter the credentials ?

If it’s a basic auth login form you can use the basic_auth option. Otherwise the application might offer some authentication tokens for which you might use the authorization option.

If it’s really a HTML login form, the only way I see is to write a simple exporter that accomplishes that task.

1 Like