Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Latest commit

 

History

History
67 lines (41 loc) · 2.11 KB

telegraf-ntpq.md

File metadata and controls

67 lines (41 loc) · 2.11 KB

telegraf/ntpq

Monitor Type: telegraf/ntpq (Source)

Accepts Endpoints: Yes

Multiple Instances Allowed: Yes

Overview

This is an embedded form of the Telegraf NTPQ plugin.

This montior requires the ntpq executable available on the PATH of the agent.

Configuration

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)

Metrics

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)

Non-default metrics (version 4.7.0+)

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.