grafana / loki

Like Prometheus, but for logs.
https://grafana.com/loki
GNU Affero General Public License v3.0
23.97k stars 3.46k forks source link

feat: Add Rule Name and Type to Query Tags #15055

Open bentonam opened 11 hours ago

bentonam commented 11 hours ago

What this PR does / why we need it:

When the ruler evaluation is remote, the only query tag set is source=ruler. When identifying problematic queries it would be more useful to have more than just the query and source=ruler. This adds support to also set the rule_name and rule_type.

Which issue(s) this PR fixes: Fixes #

Special notes for your reviewer:

Eventually, we may need to add namespace and group

Checklist

CLAassistant commented 11 hours ago

CLA assistant check
All committers have signed the CLA.