Prometheus Proxmox VE Exporter: Move configuration under /opt

This commit is contained in:
Andy Grunwald 2025-01-28 13:22:30 +01:00
parent fdc09aca1f
commit 0fd95c67d1
No known key found for this signature in database
GPG Key ID: 4DF3757FE7EB0B6E
2 changed files with 4 additions and 4 deletions

View File

@ -57,4 +57,4 @@ echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:9221${CL}"
echo -e "${INFO}${YW} Please adjust the credentials in the configuration file:${CL}"
echo -e "${INFO}${YW} /etc/prometheus-pve-exporter/pve.yml${CL}"
echo -e "${INFO}${YW} /opt/prometheus-pve-exporter/pve.yml${CL}"

View File

@ -29,8 +29,8 @@ msg_ok "Updated Python3"
msg_info "Installing Prometheus Proxmox VE Exporter"
python3 -m pip install --quiet prometheus-pve-exporter
mkdir -p /etc/prometheus-pve-exporter
cat <<EOF > /etc/prometheus-pve-exporter/pve.yml
mkdir -p /opt/prometheus-pve-exporter
cat <<EOF > /opt/prometheus-pve-exporter/pve.yml
default:
user: prometheus@pve
password: sEcr3T!
@ -50,7 +50,7 @@ User=root
Restart=always
Type=simple
ExecStart=pve_exporter \
--config.file=/etc/prometheus-pve-exporter/pve.yml \
--config.file=/opt/prometheus-pve-exporter/pve.yml \
--web.listen-address=0.0.0.0:9221
ExecReload=/bin/kill -HUP \$MAINPID