Limit node-exporter scope, deprecated collectors
This commit is contained in:
parent
269ee7a7b4
commit
3db2f442ae
6 changed files with 44 additions and 12 deletions
|
|
@ -41,6 +41,7 @@ func init() {
|
|||
// Takes a prometheus registry and returns a new Collector exposing
|
||||
// the offset between ntp and the current system time.
|
||||
func NewNtpCollector() (Collector, error) {
|
||||
warnDeprecated("ntp")
|
||||
if *ntpServer == "" {
|
||||
return nil, fmt.Errorf("no NTP server specified, see -collector.ntp.server")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue