Created
December 10, 2015 15:51
-
-
Save lukebigum/dac54fc8101b8f5725d5 to your computer and use it in GitHub Desktop.
Collectd tail linuxptp log file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define profile::statistics::tail_linuxptp_log($filename) { | |
collectd::plugin::tail::file { $name: | |
filename => $filename, | |
instance => $name, | |
matches => [ | |
{ | |
regex => 'offset[[:space:]]+(-?[[:digit:]]+)', | |
dstype => 'GaugeLast', | |
type => 'precise_time_offset', | |
instance => 'offset', | |
}, | |
{ | |
regex => 'freq[[:space:]]+([-+]?[[:digit:]]+)', | |
dstype => 'GaugeLast', | |
type => 'precise_frequency_offset', | |
instance => 'frequency', | |
}, | |
{ | |
regex => 'delay[[:space:]]+([[:digit:]]+)', | |
dstype => 'GaugeLast', | |
type => 'precise_latency', | |
instance => 'path-delay', | |
}, | |
], | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment