Scorecard rule filters
Last updated
Last updated
Rule filters allow you to apply a Scorecard rule only to specific entities. It's helpful to use a rule filter when a rule doesn’t apply to every entity or every group.
You can apply a filter in the Cortex UI while building out your Scorecard rules, or you can write a custom CQL query to filter your rule.
When setting up a rule for a Scorecard, click and expand Restrict rule to specific groups.
Select the relevant groups to include or exclude.
Or, if you prefer to write a CQL query, click Switch to CQL under the group fields.
Click Save rule.
See the Scorecard documentation for instructions on the overall process of creating a Scorecard.
You can also edit an existing Scorecard to add a filter to a rule.
For example, let's say that entities in the "billing" group don't need to have SLOs set up properly.
In the rule "Has SLOs set up," apply a filter to exclude the "billing" group:
After saving the rule with the excluded group, view the Scorecard. Any entities in the "billing" group will not be scored against the "Has SLOs set up" rule. The rule will not appear as a passing or a failing rule; it will not be included at all.
Once a rule filter has been applied, you can still see it on a Scorecard’s home page. Navigate to the Rules tab and expand the rule to confirm it has been exempted.