kemonine
/
lollipopcloud
Archived
1
0
Fork 0
This repository has been archived on 2022-08-05. You can view files and clone it, but cannot push or open issues or pull requests.
lollipopcloud/armbian/monitoring.md

70 lines
1.5 KiB
Markdown

# 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](armbianmonitor.md).**
## cadvisor
[cadvisor (link)](https://github.com/google/cadvisor) 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/](http://munin-monitoring.org/)
### Install
``` bash
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
``` bash
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
```