risingwave icon indicating copy to clipboard operation
risingwave copied to clipboard

grafana: auto add label filter for metrics

Open skyzh opened this issue 2 years ago • 0 comments

For all metrics like:

histogram_quantile(0.9, sum(rate(object_store_operation_bytes_bucket[1m])) by (le, type))

We should support automatically rewrite them into

histogram_quantile(0.9, sum(rate(object_store_operation_bytes_bucket{ job = "$job", instance = "$instance" }[1m])) by (le, type))

So that users can filter easily by instance or by job.

skyzh avatar Jun 07 '22 12:06 skyzh