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

update sanic-prometheus to use full url label #338

Merged
merged 1 commit into from
Oct 22, 2019

Conversation

edaniszewski
Copy link
Contributor

This PR:

  • updates the initialization of the sanic-prometheus monitor in order to get the full url as a label

Without specifying endpoint_type='url', the monitor defaults to endpoint_type='url:1' which signifies that it should only use the first element of the url. Since most of our endpoints are kept under the /v3 root, this lead to the gathered metrics falling under only /test and /v3 which isn't too helpful.

This PR allows the full URL to be used. This will include URLs for specific resources (e.g. /v3/read/1232358127462), so it may get messy with lots of requests, but that isn't terrible since it could help to identify devices which are slow to respond, etc.

@edaniszewski edaniszewski merged commit b66ade9 into v3/staging Oct 22, 2019
@edaniszewski edaniszewski deleted the monitoring/url-labels branch October 22, 2019 15:04
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.

None yet

4 participants