[SOLVED] Proxmox prometheus exporter questions

Code:
[Unit]
Description=Prometheus exporter for Proxmox VE
Documentation=https://github.com/znerol/prometheus-pve-exporter


[Service]
Restart=always
User=prometheus
ExecStart=/usr/local/bin/pve_exporter /etc/prometheus/pve.yml


[Install]
WantedBy=multi-user.target
~
 
interesting...

the command from the service file is...

ExecStart=/usr/local/bin/pve_exporter /etc/prometheus/pve.yml

If I execute /usr/local/bin/pve_exporter /etc/prometheus/pve.yml at the command line it fails...
if I execute /usr/local/bin/pve_exporter --config.file /etc/prometheus/pve.yml then it works.
if I modify service file -> ExecStart=/usr/local/bin/pve_exporter --config.file /etc/prometheus/pve.yml
it still fails after a reload and restart...

Suggestions.

For now I cheated by executing nohup /usr/local/bin/pve_exporter --config.file /etc/prometheus/pve.yml & at the terminal which allows metrics to flow to my prometheus store and visible inside Grafana.

G
 
Last edited: