summaryrefslogtreecommitdiff
path: root/playbooks/roles/mon/templates/volumes/prometheus/config.yml
diff options
context:
space:
mode:
Diffstat (limited to 'playbooks/roles/mon/templates/volumes/prometheus/config.yml')
-rw-r--r--playbooks/roles/mon/templates/volumes/prometheus/config.yml39
1 files changed, 39 insertions, 0 deletions
diff --git a/playbooks/roles/mon/templates/volumes/prometheus/config.yml b/playbooks/roles/mon/templates/volumes/prometheus/config.yml
new file mode 100644
index 0000000..be59f7f
--- /dev/null
+++ b/playbooks/roles/mon/templates/volumes/prometheus/config.yml
@@ -0,0 +1,39 @@
+global:
+ scrape_interval: 20s
+
+scrape_configs:
+ - job_name: prometheus
+ static_configs:
+ - targets:
+ - mon_prometheus:9090
+
+ - job_name: gatus
+ static_configs:
+ - targets:
+ - mon_mon:8080
+
+ - job_name: oauth-proxy
+ static_configs:
+ - targets:
+ - traefik_oauth2-proxy:5577
+
+ - job_name: traefik
+ static_configs:
+ - targets:
+ - traefik_traefik:5577
+
+ - job_name: headscale
+ static_configs:
+ - targets:
+ - "{{ headscale_host }}:443"
+ basic_auth:
+ username: '{{ metrics_htpasswd_user }}'
+ password: '{{ metrics_htpasswd_passwd }}'
+
+ - job_name: outbound
+ static_configs:
+ - targets:
+ - "{{ outbound_domain }}:443"
+ basic_auth:
+ username: '{{ metrics_htpasswd_user }}'
+ password: '{{ metrics_htpasswd_passwd }}'