aboutsummaryrefslogtreecommitdiff
path: root/cluster/prod/app/telemetry/config/prometheus.yml
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-08-25 13:59:40 +0200
committerAlex Auvolat <alex@adnab.me>2022-08-25 13:59:40 +0200
commit72d033dcd40a65ccf7f41f51af356ffc20144c30 (patch)
tree2b1247bcae11a1f993590bc9db8bf08a53564350 /cluster/prod/app/telemetry/config/prometheus.yml
parentfd3ed44dad783c15f2793788f9384d48760666a3 (diff)
downloadnixcfg-72d033dcd40a65ccf7f41f51af356ffc20144c30.tar.gz
nixcfg-72d033dcd40a65ccf7f41f51af356ffc20144c30.zip
Remove garage files at bad location, add basic telemetry
Diffstat (limited to 'cluster/prod/app/telemetry/config/prometheus.yml')
-rw-r--r--cluster/prod/app/telemetry/config/prometheus.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/cluster/prod/app/telemetry/config/prometheus.yml b/cluster/prod/app/telemetry/config/prometheus.yml
new file mode 100644
index 0000000..d30ee13
--- /dev/null
+++ b/cluster/prod/app/telemetry/config/prometheus.yml
@@ -0,0 +1,30 @@
+global:
+ scrape_interval: 15s # By default, scrape targets every 15 seconds.
+
+scrape_configs:
+ - job_name: 'prometheus'
+ static_configs:
+ - targets: ['localhost:9090']
+
+ - job_name: 'node-exporter'
+ consul_sd_configs:
+ - server: 'https://localhost:8501'
+ services:
+ - 'node-exporter'
+ tls_config:
+ ca_file: /etc/prometheus/consul.crt
+ cert_file: /etc/prometheus/consul-client.crt
+ key_file: /etc/prometheus/consul-client.key
+
+ - job_name: 'garage'
+ authorization:
+ type: Bearer
+ credentials: {{ key "secrets/garage/metrics_token" }}
+ consul_sd_configs:
+ - server: 'https://localhost:8501'
+ services:
+ - 'garage-admin'
+ tls_config:
+ ca_file: /etc/prometheus/consul.crt
+ cert_file: /etc/prometheus/consul-client.crt
+ key_file: /etc/prometheus/consul-client.key