The main documentation repository for the 🍭☁️ https://lollipopcloud.solutions
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

monitoring.md 1.5KB

Monitoring

Track resource utilization over time.

BE MINDFUL OF RUNNING THIS. IT CAN CAUSE PROBLEMS WITH DISK IOPS AND RAM USAGE. BEST ONLY USED IF NEEDED OR YOU’RE TROUBLESHOOTING. If you would like to monitor CPU temperatures, we recommend installing ArmbianMonitor.

cadvisor

cadvisor (link) has been recommended for monitoring Docker container resource usage. Could be useful.

Untested by the Author.

Munin

Simple, efficient, old school, well supported. Start here.

Further reading : http://munin-monitoring.org/

Install


apt update
apt install munin munin-node \
    munin-plugins-core munin-plugins-extra \
    libcgi-fast-perl
systemctl enable munin-node
systemctl restart munin-node

Serving Output Via Caddy


cat > /etc/caddy/services/munin.conf <<EOF
# Munin - Static web resources
domain.tld/static {
    tls user@domain.tld

    redir 301 {
        if {scheme} is http
        / https://domain.tld{uri}
    }

    root /etc/munin/static
}

# Munin - main site/cgi's
domain.tld {
    tls user@domain.tld

    redir 301 {
        if {scheme} is http
        / https://domain.tld{uri}
    }

    log /var/log/caddy/test.kemonine.info.log

    # Setup CGI rendering scripts
    cgi /munin-cgi/munin-cgi-graph /usr/lib/munin/cgi/munin-cgi-graph
    cgi /munin-cgi/munin-cgi-html /usr/lib/munin/cgi/munin-cgi-html

    # Set path to generated HTML via cron/systemd processes
    root /var/cache/munin/www
}
EOF