Re: [chrony-users] Question about Chrony's metrics |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] Question about Chrony's metrics
- From: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
- Date: Mon, 25 Sep 2023 16:51:30 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695653493; 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=bpJGglfNIgIMnyN1IApAgX8xthBfRHzlNosiSGfD0TM=; b=YjhkSdIOLSmlTTPkwuPWaCvGHUk6JxUScbF/9ZKCqwIHnIQi5J1aon2/V16QPBZEufv+F6 ltTMT3jWdFjFlB+uNlrXXETLKHz+Hq/wI/fV0ekvKStqMORX8L/sg0cf+j0u+XIXwBR0va VPqULeOsbweS4of/MQkgXrJyAzGew3A=
On Mon, Sep 25, 2023 at 04:27:13PM +0900, Semyon Galichenko wrote:
> Hi all,
>
> I have Chrony configured with 2 sources like so:
> ```
> server 192.168.10.1 prefer iburst
> server 192.168.10.2 noselect
> ```
> The server should be synchronized only with the first source and just
> monitor the second one (hence `noselect` option).
> I want to be sure that the time set on the server has no more than 1
> second difference with the time obtained from both sources.
>
> What would be the right way to do it with Chrony? What metric can be
> used to check such a time drift?
You would need to monitor the offset of the second source reported in
the statistics log (enabled by logdir + log statistics in chrony.conf)
or periodically check the output of the "chronyc sources" command.
If you remove the noselect option and let chronyd use both sources,
chronyd will do that for you. It will log a "no majority" error
message when the sources don't agree with each other.
--
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.