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