prometheus: use basic auth secrets
This commit is contained in:
@@ -7,6 +7,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 9090:9090
|
- 9090:9090
|
||||||
volumes:
|
volumes:
|
||||||
|
- ./.basicauthpass:/etc/prometheus/.basicauthpass
|
||||||
- ./prometheus.yaml:/etc/prometheus/prometheus.yaml
|
- ./prometheus.yaml:/etc/prometheus/prometheus.yaml
|
||||||
- ./web-config.yaml:/etc/prometheus/web-config.yaml
|
- ./web-config.yaml:/etc/prometheus/web-config.yaml
|
||||||
- prometheus-data:/prometheus
|
- prometheus-data:/prometheus
|
||||||
|
|||||||
@@ -27,3 +27,6 @@ scrape_configs:
|
|||||||
|
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ["localhost:9090"]
|
- targets: ["localhost:9090"]
|
||||||
|
basic_auth:
|
||||||
|
username: prometheus
|
||||||
|
password_file: /etc/prometheus/.basicauthpass
|
||||||
Reference in New Issue
Block a user