aboutsummaryrefslogtreecommitdiff
path: root/cluster/staging/app/telemetry/config/prometheus.yml
blob: 75c87a070e37541e39b15ad539ac3072cced135b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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/prom/consul.crt
        cert_file: /etc/prom/consul-client.crt
        key_file: /etc/prom/consul-client.key

  - job_name: 'garage'
    authorization:
      type: Bearer
      credentials: {{ key "secrets/garage-staging/metrics_token" }}
    consul_sd_configs:
    - server: 'https://localhost:8501'
      services:
        - 'garage-staging-admin'
      tls_config:
        ca_file: /etc/prom/consul.crt
        cert_file: /etc/prom/consul-client.crt
        key_file: /etc/prom/consul-client.key

  - job_name: 'tricot'
    consul_sd_configs:
    - server: 'https://localhost:8501'
      services:
        - 'tricot-metrics'
      tls_config:
        ca_file: /etc/prom/consul.crt
        cert_file: /etc/prom/consul-client.crt
        key_file: /etc/prom/consul-client.key