Standard dashboards
Complete the following steps to enable change events on standard dashboard panels. To enable change events on standard dashboard panels:- Click Settings.
- From the menu, select Events. The Dashboard events dialog displays.
- In the Dashboard events dialog, click Add event.
- In the Add event dialog, enter a name for your event, such as Alerts from Slack receiver.
- In the Datasource menu, select Timeline events. If you select Prometheus Event Query as the datasource, you can enter a Prometheus query to generate a visualization. This datasource has the same support as Grafana annotations for Prometheus queries.
-
In the box, enter the change events filter you want to display in your panel. Use
the change event filtering syntax
to build your filter. For example, the following filter includes all deploy change
events in the
productionenvironment:If you’re unsure what syntax is available, pressControl+Spaceto display available syntax options. - In the Add event dialog, click Add to add your filter.
- In the Dashboard events dialog, click Apply to apply your filter to your dashboard panels.
- In your dashboard, click Save to save your changes.
Classic dashboards
Complete the following steps to enable change events on classic dashboards panels. You can use Grafana variable syntax in your query, such as including$varname to interpolate values from your
dashboard. Defining variables enables dropdowns in dashboards to better filter your
displayed data. In conjunction with annotations, you can display change events
relevant to your other telemetry data, such as metrics and traces. For example, if
you filter your dashboard to display only metric data for your staging environment,
you can display relevant change events for that environment only.
Limitations
The following limitations apply to change events for classic dashboards:- Change events created using the CreateEvent API don’t display as ranged annotations on Grafana charts. Only built-in change events, such as alerting monitors, and change events created through webhook integrations display as ranged annotations.
- Change events display as annotations on Grafana graph panels only. If you use classic dashboards and want to display change events, your dashboard must use the graph panel type. Annotations aren’t supported on other panel types, such as time series panels.
- From a classic dashboard, click Settings > Advanced settings to display all dashboard options.
-
Optional: You can define variables and include them in your annotation. When the
Grafana query evaluates, the current value replaces the variable.
- Click the Variables tab, and then click New.
- In the General section, enter a name for your variable in the Name field.
-
In the Query Options section, select a Refresh interval and enter your
query in the Regex field. For example, you might create a variable named
clusterwith the following query: -
In the Selection Options section, choose the options for how to display
your data in the dashboard:
- Multi-value: Presents each value for variable data as a checkbox in the variable dropdown to let you select multiple values.
- Include all option: Provides an All option in the variable dropdown menu to let you select all available values.
- Click the Annotations tab, and then click Add Annotation Query.
- In the Annotations page, enter a name for your annotation and select Chronosphere Timeline as the data source.
-
In the Query field, enter a change events query to define the data you want to
display on your dashboard. If you defined variables, you can enter them in your
query.
For example, the following query displays all change events categorized as
deploysthat contain anenvironmentlabel includingproduction-, and includes the$clustervariable you defined previously: -
In the Include Labels field, enter a comma-separated list of labels you want
to display in the annotation tooltip. If you enter a label that isn’t mapped to an
event, Observability Platform doesn’t display that label in the annotation. For
example:
- Click Add to add your annotation, then click Save dashboard to save your changes.
Grafana selection options
When enabling change events for Grafana dashboards, you can define variables to include in your annotation. In the Selection Options section, you can choose Multi-value, Include all option, or both options. The approach you choose depends on your use case and user requirements, in addition to whether you integrate with other annotation plugins.- Multi-value: This option lets you select multiple values simultaneously, which is ideal for scenarios where you must associate annotations with various tags or categories.
- Include all option: This option lets you select all values simultaneously. You can also enter a custom value to display annotations across all available values.
cluster for a Grafana
annotation:
Select neither option
If you select neither Multi-value or Include all option, the cluster dropdown in your classic dashboard lets you select only one value at a time.Select include all with custom value
If you select Include all option and enter a wildcard (.*) value in the
Custom all value field, the cluster dropdown in your Grafana dashboard
includes an All option. Selecting All in the dropdown selects all values and
is equivalent to the following query:
Select multi-value only
If you select only Multi-value, you can select multiple values from the cluster dropdown in your classic dashboard. Selecting multiple values is equivalent to the following query, whereproduction-a|production-b|... are the
values:
Select both multi-value and include all
If you select both Multi-value and Include all option, and enter a wildcard (.*) value in the Custom all value field, the cluster dropdown in your
classic dashboard both includes an All option and lets you select multiple
values.
Selecting All in the dropdown is equivalent to the following query:
production-a|production-b|... are the values: