mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-03-06 02:26:36 +00:00
feat: increase time resolution when possible (collectors: os, system, time) (#2047)
This commit is contained in:
@@ -405,7 +405,7 @@ func (c *Collector) fetchUpdates(logger *slog.Logger, usd *ole.IDispatch) ([]pro
|
||||
metricsBuf = append(metricsBuf, prometheus.MustNewConstMetric(
|
||||
c.lastScrapeMetric,
|
||||
prometheus.GaugeValue,
|
||||
float64(time.Now().Unix()),
|
||||
float64(time.Now().UnixMicro())/1e6,
|
||||
))
|
||||
|
||||
return metricsBuf, nil
|
||||
|
||||
Reference in New Issue
Block a user