Hi, I might not see the obvious, but I wonder how I can create a job with multiple target, which use https and basic authentiation. But every target uses a different username and password.
Up to now my prometheus.yml looks like this
- job_name: 'my-job'
scrape_interval: 20s
static_configs:
- targets: ['test2.app1']
labels:
environment: test2
- targets: ['test3.app1']
labels:
environment: test3
scheme: https
basic_auth:
username: my-user
password: secret
Can I specify the basic_auth values also below each target and overwriting the definition on the job level.
Or is there a special label like __metrics_path__ and I can use relabeling.
As Isaaid I might overlook the obvois, but I could find no information for this situationj