aboutsummaryrefslogtreecommitdiff
path: root/collector/ntp.go
diff options
context:
space:
mode:
authorJohannes 'fish' Ziemke <github@freigeist.org>2016-12-22 17:38:25 +0100
committerJohannes 'fish' Ziemke <github@freigeist.org>2017-01-03 14:03:23 +0100
commit3db2f442ae3abffed4fec28438b4883854601131 (patch)
tree80c6ae66b6500a1ed0a3bbecd795b1e8f9fc27e7 /collector/ntp.go
parent269ee7a7b467e37d88621ac798d28284b1e28ae3 (diff)
downloadprometheus_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.go1
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.
43func NewNtpCollector() (Collector, error) { 43func 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 }