Skip to content

Commit

Permalink
fix the "level" label in log-based metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
def committed Mar 28, 2022
1 parent f02d005 commit 21b6fa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion containers/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ func (c *Container) Collect(ch chan<- prometheus.Metric) {

for source, p := range c.logParsers {
for _, c := range p.parser.GetCounters() {
ch <- counter(metrics.LogMessages, float64(c.Messages), source, string(c.Level), c.Hash, c.Sample)
ch <- counter(metrics.LogMessages, float64(c.Messages), source, c.Level.String(), c.Hash, c.Sample)
}
}

Expand Down

0 comments on commit 21b6fa2

Please sign in to comment.