Files
2026-05-17 00:46:26 +02:00

416 lines
11 KiB
YAML

prometheus:
prometheusSpec:
retention: 7d
resources:
requests:
memory: 512Mi
limits:
memory: 1Gi
additionalScrapeConfigs:
- job_name: 'blackbox-icmp'
metrics_path: /probe
params:
module: [icmp]
static_configs:
- targets: ["10.0.0.1"]
labels:
hostname: router
device_type: router
- targets: ["10.0.0.123"]
labels:
hostname: switch
device_type: switch
- targets: ["10.0.0.232"]
labels:
hostname: ap-loznice
device_type: ap
- targets: ["10.0.0.233"]
labels:
hostname: ap-det-pokoj
device_type: ap
- targets: ["10.0.0.13"]
labels:
hostname: konica-minolta-bizhub-227
device_type: printer
- targets: ["10.0.0.152"]
labels:
hostname: hp-officejet-pro-6830
device_type: printer
- targets: ["10.0.2.2"]
labels:
hostname: main-nas
device_type: nas
- targets: ["10.0.2.12"]
labels:
hostname: backup-nas
device_type: nas
- targets: ["10.0.2.6"]
labels:
hostname: nas-raid-card
device_type: storage-controller
- targets: ["10.0.2.4"]
labels:
hostname: mac-mini
device_type: mac
- targets: ["10.0.0.139"]
labels:
hostname: klipper-rpi4b
device_type: raspberry-pi
- targets: ["10.0.2.130"]
labels:
hostname: r720-overlord-idrac
device_type: idrac
- targets: ["10.0.2.131"]
labels:
hostname: r620-idrac
device_type: idrac
- targets: ["10.0.2.132"]
labels:
hostname: r720-proxmox-idrac
device_type: idrac
- targets: ["10.0.2.133"]
labels:
hostname: hp-dl360p-g8-ilo
device_type: ilo
- targets: ["10.0.2.134"]
labels:
hostname: dell-precision-rack-7910-idrac
device_type: idrac
- targets: ["10.0.2.136"]
labels:
hostname: r420-idrac
device_type: idrac
- targets: ["10.0.2.137"]
labels:
hostname: t620-idrac
device_type: idrac
- targets: ["10.0.1.2"]
labels:
hostname: plexisklo
device_type: lxc
- targets: ["10.0.1.3"]
labels:
hostname: synch
device_type: lxc
- targets: ["10.0.1.4"]
labels:
hostname: graylog
device_type: vm
- targets: ["10.0.1.6"]
labels:
hostname: kozel-tajne
device_type: lxc
- targets: ["10.0.1.7"]
labels:
hostname: kozel-web
device_type: lxc
- targets: ["10.0.1.8"]
labels:
hostname: qbittorrent
device_type: lxc
- targets: ["10.0.1.9"]
labels:
hostname: docker
device_type: lxc
- targets: ["10.0.1.10"]
labels:
hostname: pihole
device_type: lxc
- targets: ["10.0.1.11"]
labels:
hostname: gitea
device_type: lxc
- targets: ["10.0.1.12"]
labels:
hostname: mariadb
device_type: lxc
- targets: ["10.0.1.20"]
labels:
hostname: zabbix
device_type: vm
- targets: ["10.0.2.5"]
labels:
hostname: proxmox
device_type: server
- targets: ["10.0.3.2"]
labels:
hostname: mc-servers
device_type: server
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: blackbox-exporter-prometheus-blackbox-exporter.monitoring.svc.cluster.local:9115
- job_name: external-node-exporters
static_configs:
- targets:
- 10.0.1.2:9100
labels:
hostname: plexisklo
- targets:
- 10.0.1.3:9100
labels:
hostname: synch
- targets:
- 10.0.1.4:9100
labels:
hostname: graylog
- targets:
- 10.0.1.6:9100
labels:
hostname: kozel-tajne
- targets:
- 10.0.1.7:9100
labels:
hostname: kozel-web
- targets:
- 10.0.1.8:9100
labels:
hostname: qbittorrent
- targets:
- 10.0.1.9:9100
labels:
hostname: docker
- targets:
- 10.0.1.10:9100
labels:
hostname: pihloe
- targets:
- 10.0.1.11:9100
labels:
hostname: gitea
- targets:
- 10.0.1.12:9100
labels:
hostname: mariadb
- targets:
- 10.0.1.20:9100
labels:
hostname: zabbix
- targets:
- 10.0.2.5:9100
labels:
hostname: proxmox
- targets:
- 10.0.3.2:9100
labels:
hostname: mc-servers
- job_name: 'snmp-if-mib'
scrape_interval: 4m
scrape_timeout: 180s
metrics_path: /snmp
params:
module: [if_mib]
auth: [public_v2]
static_configs:
- targets:
- 10.0.0.1 # Router
- 10.0.0.123 # Switch
- 10.0.0.233 # AP-Dět.Pkoj
- 10.0.0.232 # AP-Ložnice
- 10.0.2.12 # Backup-NAS
- 10.0.2.2 # Main NAS
- 10.0.0.13 # Konica Minolta
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: snmp-exporter-manual.monitoring.svc.cluster.local:9116
# - job_name: 'snmp-mib'
# scrape_interval: 4m
# scrape_timeout: 180s
# metrics_path: /snmp
# params:
# module: [mikrotik]
# auth: [public_v2]
# static_configs:
# - targets:
# - 10.0.0.1 # Router
# - 10.0.0.123 # Switch
# - 10.0.0.233 # AP-Dět.Pkoj
# - 10.0.0.232 # AP-Ložnice
# relabel_configs:
# - source_labels: [__address__]
# target_label: __param_target
# - source_labels: [__param_target]
# target_label: instance
# - target_label: __address__
# replacement: snmp-exporter-manual.monitoring.svc.cluster.local:9116
# - job_name: 'snmp-host-resources'
# scrape_interval: 4m
# scrape_timeout: 180s
# metrics_path: /snmp
# params:
# module: [resources_hst]
# auth: [public_v2]
# static_configs:
# - targets:
# - 10.0.0.1 # Router
# - 10.0.0.123 # Switch
# - 10.0.0.233 # AP-Dět.Pkoj
# - 10.0.0.232 # AP-Ložnice
# - 10.0.2.12 # Backup-NAS
# - 10.0.2.2 # Main NAS
# - 10.0.2.6 # NAS RAID karta
# - 10.0.0.13 # Konica Minolta
# relabel_configs:
# - source_labels: [__address__]
# target_label: __param_target
# - source_labels: [__param_target]
# target_label: instance
# - target_label: __address__
# replacement: snmp-exporter-manual.monitoring.svc.cluster.local:9116
# - job_name: 'snmp-dell-idrac'
# scrape_interval: 4m
# scrape_timeout: 180s
# metrics_path: /snmp
# params:
# module: [dell_rac]
# auth: [public_v2]
# static_configs:
# - targets:
# - 10.0.2.130
# - 10.0.2.131
# - 10.0.2.132
# - 10.0.2.134
# - 10.0.2.136
# - 10.0.2.137
# relabel_configs:
# - source_labels: [__address__]
# target_label: __param_target
# - source_labels: [__param_target]
# target_label: instance
# - target_label: __address__
# replacement: snmp-exporter-manual.monitoring.svc.cluster.local:9116
# - job_name: 'snmp-hpe-ilo'
# scrape_interval: 4m
# scrape_timeout: 180s
# metrics_path: /snmp
# params:
# module: [hpe]
# auth: [public_v2]
# static_configs:
# - targets:
# - 10.0.2.133
# relabel_configs:
# - source_labels: [__address__]
# target_label: __param_target
# - source_labels: [__param_target]
# target_label: instance
# - target_label: __address__
# replacement: snmp-exporter-manual.monitoring.svc.cluster.local:9116
- job_name: 'proxmox'
metrics_path: /pve
params:
module: [default]
cluster: ['1']
node: ['1']
static_configs:
- targets:
- 10.0.2.5
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: pve-exporter.monitoring.svc.cluster.local:9221
- job_name: 'ipmi-dell-ilo'
metrics_path: /ipmi
params:
module: [default]
static_configs:
- targets:
- 10.0.2.130
- 10.0.2.131
- 10.0.2.132
- 10.0.2.133
- 10.0.2.134
- 10.0.2.136
- 10.0.2.137
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: ipmi-exporter-prometheus-ipmi-exporter.monitoring.svc.cluster.local:9290
grafana:
resources:
requests:
memory: 128Mi
limits:
memory: 256Mi
alertmanager:
alertmanagerSpec:
resources:
requests:
memory: 128Mi
limits:
memory: 256Mi