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: metrics pipeline count all log lines #1678

Merged
merged 1 commit into from
Feb 12, 2020
Merged

Conversation

slim-bean
Copy link
Collaborator

It would be useful for the metrics stage to be able to count all log lines and output a metric for each combo of labels.

This adds a config option which enables this capability.

Signed-off-by: Edward Welch edward.welch@grafana.com

…eating line count metrics which include all your labels.

Found a bug in the the test runner where it didn't fail if the actual error was nil but the test expected an error
Added some tests to the counters to test valid configs

Signed-off-by: Edward Welch <edward.welch@grafana.com>
Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@slim-bean slim-bean merged commit 4aeeeea into master Feb 12, 2020
@slim-bean slim-bean deleted the counter-match-all branch February 12, 2020 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants