|
%!s(int64=2) %!d(string=hai) anos | |
---|---|---|
.gitignore | %!s(int64=2) %!d(string=hai) anos | |
README.md | %!s(int64=2) %!d(string=hai) anos | |
dashboard.json | %!s(int64=2) %!d(string=hai) anos | |
gather_rss.sh | %!s(int64=2) %!d(string=hai) anos | |
mem.sql | %!s(int64=2) %!d(string=hai) anos |
An sqlite database populated by cron, ps and awk
Made easy with writable views
Designed to be loaded into grafana (see the .json files herein)
Uses a recursive CTE to get around unhelpful var interpolation in the sqlite data source (see here)
Pic related
Plop the contents into /opt/memmon
add a crontab entry to run it (I do every minute like so):
* * * * * /opt/memmon/gather_rss.sh