[collectd] default value for tail plugin

Maksym Tiurin mrkooll at bungarus.info
Thu Jul 17 11:01:24 CEST 2014

Hello everyone,

Is it possible to set default value for tail plugin (instead of NaN)?

I use GaugeAverage type (values are found by regexp). Unfortunately,
matched log records occur less frequently that collectd requests them.
This fact leads to gaps in graphs :(

Config for matching values is:

LoadPlugin tail
<Plugin "tail">
  <File "/var/log/messages">
    Instance "myserver"
      Regex "\\[INFO\\] +\\[web\\] +- +200 +GET +/api/.*schema_version=.* ([.0-9]*)ms"
      DSType "GaugeAverage"
      Type "response_time"
      Instance "data"

It would be great if collectd used the value 0 when were no new entries
in the log file during the polling interval. Is it possible?


More information about the collectd mailing list