Help: log_to_metric count does not match Loki log count #24989
Replies: 1 comment
-
|
The mismatch is caused by log events being silently dropped by There are two drop paths in your configuration: 1. Missing
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I’m trying to generate metrics from logs using Vector’s log_to_metric transform so I can query counts much faster in Grafana.
However, the metric counts produced by log_to_metric do not match (its close but not close enough) the counts I see when querying logs directly in Loki (using count_over_time()).
The number of log lines I get from Loki (e.g. using count_over_time({...}[$__range])) is higher than the metric counter produced by Vector.
I want the counter metric (log_events_total) to match the actual number of ingested logs as closely as possible. I would really apreciate if anyone got some ideas on how this can be done
Beta Was this translation helpful? Give feedback.
All reactions