Archived
archived old monitoring system
This commit is contained in:
@@ -0,0 +1,166 @@
|
||||
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
|
||||
- raspberrypi.tail13f623.ts.net: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: wayne.bennett@live.com
|
||||
password_file: /run/secrets/prometheus_kuma_basic_auth_password
|
||||
# password: '4vjCco?[%{=+,t`):C'
|
||||
static_configs:
|
||||
- targets:
|
||||
- monitor-kuma:3001
|
||||
labels:
|
||||
role: docker
|
||||
|
||||
- targets:
|
||||
- kuma.lan.ddnsgeek.com
|
||||
labels:
|
||||
role: raspberrypi
|
||||
tls_config:
|
||||
# ca_file: /prometheus/clients-ca.crt
|
||||
cert_file: /prometheus/office-pc.crt
|
||||
key_file: /prometheus/office-pc.key
|
||||
# server_name: kuma.lan.ddnsgeek.com
|
||||
|
||||
# =========================
|
||||
# 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
|
||||
Reference in New Issue
Block a user