diff --git a/Prometheus/install_cAdvisor.sh b/Prometheus/install_cAdvisor.sh index 9d71218..15d12b9 100644 --- a/Prometheus/install_cAdvisor.sh +++ b/Prometheus/install_cAdvisor.sh @@ -18,8 +18,8 @@ else fi # Download Node Exporter -CN_URL="https://8.134.128.173/relayx/cadvisor-v0.56.1-linux-amd64" -GLOBAL_URL="https://github.com/google/cadvisor/releases/download/v0.56.1/cadvisor-v0.56.1-linux-amd64" +CN_URL="https://8.134.128.173/relayx/cadvisor-v0.55.1-linux-amd64" +GLOBAL_URL="https://github.com/google/cadvisor/releases/download/v0.55.1/cadvisor-v0.55.1-linux-amd64" TARGET=/tmp/cAdvisor is_cn=false @@ -51,7 +51,7 @@ echo "Creating systemd service file..." #chose port -DEFAULT_PORT=9100 +DEFAULT_PORT=8087 if [ -t 0 ]; then # 有 TTY,交互式 @@ -83,13 +83,7 @@ Requires=docker.service [Service] Type=simple -ExecStart=/usr/bin/cadvisor \ - --logtostderr=true \ - --port=${PORT} \ - --housekeeping_interval=10s \ - --docker_only=true \ - --store_container_labels=false - +ExecStart=/usr/bin/cadvisor --logtostderr=true --port=${PORT} --housekeeping_interval=10s --docker_only=true --store_container_labels=false Restart=always RestartSec=10 LimitNOFILE=1048576 @@ -103,4 +97,4 @@ echo "Enabling and starting cAdvisior service..." sudo systemctl daemon-reload sudo systemctl enable --now cAdvisior.service -echo "Node Exporter installation completed, listening on port 8080" +echo "Node Exporter installation completed, listening on port ${PORT}"