Compare commits
2 Commits
1e1d4913a8
...
ddcc2ace6a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ddcc2ace6a | ||
|
|
dc23f3ac69 |
@@ -11,6 +11,18 @@ services:
|
||||
- snake_net
|
||||
restart: unless-stopped
|
||||
|
||||
nginx-prometheus-exporter:
|
||||
image: nginx/nginx-prometheus-exporter:latest
|
||||
container_name: nginx-prometheus-exporter
|
||||
ports:
|
||||
- "9113:9113"
|
||||
environment:
|
||||
- NGINX_STATUS_URL=http://nginx:8080/metrics
|
||||
networks:
|
||||
- snake_net
|
||||
|
||||
|
||||
|
||||
grafana:
|
||||
image: grafana/grafana:latest
|
||||
volumes:
|
||||
|
||||
@@ -6,3 +6,7 @@ scrape_configs:
|
||||
- job_name: "prometheus"
|
||||
static_configs:
|
||||
- targets: ["localhost:9090"]
|
||||
|
||||
- job_name: 'nginx'
|
||||
static_configs:
|
||||
- targets: ['nginx-prometheus-exporter:9113']
|
||||
|
||||
Reference in New Issue
Block a user