The only settings allowed in a file_sd
<https://prometheus.io/docs/prometheus/latest/configuration/configuration/#file_sd_config>
config
are "targets" and "labels".
Basic Auth goes in the prometheus.yml file, not the targets file. If you
have groups of targets with different basic auth credentials, this means
they'll have to go in separate jobs in prometheus.
Some things you can override by setting special labels, but I don't think
you set auth credentials this way.
- targets:
- foo:9100
- bar:9100
labels:
__metrics_path__: /xxx
__scheme__: http
- targets:
- baz:9100
labels:
__metrics_path__: /yyy
__scheme__: https
--
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 on the web visit
https://groups.google.com/d/msgid/prometheus-users/ba04483b-7c65-42e6-bc79-bee3a51a5869%40googlegroups.com.