grafana / cortex-jsonnet

Deprecated: see https://github.com/grafana/mimir/tree/main/operations/mimir instead
Apache License 2.0
74 stars 55 forks source link

Add extra_selectors and sum_by for latency recording rule panel #429

Closed jiachengxu closed 2 months ago

jiachengxu commented 2 years ago

Signed-off-by: Jiacheng Xu jiachengxu@users.noreply.github.com

What this PR does: This PR adds two options to pass the extra_selectors and sum_by to the latencyRecordingRulePanel function. This is really useful when Prometheus adds external labels (cluster labels) before sending the recording metrics to Cortex

Which issue(s) this PR fixes: Fixes #

Checklist

CLAassistant commented 2 years ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.