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

Support histogram metrics in prometheus #557

Closed
gianrubio opened this issue Apr 5, 2017 · 4 comments · Fixed by #2608
Closed

Support histogram metrics in prometheus #557

gianrubio opened this issue Apr 5, 2017 · 4 comments · Fixed by #2608
Labels
lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

Comments

@gianrubio
Copy link
Contributor

gianrubio commented Apr 5, 2017

Ingress should support histogram metrics

@databus23
Copy link
Contributor

What kind of metrics do you have in mind? response times? requests sizes?

One problem I see is that having them labeled with servername/vhost is ok but it rarely is enough. Normally you need those metrics by different api endpoints. But you can't just add the request path as a label because that might contain ids creating a unbounded amount of time series. At the ingress layer there is no way to give a proper label for different parts of a backend api. Only the backend app itself can do that.

We are using https://github.com/knyar/nginx-lua-prometheus in our nginx ingress controller (with a custom config template) to get detailed request counts by status code with success. Unfortunately this library also comes with a caveat that limits the amount if time series you can create which is not optimal in the case of histograms.

@gianrubio
Copy link
Contributor Author

What kind of metrics do you have in mind? response times? requests sizes?

Exactly, do you have another metrics in mind?

... Normally you need those metrics by different api endpoints ...

Good point on monitoring endpoints. I was not thinking about it but we can achieve this changing the vts filter vhost_traffic_status_filter_by_set_key from $geoip_country_code country::* to $uri $host;. Look above the metrics output.

screen shot 2017-06-15 at 09 48 26

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or @fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Dec 27, 2017
@gianrubio
Copy link
Contributor Author

/lifecycle frozen

@k8s-ci-robot k8s-ci-robot added the lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. label Jan 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants