mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-11-10 07:34:09 -08:00
Merge pull request #209 from bluecmd/patch-1
Fix NTP server command line reference
This commit is contained in:
commit
bce2e0c513
|
@ -42,7 +42,7 @@ func init() {
|
||||||
// the offset between ntp and the current system time.
|
// the offset between ntp and the current system time.
|
||||||
func NewNtpCollector() (Collector, error) {
|
func NewNtpCollector() (Collector, error) {
|
||||||
if *ntpServer == "" {
|
if *ntpServer == "" {
|
||||||
return nil, fmt.Errorf("no NTP server specifies, see --ntpServer")
|
return nil, fmt.Errorf("no NTP server specified, see -collector.ntp.server")
|
||||||
}
|
}
|
||||||
if *ntpProtocolVersion < 2 || *ntpProtocolVersion > 4 {
|
if *ntpProtocolVersion < 2 || *ntpProtocolVersion > 4 {
|
||||||
return nil, fmt.Errorf("invalid NTP protocol version %d; must be 2, 3, or 4", *ntpProtocolVersion)
|
return nil, fmt.Errorf("invalid NTP protocol version %d; must be 2, 3, or 4", *ntpProtocolVersion)
|
||||||
|
|
Loading…
Reference in a new issue