Monitoring chrony, Prometheus-friendly metrics: redux

Holger Hoffstätte <[email protected]>
Newsgroups gmane.comp.time.chrony.user
Organization Applied Asynchrony, Inc.
Message-ID <[email protected]>
Hello chrony-users -

Some of you may remember past threads about monitoring chrony (e.g. [1]),
preferrably with Prometheus but without adding a hard dependency on
output formats or an http server within chrony itself.
Well..rejoice!

Ben Kochie has started an external exporter project which does not
scrape chrony output but instead uses the proper way of retrieving
any metrics via the protocol. It's fast, small(ish) and already has
replaced the previous script I used for the past few years.

The project can be found at: https://github.com/SuperQ/chrony_exporter
and there are prebuilt binaries, though building it is quite easy as well.
An unofficial Gentoo ebuild can be found at [2].

If there is a particular metric missing that you want to see exposed,
please file an issue, or even better just add it and send a PR.
Adding more metrics is relatively simple; just look at my own contributions
as inspiration. :)

Hopefully some of you find this useful.

cheers
Holger

[1] https://www.mail-archive.com/[email protected]/msg02175.html
[2] https://github.com/hhoffstaette/portage/tree/master/app-metrics/chrony_exporter

-- 
To unsubscribe email chrony-users-request-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org 
with "unsubscribe" in the subject.
For help email chrony-users-request-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org 
with "help" in the subject.
Trouble?  Email [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.