I am trying to create a panel that shows the n'th percentile request time using the Prometheus function histogram_quantile()
. I have a text box variable on the Grafana dashboard that the user will enter a floating point value in. I want to use this variable as the input to histogram_quantile
My current query is
histogram_quantile($quantile,
sum(rate( request_duration_seconds_bucket[2m])) by (le))
However I get an error" : "1:20: parse error: unexpected character: '$'"
Is it possible to use a grafana variable as input for a prometheus function?