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