Loading

Create a degraded docs rule

Stack 9.1.0 Serverless

Note

Users need the Data Set Quality role with the Manage rules privilege or the Editor role or higher to create degraded docs rules. To learn more, refer to Assign user roles and privileges.

Based on the data found on the Data Set Quality page, you can create a rule to notify you when the percentage of degraded documents for a specific data view has exceeded a value over a specific time period.

Create rule for degraded docs

To access this rule from the Alerts page:

  1. Go to Alerts.
  2. Click Manage RulesCreate rule.
  3. Under Select rule type, select Degraded docs.

You can also access this rule from the Data Set Quality page:

  1. Go to Stack ManagementData Set Quality or search for "Data Set Quality" using the global search field.
  2. Select a data set name from the data set table.
  3. Select Actions in the upper-right corner of the page.
  4. Select Create rule.

Define the following conditions for your rule:

  1. Set the data view you want to create the rule for. If you access the rule from the Data Set Quality page, the data view is automatically populated.
  2. Set the threshold percentage that, when exceeded for a period of time, the rule sends an alert.
  3. Specify how long the threshold must be exceeded before an alert is sent.
  4. (Optional) Set one or more Group alerts by fields. Every unique value will create an alert.
  5. Set how often to check the rule conditions by selecting a time value and unit under Rule schedule.
  6. (Optional) Configure Advanced options:
    • Define the number of consecutive matches required before an alert is triggered under Alert delay.
    • Enable or disable Flapping Detection to reduce noise from frequently changing alerts. You can customize the flapping detection settings if you need different thresholds for detecting flapping behavior.

The preview chart provides a visualization of how many entries match your configuration. The shaded area shows the threshold you’ve set.

If you use the Group alerts by option, the maximum bar size will be 3. It will only show the top 3 fields.

You can extend your rules with actions that interact with third-party systems, write to logs or indices, or send user notifications. You can add an action to a rule at any time. You can create rules without adding actions, and you can also define multiple actions for a single rule.

To add actions to rules, you must first create a connector for that service (for example, an email or external incident management system), which you can then use for different rules, each with their own action frequency.