GitHub annotations
Annotations let you extract data from the GitHub data source and overlay events on dashboard panels.
Required fields
To create annotations, you need to specify at least the following two fields:
- A String field for the annotation text.
- A Time field for the annotation time.
If you want to add titles or tags to the annotations, you can add additional fields with the appropriate types.
Supported resources
You can create annotations from the following GitHub resources:
- Commits
- Issues
- Pull requests
- Releases
- Tags
Configure an annotation query
To configure an annotation query:
- Navigate to Dashboard settings > Annotations.
- Click Add annotation query.
- Select the GitHub data source.
- Select the query type and configure the query options.
- Select the field to display on the annotation and the field that represents the time the event occurred.
For more information on annotation configuration, refer to Built-in query editor.
Pull request and issue annotation times
When you create annotations for pull requests and issues, there are two time selections. This is because two different times affect an annotation:
- Filter time: The time range of the dashboard or panel, used to filter which events display on the graph.
- Display time: The time that determines where on the graph the event appears.
The first selection filters the events that display on the graph. For example, if you select ClosedAt, only events that were closed within your dashboard’s time range are displayed.
The second selection determines where on the graph the event is positioned.
Typically these are the same, however there are cases where you may want them to be different. For example, you might want to filter by ClosedAt but display the annotation at the CreatedAt time.
Use case examples
The following examples demonstrate common ways to use GitHub annotations on your dashboards.
Mark releases on performance dashboards
Overlay release events on application performance panels to correlate deployments with changes in metrics like error rates or latency:
- Add an annotation query using the Releases query type.
- Set the String field to
name(the release title). - Set the Time field to
created_at.
When a metric spike aligns with a release annotation, you can quickly identify which release may have introduced the change.
Track deployments across environments
Annotate dashboards with deployment events to see when code was deployed to each environment:
- Add an annotation query using the Tags query type.
- Set the String field to
name(the tag name, for examplev1.2.3). - Set the Time field to
created_at.
Visualize merged pull requests alongside commit activity
Show when pull requests were merged on a commit activity time series to understand how contributions flow into the codebase:
- Add an annotation query using the Pull Requests query type.
- Set the Query field to
is:merged. - Set the Filter time to
MergedAtto only show PRs merged in the dashboard’s time range. - Set the Display time to
MergedAtso annotations appear at the merge point. - Set the String field to
title.


