-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Collect metrics of QPS per backend #2116
Comments
@aledbf how should one go about this? I imagine a goroutine here https://github.com/kubernetes/ingress-nginx/blob/master/internal/ingress/controller/metric/collector/vts.go which scrapes periodically to get request count and calculate rps. |
I do not currently have enough bandwidth to work on this one, but if no one volunteers feel free to assign me |
@yastij i would like to work on it, i just can't think of clean way to implement it. The only idea i have is querying nginx_status periodically since it doesnt export a raw qps. Would that idea be mergable:
edit: i made a prototype of what this might look like https://github.com/hoffoo/nginx-stats-exporter/blob/master/main.go the metrics look like this:
let me know if this looks like the right idea |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Closing. This was implemented in #2608 |
Hi, how to open this metrics? I have configured The image is My core configuration is as follows: # Source: ingress-nginx/templates/controller-deployment.yaml
apiVersion: apps/v1
#kind: Deployment
kind: DaemonSet
metadata:
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "10254" ports:
- name: http
containerPort: 80
hostPort: 80
protocol: TCP
- name: https
containerPort: 443
hostPort: 443
protocol: TCP
- name: webhook
containerPort: 8443
protocol: TCP
- name: prometheus
containerPort: 10254
protocol: TCP I can confirm that prometheus has been able to fetch metrics but has not found rps per backend. |
Hello, Currently I'm using Horizontal Pod Autoscaler, and I'm trying to scale based on QPS per backend.
Seems that currently we do not have something like :
The text was updated successfully, but these errors were encountered: