Configuration

global:
  scrape_interval: 15s
  scrape_timeout: 10s
  evaluation_interval: 15s
  external_labels:
    monitor: example
alerting:
  alertmanagers:
  - follow_redirects: true
    enable_http2: true
    scheme: http
    timeout: 10s
    api_version: v2
    static_configs:
    - targets:
      - localhost:9093
rule_files:
- /etc/prometheus/synapse-v2.rules
scrape_configs:
- job_name: prometheus
  honor_timestamps: true
  scrape_interval: 5s
  scrape_timeout: 5s
  metrics_path: /metrics
  scheme: http
  follow_redirects: true
  enable_http2: true
  static_configs:
  - targets:
    - localhost:9090
- job_name: node
  honor_timestamps: true
  scrape_interval: 15s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  follow_redirects: true
  enable_http2: true
  static_configs:
  - targets:
    - localhost:9100
- job_name: synapse
  honor_timestamps: true
  scrape_interval: 15s
  scrape_timeout: 10s
  metrics_path: /_synapse/metrics
  scheme: http
  follow_redirects: true
  enable_http2: true
  static_configs:
  - targets:
    - localhost:9092
    labels:
      index: "0"
      instance: asra.gr
      job: master
  - targets:
    - localhost:19090
    labels:
      index: "0"
      instance: asra.gr
      job: generic
  - targets:
    - localhost:19091
    labels:
      index: "1"
      instance: asra.gr
      job: generic
  - targets:
    - localhost:19092
    labels:
      index: "2"
      instance: asra.gr
      job: generic
  - targets:
    - localhost:19093
    labels:
      index: "3"
      instance: asra.gr
      job: generic
  - targets:
    - localhost:19190
    labels:
      index: "0"
      instance: asra.gr
      job: federation_sender
  - targets:
    - localhost:19191
    labels:
      index: "1"
      instance: asra.gr
      job: federation_sender
  - targets:
    - localhost:19290
    labels:
      index: "0"
      instance: asra.gr
      job: frontend_proxy
  - targets:
    - localhost:19390
    labels:
      index: "0"
      instance: asra.gr
      job: user_dir
- job_name: mediarepo
  honor_timestamps: true
  scrape_interval: 15s
  scrape_timeout: 10s
  metrics_path: /_media/metrics
  scheme: http
  follow_redirects: true
  enable_http2: true
  static_configs:
  - targets:
    - mediarepo.asra.gr:29000
    labels:
      index: "1"
      instance: mediarepo.asra.gr
      job: master
- job_name: monitorbot
  honor_timestamps: true
  scrape_interval: 15s
  scrape_timeout: 10s
  metrics_path: /_monitorbot/metrics
  scheme: http
  follow_redirects: true
  enable_http2: true
  static_configs:
  - targets:
    - 10.52.123.4:9000