Add prometheus for metrics
This commit is contained in:
21
ansible/roles/forrest/files/docker-compose-prometheus.yml
Normal file
21
ansible/roles/forrest/files/docker-compose-prometheus.yml
Normal file
@ -0,0 +1,21 @@
|
||||
version: "2.3"
|
||||
|
||||
services:
|
||||
prometheus:
|
||||
image: prom/prometheus:latest
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./prometheus.yml:/etc/prometheus/prometheus.yml
|
||||
- /mnt/tank/dbs/prometheus/forrest/:/prometheus/
|
||||
networks:
|
||||
- default
|
||||
- prometheus
|
||||
- grafana
|
||||
ports:
|
||||
- "{{ protected_ip }}:9090:9090"
|
||||
|
||||
networks:
|
||||
prometheus:
|
||||
external: true
|
||||
grafana:
|
||||
external: true
|
Reference in New Issue
Block a user