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"
    <Match>
      Regex "\\[INFO\\] +\\[web\\] +- +200 +GET +/api/.*schema_version=.* 
([.0-9]*)ms"
      DSType "GaugeAverage"
      Type "response_time"
      Instance "data"
    </Match>
  </File>
</Plugin>

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?

-- 
WBR,
Maksym

_______________________________________________
collectd mailing list
[email protected]
http://mailman.verplant.org/listinfo/collectd

Reply via email to