From 79476151b5d590a28853d744291b3541021fb5c2 Mon Sep 17 00:00:00 2001 From: Melora Hugues Date: Sat, 7 Dec 2024 17:22:49 +0100 Subject: [PATCH] Fix uptime unit --- collector/uptime/uptime.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/uptime/uptime.go b/collector/uptime/uptime.go index 2b58400..adc40bd 100644 --- a/collector/uptime/uptime.go +++ b/collector/uptime/uptime.go @@ -82,7 +82,7 @@ func New() *UptimeCollector { procFileLocation: procUptimeLocation, uptimeFreq: 1 * time.Second, 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"}), } }