Hey there,
Two questions:
Query 1:
How does prometheus basic_auth exactly work on targets ? (basically security of scrape target)? Would be helpful if you could tell the same in detail.
Query 2:
Based on my exploration on security over Prometheus target, we can either give username/password (in file also), or bearer token.
Is it possible to configure prometheus in such a way that it does one time login, basically post a curl request with username and password as payload on a give URL like <ip>:<port>/login, which in turn gives token and prometheus uses the same token every time it fetches metrics from the target.
Thanks,
Guna