[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:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!