Daniel Jaglowski 40b485f08a Update core for v0.90.0 release (#29539) há 1 ano atrás
..
internal 7a08a6f86c Fix TestGettingTrackingData flakiness (#27927) há 1 ano atrás
testdata f343580ebb [chore] Change receiver config tests to unmarshal config only for that component. (#13383) há 2 anos atrás
Makefile 069d1238cb [ Chrony Receiver ] Part 1 - Adding initial component (#12101) há 2 anos atrás
README.md 562dc48d10 Link component issue badges to the respective issue page (#24642) há 1 ano atrás
config.go 962a113c89 [receiver/chrony] remove duplicate Timeout setting (#26113) há 1 ano atrás
config_test.go 962a113c89 [receiver/chrony] remove duplicate Timeout setting (#26113) há 1 ano atrás
doc.go 5133f4ccd6 [chore] use license shortform (#22052) há 1 ano atrás
documentation.md 7471ea2b86 [receiver/chrony] use generated status header (#22768) há 1 ano atrás
factory.go 7471ea2b86 [receiver/chrony] use generated status header (#22768) há 1 ano atrás
factory_test.go 962a113c89 [receiver/chrony] remove duplicate Timeout setting (#26113) há 1 ano atrás
go.mod 40b485f08a Update core for v0.90.0 release (#29539) há 1 ano atrás
go.sum 40b485f08a Update core for v0.90.0 release (#29539) há 1 ano atrás
metadata.yaml 8a4348cb00 [chore] add codeowners to metadata (#24404) há 1 ano atrás
scraper.go 0eaf99c148 [chronyreceiver] Remove hard dependency on explicit timeout (#24652) há 1 ano atrás
scraper_test.go 5133f4ccd6 [chore] use license shortform (#22052) há 1 ano atrás

README.md

Chrony Receiver

Status
Stability alpha: metrics
Distributions contrib
Issues Open issues Closed issues
Code Owners @MovieStoreGuy, @jamesmoessis

The chrony receiver is a pure go implementation of the command chronyc 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, the chrony receiver will default to the following configuration:

chrony/defaults:
  address: unix:///var/run/chrony/chronyd.sock # The default port by chronyd to allow cmd access
  timeout: 10s # Allowing at least 10s for chronyd to respond before giving up

chrony:
  # This will result in the same configuration as above

Customised

The following options can be customised:

  • address (required) - the address on where to communicate to chronyd
    • The allowed formats are the following
    • udp://hostname:port
    • unix:///path/to/chrony.sock (Please note the triple slash)
    • unixgram:///path/to/chrony/sock
    • The network type unix will be converted to unixgram but both are permissible
  • 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 chronyd time to respond
  • 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:

receivers:
  chrony:
    address: unix:///var/run/chrony/chronyd.sock
    timeout: 10s
    collection_interval: 30s
    metrics:
      ntp.skew:
        enabled: true
      ntp.stratum:
        enabled: true

The complete list of metrics emitted by this receiver is found in the documentation.