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