Create Check Rules from Scratch
Create check rules from scratch for full control over every configuration setting. This guide walks through the complete process step by step.
Creating check rules requires the Create Check Rule dataset permission. Admins and dataset Maintainers have it by default. See About Alert Monitoring.
Step 1: Navigate to Check Rules
Access the Check Rules list through the Dash0 navigation menu or by going to the Check Rules in Dash0 directly .
- Under Monitoring in the sidebar, open Alerting.
- Select Check Rules.
The list on the left is a rule selector. Select a rule to view or edit its configuration.
Step 2: Create a New Check Rule
Begin creating a new check rule by providing a descriptive name.
- Click Add at the upper right of the rule list on the left.
- Enter a descriptive name for your check rule in the Name field.
Use clear, descriptive names that indicate what the check monitors. Examples: "Frontend P99 Latency", "Payment Service Error Rate", "Database Connection Pool Exhausted".
Step 3: Build Your Query
The query defines what telemetry you're monitoring. The Query Builder is the interactive user interface for designing queries:
The Query Builder provides tabs for different telemetry types:
- Services: Monitor aggregated metrics across a service
- Tracing: Query span data and trace metrics
- Logging: Monitor log records and patterns
- Metrics: Query custom and OpenTelemetry metrics
- Web Events: Monitor browser telemetry and user interactions
- PromQL: Write raw PromQL expressions for maximum flexibility
Select the tab that matches your telemetry type, then configure your query using the visual builder. For detailed guidance on each tab, including step-by-step instructions, examples, and best practices, see About Query Builder.
- Use visual tabs (Services, Tracing, Logging, Metrics, Web Events) for guided query building
- Use PromQL tab for advanced queries involving multiple services, complex aggregations, or custom logic
- Use
$__thresholdin PromQL expressions as a placeholder for threshold values - Add aggregations (
sum by,avg by) to control how many separate alerts are created
Step 4: Preview Your Query
Review the preview chart to confirm your query returns the expected telemetry data before proceeding. After building your query, review the preview chart to verify it returns the expected data.
The preview chart shows:
- Recent values matching your query
- Time range (typically last hour)
- Legend indicating which series are being monitored
If the chart is empty or shows unexpected data, adjust your query filters or time range.
Step 5: Set Thresholds
In the Services tab, Detection offers Static thresholds and Anomaly detection. The settings depend on the selected metric: Error percentage offers a change against a recent average, a percentage-point delta, a static guard, and a volume floor; request count offers a weekly range. The steps below follow Static thresholds.
-
Scroll to the Thresholds section.
-
Select a comparison operator (>, <, >=, <=, ==, !=) from the dropdown.
-
Enter a value for the Critical threshold.
-
Optionally, click Add degraded threshold to add a Degraded threshold.
- Critical: High-severity issues requiring immediate attention
- Degraded: Warning-level issues that may escalate
The comparison operator and threshold values define the alert condition. For example, "> 100" matches when the metric exceeds 100. A PromQL query must use $__threshold to reference these configured values. If both comparisons match, Critical takes precedence. For > comparisons, Critical is normally higher than Degraded; for < comparisons, it is normally lower. Free-form PromQL also supports a Degraded threshold without a Critical threshold.
In free-form PromQL, you can write the alert condition directly, such as sum(rate(requests_total[5m])) > 10, without separate threshold values. If you use $__threshold, configure at least one threshold before enabling the rule. This applies to synthetic and custom metrics alike.
Step 6: Configure Evaluation Settings
Control how often Dash0 evaluates your check and when it triggers alerts.
Evaluation Frequency
Set how frequently Dash0 runs the check rule query.
-
Locate the Evaluate every dropdown.
-
Select an interval. The dropdown offers 1m (the default), 2m, 3m, 4m, 5m, 10m, 15m, and 1h.
Use shorter intervals (1m) for critical services requiring fast detection. Use longer intervals for non-critical checks or to reduce evaluation costs.
The interval you can use depends on your query window. Wider query windows require a longer minimum interval. See Check Rule Limits for the interval floors and maximum effective lookback.
Grace Periods
Configure grace periods to prevent noisy alerts by requiring sustained threshold violations before firing.
-
Scroll to the Grace Periods section.
-
Set the For grace period (how long the threshold must be exceeded before alerting).
-
Set the Keep firing for grace period (how long the check remains active after recovering).
Grace periods are configured based on your evaluation interval. The options show both the multiplier and the actual time duration:
- None (0m): No grace period, alert immediately
- 1x (1m): Wait one evaluation cycle (e.g., 1 minute if interval is 1 minute)
- 2x (2m): Wait two evaluation cycles
- 3x, 4x, 5x: Longer grace periods for stable alerting
The default For setting is 1x: the check fails after two consecutive failed evaluations, one evaluation interval apart. Keep firing for defaults to None. With For set to 2x (2m) and a 1m interval, the violation must persist for two minutes after the first failed evaluation, normally three consecutive failed evaluations.
When No Data
Select what happens when the query returns no data.
- Locate the When no data dropdown, below the grace periods.
- Select Ignored (the default), Degraded, or Critical.
The setting applies only to an expression with a top-level comparison. See No Data for when Dash0 reports no data and how the grace periods apply.
Step 7: Add Enablement Conditions (Optional)
Optionally add enablement conditions to restrict when the check fires, acting as boolean guards on your main query.
-
Scroll to the Enablement Conditions section.
-
Click Add enablement condition.
-
Specify conditions that must be true for the check to fire. For example, only alert when the service has sufficient traffic. This prevents false alerts during maintenance windows or low-traffic periods.
Step 8: Configure Notifications
Set up how and where notifications are sent when the check rule fires by configuring the summary, description, and notification channels.
The UI-based approach described in this section is not the only way to configure notification channels. Instead, you can manage notification channels as code.
Create clear alert messages that will appear in notifications.
- Enter a concise Summary for the alert, which appears in notification titles.
- In the Description field, provide detailed context.
Example summary:
Frontend P99 latency exceeded {{$__threshold}}msExample description:
Service: {{$labels.service_name}}
Current value: {{$value}}ms
Threshold: {{$__threshold}}msUse template variables to make summaries and descriptions dynamic.
The editors provide auto-completion to help you discover the available labels and variables.
The auto-completion dropdown shows the labels and variables based on your query evaluation. If you don't see the labels you expect, check the preview chart to confirm which labels your query produces.
{{$__threshold}}: The threshold value specified in the Thresholds section (degraded or critical, whichever fired). Note the two leading underscores.{{$value}}: The actual metric value that triggered the alert.{{$labels.label_name}}: A label of the series that failed the check.
Where labels come from:
$labels holds only the labels projected by your PromQL query, such as {{ $labels.service_name }} and {{ $labels.jvm_memory_type }} below.
These are visible in the evaluation preview chart legend, such as service_name and jvm_memory_type below.
Labels from the Additional Labels section, such as team:sre, are not in $labels. {{ $labels.team }} renders <no value>. To show such a value in the summary, write it in the summary itself.
Use the $__threshold placeholder in your check rule query, and it will be replaced with the actual threshold value during evaluation.
For details, see Optimize Alert Messages with Templates for all available variables and template functions.
Step 9: Configure Notification Channels
Configure where alert notifications should be sent when the check rule fires.
The UI-based approach described in this section is not the only way to configure notification channels. Instead, you can manage notification channels as code.
- In the rule editor's Notifications section, click Add notification channel.
- Select an existing channel to assign to this rule.
- Review which severities should notify that channel.
Assigning a channel does not create a new destination. If the channel you need does not exist yet, create it in Notification Channels settings , then return to the rule editor to assign it. See Set Up Notification Channels.
Instead of hardcoding channels, you can use labels to route alerts dynamically:
- Add a label to your query (e.g.,
team="frontend"). - Configure routing rules in Dash0 to send alerts based on label values.
See Route Check Rule Notifications for routing configuration.
Add Automations and Managed Agents
The check rule's Automations section, after Notifications, lists the managed agents and automations that run when the rule fails. Save the check rule before you add one.
- Investigate: The Managed agents group shows an Investigate card with how often this rule failed in the last 7 days. If Investigate isn't set up, the card opens its setup page with this rule selected. If it is, you can add this rule to an existing Investigate agent or create a new one.
- Automations: Link an existing automation, or create one from a template. If an automation runs for every failed check or matches by label, you can stop it for this rule only.
For each automation, choose how the alert and the automation's result are delivered:
- Same notification channel, when automation finishes: The alert goes out as usual, and the result follows as a new message. This is the default.
- Hold off the alert until the automation completes: One alert goes out, with the result, when the run finishes. A held alert is still sent if the run is skipped or fails.
- Different notification channels: The alert goes to the check rule's channels, and the result goes to the automation's Send to destinations.
Investigate replies in the alert's Slack thread when the alert went to Slack.
Step 10: Save and Verify Your Check Rule
Review and save your check rule configuration to activate it.
- Review all settings.
- Click Save beside the check-rule name in the top toolbar.
- Wait for the confirmation message.
An enabled check rule begins evaluating at the configured interval. Select the saved rule in the list to verify its configuration and evaluation history.
After saving, verify the check rule is working correctly by reviewing its evaluation history.
- Return to the Check Rules list.
- Click on your newly created check rule.
- Review the timeline chart showing evaluation history.
Further Reading
- About Alert MonitoringOverview of Dash0's alerting capabilities
- Generate Check Rules with Agent0Use AI to generate check rule configurations
- Investigate Failed ChecksTroubleshoot failed checks
- Route Check Rule NotificationsUse label-based routing to direct alerts
- Set Up Notification ChannelsConfigure notification channels
Last updated:










