Move files into application directories
This commit is contained in:
21
ansible/roles/forrest/files/prometheus/docker-compose.yml
Normal file
21
ansible/roles/forrest/files/prometheus/docker-compose.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
|
20
ansible/roles/forrest/files/prometheus/prometheus.yml
Normal file
20
ansible/roles/forrest/files/prometheus/prometheus.yml
Normal file
@ -0,0 +1,20 @@
|
||||
scrape_configs:
|
||||
- job_name: telegraf
|
||||
metric_relabel_configs:
|
||||
- source_labels: [__name__]
|
||||
regex: go_.+
|
||||
action: drop
|
||||
|
||||
static_configs:
|
||||
- targets:
|
||||
- telegraf:9273
|
||||
- job_name: traefik
|
||||
metric_relabel_configs:
|
||||
- source_labels: [__name__]
|
||||
regex: go_.+
|
||||
action: drop
|
||||
|
||||
static_configs:
|
||||
- targets:
|
||||
- 10.23.2.3:8080 # grimes
|
||||
- 192.168.2.47:8080 # pve-docker
|
Reference in New Issue
Block a user