Zabbix annotations
Annotations overlay event markers on graph panels, letting you correlate Zabbix problems and recovery events with metric data. When a Zabbix trigger fires or recovers, the annotation appears as a vertical line on the graph at the time the event occurred.
Before you begin
- Configure the Zabbix data source.
- Understand Grafana annotations.
Add an annotation query
To add Zabbix annotations to a dashboard:
- Open a dashboard and click Dashboard settings (gear icon).
- Click Annotations in the left menu.
- Click Add annotation query.
- Select the Zabbix data source.
- Configure the annotation query fields described in the following sections.
- Click Apply.
Annotation query fields
Use the following fields to filter which Zabbix problems appear as annotations.
Annotation options
These toggle options control which events appear and what information is displayed.
Annotation content
Each annotation is rendered from the matching Zabbix problem:
- Title:
Problemwhen the event is active orOKwhen it’s a recovery event. - Text: the problem (trigger) name, followed by acknowledgment details when the problem has been acknowledged.
- Tags: the host names of the affected hosts when Show hostname is enabled.
Examples
Monitor high-severity events across production
Annotate a dashboard with only high-severity and disaster-level problems from your production servers.
- Set Group to the host group containing your production servers (for example,
Production). - Set Host to
/.*/to include all hosts in the group. - Set Min severity to High.
- Enable Show OK events to see both when problems start and when they resolve.
- Enable Show hostname to identify which host triggered each event.
Annotate problems for a single host
Overlay all problems from one host onto its dashboard.
- Set Group to the host’s group (or leave it empty).
- Set Host to the exact host name (for example,
web01). - Leave Problem and Min severity at their defaults to include every problem.
Filter by problem name
Show only problems whose trigger name mentions CPU, regardless of severity.
- Set Group to
/.*/and Host to/.*/to search all hosts. - Set Problem to
/CPU/to match any trigger name containingCPU.
Because a plain value matches the trigger name exactly, use the regex form (/CPU/) or a wildcard (CPU*) for partial matches.
Show only unacknowledged problems
Reduce noise by hiding problems that an operator has already acknowledged in Zabbix.
- Configure the Group, Host, and Min severity filters for the events you care about.
- Enable Hide acknowledged events.


