diff options
author | Johannes 'fish' Ziemke <github@freigeist.org> | 2016-12-22 17:38:25 +0100 |
---|---|---|
committer | Johannes 'fish' Ziemke <github@freigeist.org> | 2017-01-03 14:03:23 +0100 |
commit | 3db2f442ae3abffed4fec28438b4883854601131 (patch) | |
tree | 80c6ae66b6500a1ed0a3bbecd795b1e8f9fc27e7 /collector/ntp.go | |
parent | 269ee7a7b467e37d88621ac798d28284b1e28ae3 (diff) | |
download | prometheus_node_collector-3db2f442ae3abffed4fec28438b4883854601131.tar.bz2 prometheus_node_collector-3db2f442ae3abffed4fec28438b4883854601131.tar.xz prometheus_node_collector-3db2f442ae3abffed4fec28438b4883854601131.zip |
Limit node-exporter scope, deprecated collectors
Diffstat (limited to 'collector/ntp.go')
-rw-r--r-- | collector/ntp.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/collector/ntp.go b/collector/ntp.go index 60c9b76..ee4c9db 100644 --- a/collector/ntp.go +++ b/collector/ntp.go | |||
@@ -41,6 +41,7 @@ func init() { | |||
41 | // Takes a prometheus registry and returns a new Collector exposing | 41 | // Takes a prometheus registry and returns a new Collector exposing |
42 | // the offset between ntp and the current system time. | 42 | // the offset between ntp and the current system time. |
43 | func NewNtpCollector() (Collector, error) { | 43 | func NewNtpCollector() (Collector, error) { |
44 | warnDeprecated("ntp") | ||
44 | if *ntpServer == "" { | 45 | if *ntpServer == "" { |
45 | return nil, fmt.Errorf("no NTP server specified, see -collector.ntp.server") | 46 | return nil, fmt.Errorf("no NTP server specified, see -collector.ntp.server") |
46 | } | 47 | } |