Skip to content
Snippets Groups Projects
Commit f982d060 authored by Joshua Lambert's avatar Joshua Lambert
Browse files

Optimize NGINX throughput query

parent 3e472684
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -52,7 +52,7 @@
weight: 1
queries:
- id: response_metrics_nginx_ingress_16_throughput_status_code
query_range: 'sum(label_replace(label_replace(label_replace(label_replace(rate(nginx_ingress_controller_requests{namespace="%{kube_namespace}",ingress=~".*%{ci_environment_slug}.*"}[2m]), "status_code", "5xx", "status", "5.*"), "status_code", "4xx", "status", "4.*"), "status_code", "3xx", "status", "3.*"), "status_code", "2xx", "status", "2.*")) by (status_code)'
query_range: 'sum(label_replace(rate(nginx_ingress_controller_requests{namespace="%{kube_namespace}",ingress=~".*%{ci_environment_slug}.*"}[2m]), "status_code", "${1}xx", "status", "(.)..")) by (status_code)'
unit: req / sec
label: Status Code
series:
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment