diff --git a/collector/textfile.go b/collector/textfile.go index a5323e61..8ff67a8e 100644 --- a/collector/textfile.go +++ b/collector/textfile.go @@ -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(