On Monday, 19 September 2022 at 23:20:20 UTC+1 pradha...@gmail.com wrote: > I have basic auth enabled. Is it possible to use basic auth and enable the > prometheus scraping itself? > > Yes: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config
scrape_configs: - job_name: "prometheus" basic_auth: username: "foo" password: "bar" # or: password_file: /etc/prometheus/scape.password static_configs: - targets: ["localhost:9090"] -- 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 prometheus-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/d3b6e1d9-a600-4f85-8bb5-993974f694ffn%40googlegroups.com.