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

Remove error message from Prometheus labels #467

Merged
merged 1 commit into from
May 13, 2019

Conversation

bboreham
Copy link
Contributor

Fixes #112

Remove error message from Prometheus labels to limit the number of unique labels, in line with best practice

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

To limit the number of unique labels, in line with best practice
https://prometheus.io/docs/practices/naming/#labels
@mogren mogren self-requested a review May 13, 2019 04:17
@mogren mogren added the bug label May 13, 2019
@@ -807,7 +807,7 @@ func (c *IPAMContext) nodeIPPoolTooHigh() bool {
}

func ipamdErrInc(fn string, err error) {
ipamdErr.With(prometheus.Labels{"fn": fn, "error": err.Error()}).Inc()
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks, LGTM

@mogren mogren merged commit 15beb99 into aws:master May 13, 2019
@bboreham bboreham deleted the ip-error-metric-label branch May 13, 2019 19:27
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.

Ensure prometheus metrics are bounded
2 participants