Hi, I’m trying to run prometheus-pve-exporter on a Raspberry Pi to scrape metrics from my Proxmox 9 server. I’ve installed the Docker container, mounted my pve.yml config, and tried to access metrics, but I always get a 500 Internal Server Error.
Then I run the docker container with the exporter
The I try a curl :
my ouput is this
Please note the token, and user are created and have the PVEAuditor privilege.
YAML:
#~/pve-exporter/pve.yml
default:
user: "prometheus@pve"
token_name: "prometheus-token"
token_value: "XXXX-XXX"
verify_ssl: false
Then I run the docker container with the exporter
Bash:
docker run -d \
--name pve-exporter \
-p 9221:9221 \
-v ~/pve-exporter/pve.yml:/etc/prometheus/pve.yml:ro \
ghcr.io/prometheus-pve/prometheus-pve-exporter:latest \
--config.file=/etc/prometheus/pve.yml
The I try a curl :
curl "http://localhost:9221/pve?target=192.168.x.x"my ouput is this
Bash:
<!doctype html>
<html lang=en>
<title>500 Internal Server Error</title>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>
Please note the token, and user are created and have the PVEAuditor privilege.
