-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Improving instrumentation. #1042
Conversation
@@ -718,7 +722,7 @@ $ curl -s "http://localhost:8080/api" | jq . | |||
- `/metrics`: You can enable Traefik to export internal metrics to different monitoring systems (Only Prometheus is supported at the moment). | |||
|
|||
```bash | |||
$ traefik --web.metrics.prometheus --web.metrics.prometheus.buckets="100,300" | |||
$ traefik --web.metrics.prometheus --web.metrics.prometheus.buckets="0.1,0.3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd keep this in line with the defaults.
Histograms only work when all the servers you're aggregating across have the same buckets, so by having this consistent it reduces the scope for mishaps.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, that'd be good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! 👍
I just have 2 small changes to comment. Please adjust the docs so they match with the default values ;-)
Thanks :)
@@ -544,6 +544,10 @@ address = ":8080" | |||
# [web.statistics] | |||
# RecentErrors = 10 | |||
# | |||
# To enable Traefik to export internal metrics to Prometheus | |||
# [web.metrics.prometheus] | |||
# Buckets=[0.1,0.5] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please adjust the docs to match with the defaults as well :-)
# | ||
# To enable Traefik to export internal metrics to Prometheus | ||
# [web.metrics.prometheus] | ||
# Buckets=[0.1,0.5] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here ;-)
a708eb8
to
e56424a
Compare
Should be ok now. Thanks! |
Cool @enxebre LGTM now 👼 Would you be so kind to just rebase the branch and squash your commits? ping @containous/traefik |
e56424a
to
b027de3
Compare
Hey @SantoDE I just rebased it, just in case you didn't know, you can squash and merge the PR from Github straight away |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🐸
Some changes for sticking to best practices on instrumentation according to comments here #1022 ping @brian-brazil @SantoDE