Skip to content

Commit

Permalink
collector: don't fail if perf counters are empty.
Browse files Browse the repository at this point in the history
Signed-off-by: Jan-Otto Kröpke <[email protected]>
  • Loading branch information
jkroepke committed Nov 26, 2024
1 parent 151765d commit f839338
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/collector/textfile/textfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ func (c *Collector) Collect(ch chan<- prometheus.Metric) error {
errs = append(errs, fmt.Errorf("error reading textfile directory %q: %w", directory, err))
}
}

c.exportMTimes(mTimes, ch)

// If duplicates are detected across *multiple* files, return error.
Expand Down

0 comments on commit f839338

Please sign in to comment.