Re: [chrony-users] Requests per second |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] Requests per second
- From: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
- Date: Mon, 11 Aug 2025 12:17:49 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1754907476; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5rchZTsYkEb3XBwMec3pU+5lIGeT33cv+JRQaQITypU=; b=ba5GcppztbPS8AuBOVKLNEWlJGtNz3fYvLX//1Ktbd4bqLvLmWdZiqXxPj41eFGdc56ynJ k9PBNNvskue99T+t2SY0AaIMdbaIB3qAmLSY845FKSWcF5g8YU0i4I8re3vVGW6T/miZJ4 njWkqkogj/NUO4viWebYgP/2aptABxE=
On Sun, Aug 10, 2025 at 12:45:01AM +0000, Sviatoslav Feshchenko wrote:
> My server, running chrony 4.3, is part of the NTP Pool Project. Is there a way to determine how many requests per second it is receiving or responding to on average?
By observing the difference in values reported by chronyc serverstats
over the interval you want the average apply to. For example, this
shell script would print averages over one-minute intervals:
while chronyc -c serverstats; do sleep 60; done | \
awk -F , '{if (l>0) print ($1-l)/60; l=$1}'
>
> It would seem logical to have this statistic displayed as part of "serverstats" command to chronyc. Is that something that can be implemented easily?
No, not easily. If the reported averages should be accurate, chronyd
would need to save the counters in a queue.
This is better done externally by tools specialized in processing time
series data like rrdtool.
--
Miroslav Lichvar
--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.