Nav apraksta

George Baugh dcfc76dd65 update README 2 gadi atpakaļ
.gitignore 9d8894095c Initial Commit 2 gadi atpakaļ
README.md dcfc76dd65 update README 2 gadi atpakaļ
dashboard.json 9d8894095c Initial Commit 2 gadi atpakaļ
example.jpg ba4d607262 more flavor for the readme 2 gadi atpakaļ
gather_rss.sh 9d8894095c Initial Commit 2 gadi atpakaļ
mem.sql 9d8894095c Initial Commit 2 gadi atpakaļ

README.md

memmon

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) and filtered easily by process name via dashboard variables

Uses a recursive CTE to get around unhelpful var interpolation in the sqlite data source (see here)

Pic related

get you some

Installation

Plop the contents into /opt/memmon, chown -R grafana:grafana /opt/memmon

add to root's crontab to run it (I do every minute like so):

* * * * * /opt/memmon/gather_rss.sh

From there, install the provided dashboard.json in this directory and observe charts.