From 0fd95c67d135aba6c2f6cd37501bd50f59858a82 Mon Sep 17 00:00:00 2001 From: Andy Grunwald Date: Tue, 28 Jan 2025 13:22:30 +0100 Subject: [PATCH] Prometheus Proxmox VE Exporter: Move configuration under /opt --- ct/prometheus-pve-exporter.sh | 2 +- install/prometheus-pve-exporter-install.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ct/prometheus-pve-exporter.sh b/ct/prometheus-pve-exporter.sh index 106b094f..ac646585 100644 --- a/ct/prometheus-pve-exporter.sh +++ b/ct/prometheus-pve-exporter.sh @@ -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}" \ No newline at end of file +echo -e "${INFO}${YW} /opt/prometheus-pve-exporter/pve.yml${CL}" \ No newline at end of file diff --git a/install/prometheus-pve-exporter-install.sh b/install/prometheus-pve-exporter-install.sh index 9160acc6..2be6bfb1 100644 --- a/install/prometheus-pve-exporter-install.sh +++ b/install/prometheus-pve-exporter-install.sh @@ -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 < /etc/prometheus-pve-exporter/pve.yml +mkdir -p /opt/prometheus-pve-exporter +cat < /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