global:
  scrape_interval: 15s
  evaluation_interval: 15s
  external_labels:
    monitor: manage-observability

alerting:
  alertmanagers:
    - static_configs:
        - targets:
            - alertmanager:9093

rule_files:
  - /etc/prometheus/rules/*.yml

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

  - job_name: node-exporter
    static_configs:
      - targets:
          - node-exporter:9100

  - job_name: loki
    static_configs:
      - targets:
          - loki:3100

  - job_name: alertmanager
    static_configs:
      - targets:
          - alertmanager:9093

  - job_name: grafana
    static_configs:
      - targets:
          - grafana:3000

  - job_name: node-exporter-remote
    file_sd_configs:
      - files:
          - /etc/prometheus/file-sd/node_exporter_targets.json
        refresh_interval: 30s
