fix(proxmoxve): use a Probe instead of ServiceMonitor

This commit is contained in:
SeanOMik 2023-08-05 23:05:25 -04:00
parent 3de5205eec
commit 2157541fdf
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
1 changed files with 39 additions and 22 deletions

View File

@ -1,30 +1,47 @@
apiVersion: monitoring.coreos.com/v1 apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor kind: Probe
metadata: metadata:
name: proxmoxve-exporter name: proxmoxve-exporter
namespace: monitoring namespace: monitoring
labels:
release: kube-prometheus-stack
spec: spec:
selector: interval: 60s
matchLabels: module: default
app: proxmoxve-service prober:
endpoints: url: proxmoxve-exporter.monitoring.svc.cluster.local:9221
- port: http
interval: 2m
scrapeTimeout: 1m
path: /pve path: /pve
params: targets:
target: staticConfig:
static:
- "192.168.87.29" - "192.168.87.29"
module:
- default
- port: http
interval: 2m
scrapeTimeout: 1m
path: /pve
params:
target:
- "192.168.87.20" - "192.168.87.20"
module:
- default #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