Chrony Receiver
contrib
Maintainers: @MovieStoreGuy, @jamesmoessis
Source: opentelemetry-collector-contrib
Supported Telemetry
Overview
The chrony receiver is a pure go implementation of the commandchronyc tracking to allow for
portability across systems and platforms. All of the data that would typically be captured by
the tracking command is made available in this receiver, see documentation for
more details.
Configuration
Default
By default, thechrony receiver will default to the following configuration:
Customised
The following options can be customised:- endpoint (required) - the address on where to communicate to
chronyd- The allowed formats are the following
udp://hostname:portunix:///path/to/chrony.sock(Please note the triple slash)unixgram:///path/to/chrony/sock
- The network type
unixwill be converted tounixgrambut both are permissible
- The allowed formats are the following
- timeout (optional) - The total amount of time allowed to read and process the data from chronyd
- Recommendation: This value should be set above 1s to allow
chronydtime to respond
- Recommendation: This value should be set above 1s to allow
- collection_interval (optional) - how frequent this receiver should poll chrony
initial_delay(default =1s): defines how long this receiver waits before starting.- metrics (optional) - Which metrics should be exported, read the documentation for complete details
Example
An example of the configuration is:Metrics
| Metric Name | Description | Unit | Type | Attributes |
|---|---|---|---|---|
❌ ntp.frequency.offset | The frequency is the rate by which the system s clock would be wrong if chronyd was not correcting it. | ppm | Gauge | leap.status |
✅ ntp.skew | This is the estimated error bound on the frequency. | ppm | Gauge | |
❌ ntp.stratum | The number of hops away from the reference system keeping the reference time | {count} | Gauge | |
✅ ntp.time.correction | The number of seconds difference between the system’s clock and the reference clock | seconds | Gauge | leap.status |
✅ ntp.time.last_offset | The estimated local offset on the last clock update | seconds | Gauge | leap.status |
❌ ntp.time.rms_offset | the long term average of the offset value | seconds | Gauge | leap.status |
❌ ntp.time.root_delay | This is the total of the network path delays to the stratum-1 system from which the system is ultimately synchronised. | seconds | Gauge | leap.status |
Attributes
| Attribute Name | Description | Type | Values |
|---|---|---|---|
leap.status | how the chrony is handling leap seconds | string | normal, insert_second, delete_second, unsynchronised |
Configuration
Example Configuration
Last generated: 2026-04-13