Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@lukebigum
Created December 23, 2015 09:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukebigum/09d23cb436d1c612ea50 to your computer and use it in GitHub Desktop.
Save lukebigum/09d23cb436d1c612ea50 to your computer and use it in GitHub Desktop.
collectd sfptpd stats Tailer
# Generated by Puppet
<Plugin "tail">
<File "/var/log/sfptpd/stats.log">
Instance "sfptpd_stats"
<Match>
Regex "->phc6\\(.*offset:[[:space:]]+(-?[[:digit:]]+\\.[[:digit:]]+)"
DSType "GaugeLast"
Type "precise_time_offset"
Instance "offset-phc6"
</Match>
<Match>
Regex "->phc5\\(.*offset:[[:space:]]+(-?[[:digit:]]+\\.[[:digit:]]+)"
DSType "GaugeLast"
Type "precise_time_offset"
Instance "offset-phc5"
</Match>
<Match>
Regex "->phc4\\(.*offset:[[:space:]]+(-?[[:digit:]]+\\.[[:digit:]]+)"
DSType "GaugeLast"
Type "precise_time_offset"
Instance "offset-phc4"
</Match>
<Match>
Regex "->system\\(.*offset:[[:space:]]+(-?[[:digit:]]+\\.[[:digit:]]+)"
DSType "GaugeLast"
Type "precise_time_offset"
Instance "offset-system"
</Match>
<Match>
Regex "->phc6\\(.*freq-adj:[[:space:]]+(-?[[:digit:]]+\\.[[:digit:]]+)"
DSType "GaugeLast"
Type "precise_frequency_offset"
Instance "frequency-phc6"
</Match>
<Match>
Regex "->phc5\\(.*freq-adj:[[:space:]]+(-?[[:digit:]]+\\.[[:digit:]]+)"
DSType "GaugeLast"
Type "precise_frequency_offset"
Instance "frequency-phc5"
</Match>
<Match>
Regex "->phc4\\(.*freq-adj:[[:space:]]+(-?[[:digit:]]+\\.[[:digit:]]+)"
DSType "GaugeLast"
Type "precise_frequency_offset"
Instance "frequency-phc4"
</Match>
<Match>
Regex "->system\\(.*freq-adj:[[:space:]]+(-?[[:digit:]]+\\.[[:digit:]]+)"
DSType "GaugeLast"
Type "precise_frequency_offset"
Instance "frequency-system"
</Match>
<Match>
Regex "->phc6\\(.*one-way-delay:[[:space:]]+(-?[[:digit:]]+\\.[[:digit:]]+)"
DSType "GaugeLast"
Type "precise_latency"
Instance "path-delay-phc6"
</Match>
<Match>
Regex "->phc5\\(.*one-way-delay:[[:space:]]+(-?[[:digit:]]+\\.[[:digit:]]+)"
DSType "GaugeLast"
Type "precise_latency"
Instance "path-delay-phc5"
</Match>
<Match>
Regex "->phc4\\(.*one-way-delay:[[:space:]]+(-?[[:digit:]]+\\.[[:digit:]]+)"
DSType "GaugeLast"
Type "precise_latency"
Instance "path-delay-phc4"
</Match>
<Match>
Regex "->system\\(.*one-way-delay:[[:space:]]+(-?[[:digit:]]+\\.[[:digit:]]+)"
DSType "GaugeLast"
Type "precise_latency"
Instance "path-delay-system"
</Match>
</File>
</Plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment