# Updated Prometheus Configuration with Alertmanager # This adds alerting configuration to your existing prometheus.yml global: scrape_interval: 15s evaluation_interval: 15s # How often to evaluate rules # Alertmanager configuration alerting: alertmanagers: - static_configs: - targets: - alertmanager:9093 # Load alerting rules rule_files: - /etc/prometheus/alert-rules.yml scrape_configs: - job_name: "prometheus" static_configs: - targets: ["prometheus:9090"] - job_name: "alertmanager" static_configs: - targets: ["alertmanager:9093"] - job_name: "homelab-node" static_configs: - targets: ["100.67.40.126:9100"] relabel_configs: - target_label: instance replacement: "homelab-vm" - job_name: "raspberry-pis" static_configs: - targets: ["100.77.151.40:9100"] # pi-5 - targets: ["100.123.246.75:9100"] # pi-5-kevin relabel_configs: - source_labels: [__address__] regex: "100\\.77\\.151\\.40:9100" target_label: instance replacement: "pi-5" - source_labels: [__address__] regex: "100\\.123\\.246\\.75:9100" target_label: instance replacement: "pi-5-kevin" - job_name: "setillo-node" static_configs: - targets: ["100.125.0.20:9100"] relabel_configs: - target_label: instance replacement: "setillo" - job_name: "setillo-snmp" metrics_path: /snmp params: module: [synology] auth: [snmpv3] target: ["127.0.0.1"] static_configs: - targets: ["100.125.0.20:9116"] relabel_configs: - source_labels: [__address__] target_label: __param_target replacement: "127.0.0.1" - source_labels: [__param_target] target_label: instance replacement: "setillo" - target_label: __address__ replacement: "100.125.0.20:9116" - job_name: "calypso-node" static_configs: - targets: ["100.103.48.78:9100"] relabel_configs: - target_label: instance replacement: "calypso" - job_name: "calypso-snmp" metrics_path: /snmp params: module: [synology] auth: [snmpv3] target: ["127.0.0.1"] static_configs: - targets: ["100.103.48.78:9116"] relabel_configs: - source_labels: [__address__] target_label: __param_target replacement: "127.0.0.1" - source_labels: [__param_target] target_label: instance replacement: "calypso" - target_label: __address__ replacement: "100.103.48.78:9116" - job_name: "atlantis-node" static_configs: - targets: ["100.83.230.112:9100"] relabel_configs: - target_label: instance replacement: "atlantis" - job_name: "atlantis-snmp" metrics_path: /snmp params: module: [synology] auth: [snmpv3] target: ["127.0.0.1"] static_configs: - targets: ["100.83.230.112:9116"] relabel_configs: - source_labels: [__address__] target_label: __param_target replacement: "127.0.0.1" - source_labels: [__param_target] target_label: instance replacement: "atlantis" - target_label: __address__ replacement: "100.83.230.112:9116" - job_name: "concord-nuc-node" static_configs: - targets: ["100.72.55.21:9100"] relabel_configs: - target_label: instance replacement: "concord-nuc" - job_name: "truenas-node" static_configs: - targets: ["100.75.252.64:9100"] relabel_configs: - target_label: instance replacement: "guava" - job_name: "seattle-node" static_configs: - targets: ["100.82.197.124:9100"] relabel_configs: - target_label: instance replacement: "seattle" - job_name: "proxmox-node" static_configs: - targets: ["100.87.12.28:9100"] relabel_configs: - target_label: instance replacement: "proxmox"