Skip to content
Florian Forster edited this page Nov 26, 2023 · 1 revision
Name: TimeDiff match
Type: match
Status: supported
FirstVersion: 4.6
Copyright: 2008–2009 Florian octo Forster
License: GPLv2
Manpage: collectd.conf(5)
See also: List of Matches

Description

The TimeDiff match compares the time of values against the time it considers to be “now” and matches those values where the times differ more than a given threshold. It is intended to be used on server instances to filter out values from machines with a wrong time setting. Since the timestamp in RRD files must be ever increasing, inserting only one value with a timestamp far in the future causes big problems. The purpose of this match is to prevent exactly this problem.

Synopsis

 LoadPlugin "timediff"
 <Chain "PreCache">
   <Rule "check_time">
     <Match "timediff">
       Future  300
       Past   3600
     </Match>
     Target "stop"
   </Rule>
   Target "continue"
 </Chain>

Dependencies

  • none

History

The TimeDiff match has been available since version-4.6.

Clone this wiki locally