diff options
author | Ben Kochie <superq@gmail.com> | 2020-05-25 13:58:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-25 13:58:01 +0200 |
commit | 2aef188bc819bade18ec297f9ce34f200caf1431 (patch) | |
tree | 4b91ba42f154d348297acbd525ff7a29c433331a | |
parent | f3073755a383a570705079601b42e1ed7723fde6 (diff) | |
parent | 744e334ef9c5e75a9faaa8aed6fab6d0ca41bad5 (diff) | |
download | prometheus_node_collector-2aef188bc819bade18ec297f9ce34f200caf1431.tar.bz2 prometheus_node_collector-2aef188bc819bade18ec297f9ce34f200caf1431.tar.xz prometheus_node_collector-2aef188bc819bade18ec297f9ce34f200caf1431.zip |
Merge pull request #1679 from alexnoz/ntp-usage-str-fix
Use clearer usage string for `collector.ntp.server-is-local` option
-rw-r--r-- | collector/ntp.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/collector/ntp.go b/collector/ntp.go index ea3a69e..411ba25 100644 --- a/collector/ntp.go +++ b/collector/ntp.go | |||
@@ -35,7 +35,7 @@ const ( | |||
35 | var ( | 35 | var ( |
36 | ntpServer = kingpin.Flag("collector.ntp.server", "NTP server to use for ntp collector").Default("127.0.0.1").String() | 36 | ntpServer = kingpin.Flag("collector.ntp.server", "NTP server to use for ntp collector").Default("127.0.0.1").String() |
37 | ntpProtocolVersion = kingpin.Flag("collector.ntp.protocol-version", "NTP protocol version").Default("4").Int() | 37 | ntpProtocolVersion = kingpin.Flag("collector.ntp.protocol-version", "NTP protocol version").Default("4").Int() |
38 | ntpServerIsLocal = kingpin.Flag("collector.ntp.server-is-local", "Certify that collector.ntp.server address is the same local host as this collector.").Default("false").Bool() | 38 | ntpServerIsLocal = kingpin.Flag("collector.ntp.server-is-local", "Certify that collector.ntp.server address is not a public ntp server").Default("false").Bool() |
39 | ntpIPTTL = kingpin.Flag("collector.ntp.ip-ttl", "IP TTL to use while sending NTP query").Default("1").Int() | 39 | ntpIPTTL = kingpin.Flag("collector.ntp.ip-ttl", "IP TTL to use while sending NTP query").Default("1").Int() |
40 | // 3.46608s ~ 1.5s + PHI * (1 << maxPoll), where 1.5s is MAXDIST from ntp.org, it is 1.0 in RFC5905 | 40 | // 3.46608s ~ 1.5s + PHI * (1 << maxPoll), where 1.5s is MAXDIST from ntp.org, it is 1.0 in RFC5905 |
41 | // max-distance option is used as-is without phi*(1<<poll) | 41 | // max-distance option is used as-is without phi*(1<<poll) |