global:
  scrape_interval: 15s
  evaluation_interval: 15s

rule_files:
  - 'alert-rules.yml'

alerting:
  alertmanagers:
    - static_configs:
        - targets: ['alertmanager:9093']

scrape_configs:
  - job_name: 'goodgo-api'
    metrics_path: '/metrics'
    static_configs:
      # host.docker.internal for dev (API on host), api:3001 for prod (API in container)
      - targets: ['host.docker.internal:3001']
        labels:
          service: 'goodgo-api'
          environment: 'development'
      - targets: ['api:3001']
        labels:
          service: 'goodgo-api'
          environment: 'production'

  - job_name: 'prometheus'
    static_configs:
      - targets: ['localhost:9090']
