r/PrometheusMonitoring • u/somzeFiree • Nov 23 '22
How to get 5XX and QPS from Prometheus in k8s?
Hi folks,
I am trying to get the following charts:

I am wondering what kind of exporters I need so I can scrape data from 'k8s' to generate 5XX or QRS(Query Per Second or Request Per Second).
I guess for HTTP response (5XX) I should monitor ingress or service somehow?
To be more specific about what I am trying to accomplish:
- I want to watch HTTP Responses and Requests/s for one specific pod.
- Pod is a black box to me, I am using a pre-built Docker image so I do not have any control over it.
Edit: I have found smt like this but have not tested it yet: nginxplus_upstream_server_responses{code=~"3xx|4xx|5xx"}
Any advice/article will be appreciated. Thank you!