Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Promtail logentry_dropped_lines_total metric not incrementing #4158

Closed
lukeplausin opened this issue Aug 13, 2021 · 1 comment · Fixed by #4246
Closed

Promtail logentry_dropped_lines_total metric not incrementing #4158

lukeplausin opened this issue Aug 13, 2021 · 1 comment · Fixed by #4246

Comments

@lukeplausin
Copy link

lukeplausin commented Aug 13, 2021

Describe the bug
According to the docs, promtail should increment this counter when drop statements are matched.

https://grafana.com/docs/loki/latest/clients/promtail/stages/drop/

The documentation mentions a metric called "logentry_drop_lines_total", I can't see it in my prometheus deployment but there is one called logentry_dropped_lines_total. It has the correct labels set by the drop_counter_reason setting, but all of the counts are null.

To Reproduce
Steps to reproduce the behavior:

  1. Deploy promtail with servicemonitor and prometheus
  2. Deploy a pipeline with a drop statement
  3. Check the promtail metrics

Expected behavior

  • The logentry_dropped_lines_total metric should increment based on how many lines have been dropped by the pipeline
  • The documentation should have the correct metric name

Promtail v.2.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants