From 8cc36f22ad601235f9888e1d14c8c720dc703bd6 Mon Sep 17 00:00:00 2001 From: hogweed1 Date: Thu, 11 Jun 2026 00:53:25 +1000 Subject: [PATCH] make prometheus less big --- files/prometheus/prometheus.yaml | 38 +++++++++++++++++++------------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/files/prometheus/prometheus.yaml b/files/prometheus/prometheus.yaml index 1cd283f..c1870d1 100644 --- a/files/prometheus/prometheus.yaml +++ b/files/prometheus/prometheus.yaml @@ -47,6 +47,10 @@ scrape_configs: # replacement: 'cyberbully:9100' # - target_label: host # replacement: cyberbully + metric_relabel_configs: + - source_labels: [__name__, state] + regex: 'node_systemd_unit_state;(activating|deactivating|inactive)' + action: drop - job_name: 'node-exporters-vms' scheme: http @@ -80,6 +84,10 @@ scrape_configs: - 'homeassistant13:9100' #- 'k3s-awx:9100' + metric_relabel_configs: + - source_labels: [__name__, state] + regex: 'node_systemd_unit_state;(activating|deactivating|inactive)' + action: drop # # - job_name: 'node-exporters-lxc' # # scheme: http @@ -101,16 +109,16 @@ scrape_configs: # #- 'gpu-slut:9290' # пиписа-экспортер - - job_name: 'vdk2ch-pipisa-exporter' - scheme: http - static_configs: - - targets: - - '192.168.0.55:9992' - relabel_configs: - - target_label: instance - replacement: 'cyberbully:9992' - - target_label: host - replacement: cyberbully + # # - job_name: 'vdk2ch-pipisa-exporter' + # # scheme: http + # # static_configs: + # # - targets: + # # - '192.168.0.55:9992' + # # relabel_configs: + # # - target_label: instance + # # replacement: 'cyberbully:9992' + # # - target_label: host + # # replacement: cyberbully - job_name: 'ceph-prometheus-modul' scheme: http @@ -206,8 +214,8 @@ scrape_configs: - 'semyon-0x04.guaranteedstruggle.host:9221' - 'semyon-0x05.guaranteedstruggle.host:9221' - - job_name: 'pipisa-exporter' - metrics_path: / - static_configs: - - targets: - - 'pipisa.guaranteedstruggle.host:1337' + # # - job_name: 'pipisa-exporter' + # # metrics_path: / + # # static_configs: + # # - targets: + # # - 'pipisa.guaranteedstruggle.host:1337'