Skip to content

Remove error message from Prometheus labels#467

Merged
mogren merged 1 commit intoaws:masterfrom
bboreham:ip-error-metric-label
May 13, 2019
Merged

Remove error message from Prometheus labels#467
mogren merged 1 commit intoaws:masterfrom
bboreham:ip-error-metric-label

Conversation

@bboreham
Copy link
Copy Markdown
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
}

func ipamdErrInc(fn string, err error) {
ipamdErr.With(prometheus.Labels{"fn": fn, "error": err.Error()}).Inc()
Copy link
Copy Markdown
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