From f1f81b5fea6169e7218ed318195902e690ff39e0 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Sun, 6 Aug 2023 00:47:29 -0400 Subject: [PATCH] Revert "fix(proxmoxve): use a Probe instead of ServiceMonitor" This reverts commit 2157541fdf28777874a81bcd9a58d6cf0692fb3f. --- .../proxmoxve-exporter/service-monitor.yaml | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/cluster/apps/monitoring/proxmoxve-exporter/service-monitor.yaml b/cluster/apps/monitoring/proxmoxve-exporter/service-monitor.yaml index a015519..f7d105a 100644 --- a/cluster/apps/monitoring/proxmoxve-exporter/service-monitor.yaml +++ b/cluster/apps/monitoring/proxmoxve-exporter/service-monitor.yaml @@ -1,16 +1,21 @@ apiVersion: monitoring.coreos.com/v1 -kind: Probe +kind: ServiceMonitor metadata: name: proxmoxve-exporter namespace: monitoring + labels: + release: kube-prometheus-stack spec: - interval: 60s - module: default - prober: - url: proxmoxve-exporter.monitoring.svc.cluster.local:9221 + selector: + matchLabels: + app: proxmoxve-service + endpoints: + - port: http + interval: 2m + scrapeTimeout: 1m path: /pve - targets: - staticConfig: - static: + params: + target: - "192.168.87.29" - - "192.168.87.20" \ No newline at end of file + module: + - default \ No newline at end of file