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

Adding prom metrics handler #14

Merged
merged 1 commit into from
Dec 21, 2017

Conversation

jrnt30
Copy link
Contributor

@jrnt30 jrnt30 commented Dec 21, 2017

In prep for your TGIK demo, if you wanted to have something simple in KUARD to expose metrics with... This is really just a hammer to add in prom metrics exposed on :8080/metrics. As you see
it wraps every endpoint.

Additionally, it does not attempt to match on the actual pattern of the URL and instead
uses the URL. This in reality is not a good practice as Prometheus does not scale well
with super high cardinality data.

Essentially just plagiarizing content from https://youtu.be/TJLpYXbnfQ4?list=PLxlCI-LN9VxoOd4bPaWytkfgHo7qyregA as I found it very useful

- This is really just a hammer to add in prom metrics exposed on :8080/metrics.  As you see
it wraps every endpoint.

Additionally, it does not attempt to match on the actual pattern of the URL and instead
uses the URL.  This in reality is not a good practice as Prometheus does not scale well
with super high cardinality data
@jbeda
Copy link
Member

jbeda commented Dec 21, 2017

Love it! Thanks!

@jbeda jbeda merged commit caca90d into kubernetes-up-and-running:master Dec 21, 2017
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

2 participants