On 11 Jan 08:49, Debashish Ghosh wrote:
> 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
Hello
In the prometheus datasource settings in grafana, set HTTP Method to
"POST".
Regards,
>
> --
> You received this message because you are subscribed to the Google Groups
> "Prometheus Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-users/af47cb3c-54d0-46c8-b489-6c4a9a8a6f58n%40googlegroups.com.
--
Julien Pivotto
@roidelapluie
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/20210111193752.GA867563%40oxygen.