Monitor Type: telegraf/ntpq
(Source)
Accepts Endpoints: Yes
Multiple Instances Allowed: Yes
This is an embedded form of the Telegraf NTPQ plugin.
This montior requires the ntpq
executable available on the PATH of the agent.
To activate this monitor in the Smart Agent, add the following to your agent config:
monitors: # All monitor config goes under this key
- type: telegraf/ntpq
... # Additional config
For a list of monitor options that are common to all monitors, see Common Configuration.
Config option | Required | Type | Description |
---|---|---|---|
dnsLookup |
no | bool |
If false, set the -n ntpq flag. Can reduce metric gather time. (default: true ) |
These are the metrics available for this monitor. Metrics that are categorized as container/host (default) are in bold and italics in the list below.
This monitor will also emit by default any metrics that are not listed below.
ntpq.delay
(gauge)ntpq.jitter
(gauge)ntpq.offset
(gauge)ntpq.poll
(gauge)ntpq.reach
(gauge)ntpq.when
(gauge)
To emit metrics that are not default, you can add those metrics in the
generic monitor-level extraMetrics
config option. Metrics that are derived
from specific configuration options that do not appear in the above list of
metrics do not need to be added to extraMetrics
.
To see a list of metrics that will be emitted you can run agent-status monitors
after configuring this monitor in a running agent instance.