Menu
Grafana Cloud
Enterprise
Open source
Amazon Athena annotations
Annotations let you overlay rich event information on top of graphs. You can add annotations by clicking on panels or by adding annotation queries through Dashboard settings > Annotations.
Create an annotation query
To create an annotation query:
- Open the dashboard where you want to add annotations.
- Click the dashboard settings gear icon.
- Select Annotations from the left-side menu.
- Click Add annotation query.
- Select the Amazon Athena data source.
- Enter a SQL query that returns the required annotation columns.
Annotation columns
The following table describes the columns that Amazon Athena annotation queries use to render annotations.
Example annotation query
The following query creates annotations for humidity readings that exceed 95, tagged by environment.
SELECT
time as time,
environment as tags,
humidity as text
FROM
tableName
WHERE
$__dateFilter(time) and humidity > 95

