global:
  scrape_interval: 15s
  scrape_timeout: 5s
  evaluation_interval: 15s
  external_labels:
    stack: pg_local_cache

rule_files:
  - /etc/prometheus/alerts.yml

scrape_configs:
  - job_name: pg-local-cache
    static_configs:
      - targets:
          - postgres-exporter:9187

  - job_name: prometheus
    static_configs:
      - targets:
          - localhost:9090

  # The target is intentionally down unless the opt-in "host-metrics" Compose
  # profile is enabled. No availability alert is attached to this job.
  - job_name: cadvisor
    scrape_interval: 30s
    static_configs:
      - targets:
          - cadvisor:8080
