161 lines
3.2 KiB
YAML
161 lines
3.2 KiB
YAML
global:
|
|
scrape_interval: 15s
|
|
evaluation_interval: 15s
|
|
|
|
#alerting:
|
|
# alertmanagers:
|
|
# - static_configs:
|
|
# - targets:
|
|
# - alertmanager:9093
|
|
|
|
scrape_configs:
|
|
|
|
# Prometheus itself
|
|
- job_name: "prometheus"
|
|
static_configs:
|
|
- targets: ["prometheus:9090"]
|
|
labels:
|
|
role: prometheus
|
|
# =========================
|
|
# Node Exporters (ALL hosts)
|
|
# =========================
|
|
- job_name: "node"
|
|
static_configs:
|
|
- targets:
|
|
- node-exporter:9100
|
|
labels:
|
|
role: docker
|
|
|
|
- targets:
|
|
- raspberrypi.tail13f623.ts.net:9100
|
|
labels:
|
|
role: raspberrypi
|
|
|
|
- targets:
|
|
- pve.sweet.home:9100
|
|
labels:
|
|
role: proxmox
|
|
|
|
- targets:
|
|
- pbs.sweet.home:9100
|
|
labels:
|
|
role: backup
|
|
|
|
- targets:
|
|
- pihole:9100
|
|
labels:
|
|
role: pihole
|
|
|
|
- targets:
|
|
- server:9100
|
|
labels:
|
|
role: server
|
|
|
|
- targets:
|
|
- nix-cache:9100
|
|
labels:
|
|
role: cache
|
|
|
|
# =========================
|
|
# Telegraf (Docker metrics)
|
|
# =========================
|
|
- job_name: "telegraf"
|
|
static_configs:
|
|
- targets:
|
|
- telegraf:9273
|
|
labels:
|
|
role: docker
|
|
|
|
# =========================
|
|
# Traefik (all instances)
|
|
# =========================
|
|
- job_name: "traefik"
|
|
static_configs:
|
|
- targets:
|
|
- traefik.lan.ddnsgeek.com:8080
|
|
labels:
|
|
role: docker
|
|
|
|
- targets:
|
|
- raspberrypi.tail13f623.ts.net:8080
|
|
labels:
|
|
role: raspberrypi
|
|
|
|
metric_relabel_configs:
|
|
- source_labels: [service]
|
|
regex: '(.+)@.+'
|
|
target_label: service
|
|
replacement: '$1'
|
|
|
|
# =========================
|
|
# Uptime Kuma (separate due to auth)
|
|
# =========================
|
|
- job_name: "kuma"
|
|
metrics_path: /metrics
|
|
scrape_interval: 30s
|
|
|
|
basic_auth:
|
|
username: ${PROMETHEUS_KUMA_BASIC_AUTH_USERNAME}
|
|
password_file: /run/secrets/prometheus_kuma_basic_auth_password
|
|
|
|
static_configs:
|
|
- targets:
|
|
- monitor-kuma:3001
|
|
labels:
|
|
role: docker
|
|
|
|
- targets:
|
|
- kuma.lan.ddnsgeek.com
|
|
labels:
|
|
role: raspberrypi
|
|
|
|
# =========================
|
|
# Proxmox Storage Exporters
|
|
# =========================
|
|
- job_name: "proxmox-storage"
|
|
metrics_path: /metrics
|
|
static_configs:
|
|
- targets:
|
|
- pve.sweet.home:9101
|
|
labels:
|
|
role: proxmox
|
|
storage: lvm
|
|
|
|
- targets:
|
|
- pbs.sweet.home:9102
|
|
labels:
|
|
role: backup
|
|
storage: datastore
|
|
|
|
# =========================
|
|
# Docker Updates Exporter
|
|
# =========================
|
|
|
|
|
|
- job_name: "container-updates"
|
|
static_configs:
|
|
- targets:
|
|
- docker-update-exporter:9105
|
|
labels:
|
|
role: docker
|
|
- targets:
|
|
- raspberrypi.tail13f623.ts.net:9105
|
|
labels:
|
|
role: raspberrypi
|
|
|
|
# =========================
|
|
# pihole Exporter
|
|
# =========================
|
|
|
|
|
|
- job_name: "pihole"
|
|
static_configs:
|
|
- targets:
|
|
- pihole-exporter:9617
|
|
labels:
|
|
role: pihole
|
|
|
|
|
|
#rule_files:
|
|
# - /etc/prometheus/rules/*.yml
|