Skip to content

Commit

Permalink
Use clearer usage string for collector.ntp.server-is-local option
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Nozdriukhin <alex-nozzz@mail.ru>
fixes prometheus#1662
  • Loading branch information
Alex Nozdriukhin authored and oblitorum committed Apr 9, 2024
1 parent b090078 commit 5cf3d82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collector/ntp.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const (
var (
ntpServer = kingpin.Flag("collector.ntp.server", "NTP server to use for ntp collector").Default("127.0.0.1").String()
ntpProtocolVersion = kingpin.Flag("collector.ntp.protocol-version", "NTP protocol version").Default("4").Int()
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()
ntpServerIsLocal = kingpin.Flag("collector.ntp.server-is-local", "Certify that collector.ntp.server address is not a public ntp server").Default("false").Bool()
ntpIPTTL = kingpin.Flag("collector.ntp.ip-ttl", "IP TTL to use while sending NTP query").Default("1").Int()
// 3.46608s ~ 1.5s + PHI * (1 << maxPoll), where 1.5s is MAXDIST from ntp.org, it is 1.0 in RFC5905
// max-distance option is used as-is without phi*(1<<poll)
Expand Down

0 comments on commit 5cf3d82

Please sign in to comment.