Skip to content

Instantly share code, notes, and snippets.

@devflowx
devflowx / cAdvisor-manager.sh
Created May 19, 2025 08:16
cAdvisor-manager
#!/bin/bash
set -e
CADVISOR_VERSION="v0.47.2"
CADVISOR_URL="https://github.com/google/cadvisor/releases/download/${CADVISOR_VERSION}/cadvisor-${CADVISOR_VERSION}-linux-amd64"
INSTALL_PATH="/usr/local/bin/cadvisor"
SERVICE_FILE="/etc/systemd/system/cadvisor.service"
function install_cadvisor() {