aboutsummaryrefslogblamecommitdiff
path: root/cluster/prod/app/telemetry/config/prometheus.yml
blob: 42d438ce92f0365d6dc37a71e0a9b065a96861df (plain) (tree)





























                                                                         












                                                             
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

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