Event monitors allow you to alert on events matching a search query.
To create a event monitor in Datadog, use the main navigation: Monitors –> New Monitor –> Event.
As you fill in the parameters below, the list of events above the search fields is filtered.
<TEXT>
error
, warning
, info
, or success
all
, normal
, or low
<SOURCE>
<TAGS>
<TAGS>
Choose your alert grouping:
above
, above or equal to
, below
, or below or equal to
<THRESHOLD_NUMBER>
5 minutes
, 15 minutes
, 1 hour
, etc. or custom
to set a value between 5 minutes and 48 hours.Note: Some providers introduce a significant delay between when an event is posted, and when the event is initiated. In this case, Datadog back-dates the event to the time of occurrence, which could place an incoming event outside the current monitor evaluation window. Widening your evaluation window can help account for the time difference. If you need help adjusting your monitor settings appropriately, reach out to Datadog Support.
For detailed instructions on the Say what’s happening and Notify your team sections, see the Notifications page.
Event monitors have specific template variables you can include in the notification message:
Template variable | Definition |
---|---|
{{event.id}} | The ID of the event. |
{{event.title}} | The title of the event. |
{{event.text}} | The text of the event. |
{{event.host.name}} | The name of the host that generated the event. |
{{event.tags}} | A list of tags attached to the event. |
{{event.tags.<TAG_KEY>}} | The value for a specific tag key attached to the event. See the example below. |
For the tags env:test
, env:staging
, and env:prod
:
env
is the tag key.test
, staging
, and prod
are the tag values.The template variable is {{event.tags.env}}
. The result of using this template variable is test
, staging
, or prod
.
Additional helpful documentation, links, and articles:
On this Page