Files
infra/stacks/monitoring/prometheus/prometheus.yml

38 lines
775 B
YAML

global:
scrape_interval: 15s
evaluation_interval: 15s
external_labels:
monitor: ruzzy-infra
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
file_sd_configs:
- files: ['/etc/prometheus/targets/node/*.yml']
- job_name: cadvisor
file_sd_configs:
- files: ['/etc/prometheus/targets/cadvisor/*.yml']
- job_name: gitea
metrics_path: /metrics
static_configs:
- targets: ["gitea:3000"]
labels:
instance: fr1
- job_name: openvpn
file_sd_configs:
- files: ["/etc/prometheus/targets/openvpn/*.yml"]