Configuration

global:
  scrape_interval: 2m
  scrape_timeout: 10s
  evaluation_interval: 1m
alerting:
  alertmanagers:
  - static_configs:
    - targets:
      - localhost:9093
    scheme: http
    timeout: 10s
rule_files:
- /etc/prometheus/alert_mstdn.yml
scrape_configs:
- job_name: mstdn-servers-node
  scrape_interval: 2m
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  static_configs:
  - targets:
    - hack.syscaller.jp:9100
    - pgmno.syscaller.jp:9100
- job_name: minio
  scrape_interval: 2m
  scrape_timeout: 10s
  metrics_path: /minio/prometheus/metrics
  scheme: http
  static_configs:
  - targets:
    - pgmno.syscaller.jp:19550
- job_name: postgresql
  scrape_interval: 2m
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  static_configs:
  - targets:
    - pgmno.syscaller.jp:19541
- job_name: redis
  scrape_interval: 2m
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  static_configs:
  - targets:
    - hack.syscaller.jp:19542
- job_name: blackbox
  params:
    module:
    - http_2xx
  scrape_interval: 2m
  scrape_timeout: 10s
  metrics_path: /probe
  scheme: http
  static_configs:
  - targets:
    - https://hack.syscaller.jp
    - https://hack.syscaller.jp/@tSU_RooT/101118334999239873
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.*)
    target_label: __param_target
    replacement: $1
    action: replace
  - source_labels: [__param_target]
    separator: ;
    regex: (.*)
    target_label: instance
    replacement: $1
    action: replace
  - separator: ;
    regex: (.*)
    target_label: __address__
    replacement: localhost:9115
    action: replace