This commit is contained in:
2026-03-14 13:29:59 +00:00
parent 0a0371abc0
commit bfe9f261ea
2 changed files with 43 additions and 2 deletions

View File

@@ -19,7 +19,8 @@ spec:
- name: pve-exporter
image: ghcr.io/prometheus-pve/prometheus-pve-exporter:latest
args:
- /etc/pve-exporter/pve.yml
- --config.file
- /etc/prometheus/pve.yml
ports:
- name: http
containerPort: 9221
@@ -31,3 +32,16 @@ spec:
- name: config
secret:
secretName: pve-exporter-config
---
apiVersion: v1
kind: Service
metadata:
name: pve-exporter
namespace: monitoring
spec:
selector:
app: pve-exporter
ports:
- name: http
port: 9221
targetPort: 9221

View File

@@ -0,0 +1,27 @@
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMStaticScrape
metadata:
name: proxmox-pve
namespace: vm
spec:
jobName: proxmox-pve
targetEndpoints:
- targets:
- hyper1.undercloud.local:9100
- hyper2.undercloud.local:9100
- hyper3.undercloud.local:9100
- hyper4.undercloud.local:9100
- hyper5.undercloud.local:9100
- hyper6.undercloud.local:9100
- pbs.undercloud.local:9100
path: /pve
params:
module:
- default
relabelConfigs:
- sourceLabels: [__address__]
targetLabel: __param_target
- sourceLabels: [__param_target]
targetLabel: instance
- targetLabel: __address__
replacement: pve-exporter.monitoring.svc:9221