mirror of
https://github.com/prometheus-community/windows_exporter
synced 2025-02-21 06:36:56 +00:00
Merge pull request #902 from breed808/textfile
Move textfile mtime metric from loop
This commit is contained in:
commit
27ceeecff3
@ -313,10 +313,11 @@ fileLoop:
|
||||
} else {
|
||||
for _, mf := range metricFamilies {
|
||||
convertMetricFamily(mf, ch)
|
||||
c.exportMTimes(mtimes, ch)
|
||||
}
|
||||
}
|
||||
|
||||
c.exportMTimes(mtimes, ch)
|
||||
|
||||
// Export if there were errors.
|
||||
ch <- prometheus.MustNewConstMetric(
|
||||
prometheus.NewDesc(
|
||||
|
Loading…
Reference in New Issue
Block a user