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

Improving instrumentation. #1042

Merged
merged 1 commit into from
Jan 17, 2017

Conversation

enxebre
Copy link
Contributor

@enxebre enxebre commented Jan 17, 2017

Some changes for sticking to best practices on instrumentation according to comments here #1022 ping @brian-brazil @SantoDE

@@ -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"

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.

Copy link
Collaborator

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

Copy link
Collaborator

@SantoDE SantoDE left a 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]
Copy link
Collaborator

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]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here ;-)

@enxebre
Copy link
Contributor Author

enxebre commented Jan 17, 2017

Should be ok now. Thanks!

@SantoDE
Copy link
Collaborator

SantoDE commented Jan 17, 2017

Cool @enxebre

LGTM now 👼

Would you be so kind to just rebase the branch and squash your commits?

ping @containous/traefik

@enxebre
Copy link
Contributor Author

enxebre commented Jan 17, 2017

Hey @SantoDE I just rebased it, just in case you didn't know, you can squash and merge the PR from Github straight away
screen shot 2017-01-17 at 17 18 47

Copy link
Contributor

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

LGTM 🐸

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants