Merge branch 'main' of https://dns.s-martika.com/smartika/Wordpress-Ansible
This commit is contained in:
@@ -11,6 +11,18 @@ services:
|
|||||||
- snake_net
|
- snake_net
|
||||||
restart: unless-stopped
|
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:
|
grafana:
|
||||||
image: grafana/grafana:latest
|
image: grafana/grafana:latest
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
@@ -6,3 +6,7 @@ scrape_configs:
|
|||||||
- job_name: "prometheus"
|
- job_name: "prometheus"
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ["localhost:9090"]
|
- targets: ["localhost:9090"]
|
||||||
|
|
||||||
|
- job_name: 'nginx'
|
||||||
|
static_configs:
|
||||||
|
- targets: ['nginx-prometheus-exporter:9113']
|
||||||
|
|||||||
Reference in New Issue
Block a user