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

Support counter metrics with the _total suffix. #146

Merged
merged 5 commits into from
Aug 14, 2019

Conversation

bmoyles0117
Copy link
Contributor

This change should resolve the bug discovered in #144 where metrics introduced in Python3 client librarie have adopted the new standard for tracking counter creation time with _total and _created suffixes.

Copy link
Contributor

@StevenYCChou StevenYCChou left a comment

Choose a reason for hiding this comment

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

Recommend adding testcases for counter type and non-counter type metrics to test it thoroughly.

retrieval/series_cache.go Outdated Show resolved Hide resolved
retrieval/series_cache.go Outdated Show resolved Hide resolved
retrieval/transform_test.go Outdated Show resolved Hide resolved
retrieval/transform_test.go Outdated Show resolved Hide resolved
@bmoyles0117
Copy link
Contributor Author

Updated, PTAL

Copy link
Contributor

@StevenYCChou StevenYCChou left a comment

Choose a reason for hiding this comment

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

LGTM, Approve.

@bmoyles0117 bmoyles0117 force-pushed the support-prometheus-counters-with-total-suffix branch from ae50bd2 to b719493 Compare August 14, 2019 19:27
@bmoyles0117 bmoyles0117 merged commit 559ea1f into master Aug 14, 2019
@bmoyles0117 bmoyles0117 changed the title Support metrics with the _total suffix and treat them as counters. Support counter metrics with the _total suffix. Aug 14, 2019
@StevenYCChou StevenYCChou deleted the support-prometheus-counters-with-total-suffix branch August 29, 2019 14:07
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.

3 participants