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 type_overrides member to PrometheusCheck class #3463

Merged
merged 1 commit into from
Aug 10, 2017

Conversation

xvello
Copy link
Contributor

@xvello xvello commented Aug 2, 2017

What does this PR do?

Allows to override metric type if the provided type is invalid or absent via the type_overrides class member. Overrides have effect both on protobuf and text formats. If the type name is invalid, the override is ignored.

Motivation

Some prometheus source don't specify type information in the text format. We can't reliably report on untyped metrics, so we'll need to force a type in the checks. See https://gitlab.com/gitlab-org/gitlab-ce/issues/35028

Allows to override metric type if the provided type is invalid or absent
@xvello xvello added this to the 5.17 milestone Aug 2, 2017
@hkaj hkaj self-assigned this Aug 10, 2017
@hkaj hkaj self-requested a review August 10, 2017 14:18
@xvello xvello merged commit 71db741 into master Aug 10, 2017
@xvello xvello deleted the xvello/untyped_prometheus branch August 10, 2017 16:27
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.

2 participants