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

Add send_monotonic_with_gauge config option and refactor test #6618

Merged
merged 9 commits into from
May 15, 2020

Conversation

ChristineTChen
Copy link
Contributor

@ChristineTChen ChristineTChen commented May 11, 2020

The send_monotonic_with_gauge config option submits a monotonic_count along with the gauge for Prometheus counter metrics and histogram/summary metrics (that should be a counter). The monotonic_count metric is differentiated from the gauge metric with an appended .total.

This option is hidden by default as it only really applies for legacy behavior.

This PR also refactors tests to de-duplicate code/assertions and use pytest.parametrize for testing the various submission type flags that affect histogram/summary count and sum metrics and counter metrics.

@ChristineTChen
Copy link
Contributor Author

CI failing on new flake8 error codes. PR to fix #6620

@ChristineTChen ChristineTChen merged commit d55aab2 into master May 15, 2020
@ChristineTChen ChristineTChen deleted the cc/openmetrics-monotonic branch May 15, 2020 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants