Fix uptime unit
This commit is contained in:
parent
5df32a9b98
commit
79476151b5
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ func New() *UptimeCollector {
|
||||||
procFileLocation: procUptimeLocation,
|
procFileLocation: procUptimeLocation,
|
||||||
uptimeFreq: 1 * time.Second,
|
uptimeFreq: 1 * time.Second,
|
||||||
uptime: 0,
|
uptime: 0,
|
||||||
uptimeProm: prometheus.NewGauge(prometheus.GaugeOpts{Namespace: "system", Name: "uptime_nanosec", Help: "System uptime in nanoseconds"}),
|
uptimeProm: prometheus.NewGauge(prometheus.GaugeOpts{Namespace: "system", Name: "uptime_sec", Help: "System uptime in seconds"}),
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue