Feature preview: built-in OpenMetrics exporter #21
Pinned
abower-amd
started this conversation in
Show and tell
Replies: 2 comments 1 reply
-
This is excellent work and looks really solid. Thank you for the effort you’ve put into this @abower-amd ! This is a significant step forward. It will take me some time before I can potentially migrate my setup from @natesales' Initial Observations (First 10 Minutes of Testing) Metric Names
Grafana Dashboard
System Clock Servo
|
Beta Was this translation helpful? Give feedback.
1 reply
-
New metrics added: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Recent commits to
sfptpd
add built-in OpenMetrics stats exporting. This can be used to populate a time series database like Prometheus and then be visualised on a dashboard, like this:The stats currently exported are the 'real time stats' that can already be accessed via the
json_stats
option but can now be fed directly to a time series database without being tailed and processed by an intermediary exporter. For now, sfptpd listens on a Unix domain socket (/var/run/sfptpd/metrics.sock
by default) so a proxy is needed; nginx can do that, or you can use socat like this (Seeman sfptpd
):For a quick preview of the stats, use:
Any feedback on this feature would be much appreciated, please! What would you like to see?
There is an example Grafana dashboard.
Some configuration options are available (see
sfptpd --help
), e.g. to begin each metric family name withsfptpd_
, useopenmetrics_prefix sfptpd_
.The real time stats samples are timestamped by sfptpd so that users can access detailed history, but additionally there are some equivalent metric families named
*_snapshot*
which are the last RT sample repeated but without an sfptpd timestamp so that they get timestamped by the ingestor instead.Beta Was this translation helpful? Give feedback.
All reactions