mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-11-09 12:52:50 +00:00
Prometheus Proxmox VE Exporter: Move configuration under /opt
This commit is contained in:
@@ -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 "${INFO}${YW} Access it using the following URL:${CL}"
|
||||||
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:9221${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} 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}"
|
||||||
@@ -29,8 +29,8 @@ msg_ok "Updated Python3"
|
|||||||
|
|
||||||
msg_info "Installing Prometheus Proxmox VE Exporter"
|
msg_info "Installing Prometheus Proxmox VE Exporter"
|
||||||
python3 -m pip install --quiet prometheus-pve-exporter
|
python3 -m pip install --quiet prometheus-pve-exporter
|
||||||
mkdir -p /etc/prometheus-pve-exporter
|
mkdir -p /opt/prometheus-pve-exporter
|
||||||
cat <<EOF > /etc/prometheus-pve-exporter/pve.yml
|
cat <<EOF > /opt/prometheus-pve-exporter/pve.yml
|
||||||
default:
|
default:
|
||||||
user: prometheus@pve
|
user: prometheus@pve
|
||||||
password: sEcr3T!
|
password: sEcr3T!
|
||||||
@@ -50,7 +50,7 @@ User=root
|
|||||||
Restart=always
|
Restart=always
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=pve_exporter \
|
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
|
--web.listen-address=0.0.0.0:9221
|
||||||
ExecReload=/bin/kill -HUP \$MAINPID
|
ExecReload=/bin/kill -HUP \$MAINPID
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user