aboutsummaryrefslogtreecommitdiff
path: root/cluster/prod/app/telemetry/config/prometheus.yml
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-10-16 18:12:57 +0200
committerAlex Auvolat <alex@adnab.me>2022-10-16 18:12:57 +0200
commit5613ed99086618b91441d84620bdbe27a94ad1d2 (patch)
tree304f247c4099a430a29f6d44f5f41172a2c50a7d /cluster/prod/app/telemetry/config/prometheus.yml
parent42409de1b1638f5d935831dc66ddff9a1d9ba29d (diff)
downloadnixcfg-5613ed99086618b91441d84620bdbe27a94ad1d2.tar.gz
nixcfg-5613ed99086618b91441d84620bdbe27a94ad1d2.zip
Complete telemetry configuration
Diffstat (limited to 'cluster/prod/app/telemetry/config/prometheus.yml')
-rw-r--r--cluster/prod/app/telemetry/config/prometheus.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/cluster/prod/app/telemetry/config/prometheus.yml b/cluster/prod/app/telemetry/config/prometheus.yml
index 42d438c..a52b64d 100644
--- a/cluster/prod/app/telemetry/config/prometheus.yml
+++ b/cluster/prod/app/telemetry/config/prometheus.yml
@@ -41,3 +41,27 @@ scrape_configs:
ca_file: /etc/prometheus/consul.crt
cert_file: /etc/prometheus/consul-client.crt
key_file: /etc/prometheus/consul-client.key
+
+ # see https://prometheus.io/docs/prometheus/latest/configuration/configuration/#static_config
+ # and https://www.nomadproject.io/api-docs/metrics
+ # and https://learn.hashicorp.com/tutorials/nomad/prometheus-metrics
+ # dashboard at https://grafana.com/grafana/dashboards/3800
+ - job_name: 'nomad'
+ scrape_interval: 10s
+ metrics_path: "/v1/metrics"
+ params:
+ format: ['prometheus']
+ scheme: 'https'
+ tls_config:
+ ca_file: /etc/prometheus/nomad.crt
+ cert_file: /etc/prometheus/nomad-client.crt
+ key_file: /etc/prometheus/nomad-client.key
+ insecure_skip_verify: true
+ consul_sd_configs:
+ - server: 'https://localhost:8501'
+ services:
+ - 'nomad-client'
+ tls_config:
+ ca_file: /etc/prometheus/consul.crt
+ cert_file: /etc/prometheus/consul-client.crt
+ key_file: /etc/prometheus/consul-client.key