diff options
-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> |