Sentry annotations
Annotations let you overlay Sentry data on dashboard graphs, marking when issues were first or last seen directly on your time-series panels. This helps you correlate application errors with metrics from other data sources.
Before you begin
- Configure the Sentry data source.
- Understand Grafana annotations.
Supported query types for annotations
All Sentry query types are available for annotations. The Issues and Events query types are best suited because they return discrete records with timestamps that map naturally to annotation markers.
Create an annotation query
To add Sentry annotations to a dashboard:
- Open the dashboard where you want to display annotations.
- Navigate to Dashboard settings > Annotations.
- Click Add annotation query.
- Select the Sentry data source.
- Select a Query Type. Issues is the most common choice for annotations.
- (Optional) Filter by Projects to limit annotations to specific Sentry projects.
- (Optional) Filter by Environments to limit annotations to specific environments.
- (Optional) Enter a Query to filter which results appear as annotations.
- (Optional) Set Sort By to control the order of results (for example, Last Seen or Priority).
- (Optional) Set a Limit to control how many annotations display.
- Click Save dashboard.
Annotation examples
The following examples show common annotation configurations.
Overlay all unresolved issues
Display all unresolved issues from a specific project:
- Set Query Type to Issues.
- Select the target project in Projects.
- Set Query to
is:unresolved.
Overlay high-priority issues only
Display only high-priority issues as annotations:
- Set Query Type to Issues.
- Set Query to
is:unresolved priority:high.
Overlay issues for a specific release
Mark issues associated with a particular release:
- Set Query Type to Issues.
- Set Query to
release:1.2.0.
Overlay recent error events
Mark individual error events on your graphs:
- Set Query Type to Events.
- Set Query to
event.type:error. - Set Sort By to Last Seen with Descending sort direction.
- Set Limit to control how many events appear.
Overlay issues using template variables
Use dashboard template variables to make annotations dynamic:
- Set Query Type to Issues.
- Select
var: ${project}in the Projects field. - Set Query to
is:unresolved.
When the user changes the project variable, the annotations update to show issues for the selected project.
Limitations
- Annotations are filtered by the dashboard time range. Only data within the visible time range appears.
- Sentry API rate limits apply. If you have many matching results, set a Limit to reduce the number of API calls.
For more information, refer to Annotations.


