Hi,
I am using grafana templating to form prometheus query based on values from the template. Currently I am using 2 template parameters Organization and Product . The full query is below :
(sum by (Organization,Endpoint) (rate(custom_latency_endpoint_organization_total{job="Interop-InboundApiListener-Staging",Organization=~"$Organization",Endpoint=~"$Endpoint"}[5m])) - sum by (Organization,Endpoint) (rate(custom_latency_backend_endpoint_organization_total{job="Interop-InboundApiListener-Staging",Organization=~"$Organization",Endpoint=~"$Endpoint"}[5m])))/sum by (Organization,Endpoint) (rate(custom_message_volume_endpoint_organization_total{job="Interop-InboundApiListener-Staging",Organization=~"$Organization",Endpoint=~"$Endpoint"}[5m]))
It gets the differential between 2 latency values and divides by the number of events.
It keeps giving "400 Bad Request. Your browser send an invalid request" . I figured out that when I decrease the number of items in Organization variable it works . There is a threshold after which even when I add a single organization it fails. Is there a way to get around this issue ? We anticipate the $Organization list will grow in future . What is the solution to work around this problem ?
Thanks
Debashish