diff options
author | Albin Suresh <albin.suresh@softwareag.com> | 2021-05-31 17:25:22 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-31 17:25:22 +0530 |
commit | 0619618253c25273d7f53e6c74cabc1cd12732d5 (patch) | |
tree | 0f8e2291a52b967cc8df577a2a74944026162637 /configuration/contrib/collectd | |
parent | 710294f04662f90b2d196f86d44942d2aa75d113 (diff) |
[CIT-366] Minimal monitoring stats for memory and disk (#260)
Diffstat (limited to 'configuration/contrib/collectd')
-rw-r--r-- | configuration/contrib/collectd/tedge-collectd.conf | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/configuration/contrib/collectd/tedge-collectd.conf b/configuration/contrib/collectd/tedge-collectd.conf index 3713f172..76f65b1d 100644 --- a/configuration/contrib/collectd/tedge-collectd.conf +++ b/configuration/contrib/collectd/tedge-collectd.conf @@ -1654,3 +1654,30 @@ LoadPlugin mqtt <Include "/etc/collectd/collectd.conf.d"> Filter "*.conf" </Include> + +PreCacheChain "PreCache" + +LoadPlugin match_regex + +<Chain "PreCache"> + <Rule "memory_free_only"> + <Match "regex"> + Plugin "memory" + </Match> + <Match "regex"> + TypeInstance "used" + Invert true + </Match> + Target "stop" + </Rule> + <Rule "disk_free_only"> + <Match "regex"> + Plugin "df" + </Match> + <Match "regex"> + TypeInstance "used" + Invert true + </Match> + Target "stop" + </Rule> +</Chain> |