chrony_exporter icon indicating copy to clipboard operation
chrony_exporter copied to clipboard

Client statistics

Open grinapo opened this issue 1 month ago • 2 comments

I propse a new group of metrics about clients. Chrony seems to track individual client stats, that is probably too detailed for metrics collecting. However it would be nice to know

  • count of clients
  • a histogram of last seen (I observe common values from 2 seconds up to 1d, the rest is inf+)
  • histogram of intervals
  • histogram of drops, rejects or like
  • amount of commands?

There are other stats which is always zero for me but others may be interested in. I'm not sure there is a stat about NTP and NTS client counts, but if there is it would be pretty useful.

grinapo avatar Nov 04 '25 08:11 grinapo

Sure, PRs welcome.

The best thing to do is start simple, with the things you know you want.

SuperQ avatar Nov 04 '25 08:11 SuperQ

Okay, I will learn go, and the libs, the prometheus thingy, and hopefully come back with a PR unless someone beats me to it. ;'-)

grinapo avatar Nov 04 '25 23:11 grinapo