Files

56 lines
1.4 KiB
YAML

global:
scrape_interval: 15s
evaluation_interval: 15s
rule_files:
- "alert-rules.yml"
scrape_configs:
- job_name: "prometheus"
static_configs:
- targets:
- "localhost:9090"
- job_name: "proxmox"
static_configs:
- targets:
- "<proxmox-host-ip>:9221"
- job_name: "k3s-control-plane"
static_configs:
- targets:
- "<control-plane-ip-1>:9100"
- "<control-plane-ip-2>:9100"
- "<control-plane-ip-3>:9100"
- job_name: "k3s-workers"
static_configs:
- targets:
- "<worker-node-ip-1>:9100"
- "<worker-node-ip-2>:9100"
- "<worker-node-ip-3>:9100"
- "<worker-node-ip-4>:9100"
- "<worker-node-ip-5>:9100"
- "<worker-node-ip-6>:9100"
- "<worker-node-ip-7>:9100"
- "<worker-node-ip-8>:9100"
- "<worker-node-ip-9>:9100"
- job_name: "homelab-services"
metrics_path: /probe
params:
module: [tcp_connect]
static_configs:
- targets:
- "<proxmox-host-ip>:8006"
- "<truenas-ip>:80"
- "<npm-ip>:81"
- "<dashy-ip>:4000"
- "<truenas-ip>:30013"
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: "blackbox-exporter:9115"