You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test
Configure 3 ntp instances in conf.d/ntp.d/check.yaml
init_config:
instances:
- offset_threshold: 60
host: 0.asia.pool.ntp.org
- offset_threshold: 60
host: 0.north-america.pool.ntp.org
- offset_threshold: 60
host: localhost # We expect this to fail
Result
We can't distinguish between instances if more than one instance is configured in the ntp check. Metric ntp.offset and service check ntp.in_sync will be submitted once per instance run with only a host tag so we will not be able to differentiate between the metric value and the service check status.
It's not recommended to specify more than 1 instance in an ntp check because the service check ntp.in_sync may flap if one of the configured instances does not respond. In our test, we see that instance 2 has a status of 3 (unknown) causing our monitor to flap.
Describe what happened:
If you list multiple instances in the config file of the
ntp
check, the check would be run once per instance with metrics and service checks posted without any tag, see https://github.com/DataDog/datadog-agent/blob/master/pkg/collector/corechecks/network/ntp.go#L146Describe what you expected:
To be able to distinguish which value is coming from which NTP server.
The text was updated successfully, but these errors were encountered: