We have a histogram metric with lots of "le" bucket. I usually use histogram_quantile to see 50th percentile for this, etc. as such:
histogram_quantile(0.50, sum(rate(amqp_bucket{env="prod"}[$__rate_interval])) by (cluster,le))
We have a few clusters which run the same service with the same metrics. I would like to see a difference comparison (to see how much faster/slower the calls are in an another cluster for the same services).
Is there any way to do difference with histogram_quantiles?
Something like
histogram_quantile(0.50, sum(rate(ampq_bucket{cluster="first"}[15s)) by (cluster,le))
-
histogram_quantile(0.50, sum(rate(ampq_bucket{cluster="second"}[15s)) by (cluster,le))
Thanks.