# Annotate graphs with events
Annotations allow you to overlay rich event information from Cognite Data Fusion (CDF) on graphs in Grafana.
To enable CDF events to be used as annotations to a graph in Grafana:
Navigate to your dashboard's settings, and select Annotations from the left side.
In the Data Source field, select your CDF project.
Specify the query to fetch and filter events from CDF. For example:
events{type="some", subtype=~"sub.*"}
1The query above requests events with parameter
type="some"
and filters the results bysubtype
that matchessub.*
.For a full list of valid parameters see the API documentation.
Learn more about how you can filter the results, for example by using regular expressions.
Click Update.