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
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
#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