Logging is here!

Event monitor

Overview

Event monitors allows you to alert when an event matching your query occurs.

  1. Select the query and parameters (status, priority, sources and tags) you want to monitor:
    event monitor selection
  2. Select the alert grouping:

    event monitor alert grouping

  3. Select the alerting conditions. The threshold value and timeframe options allows you to set the number of occurrence of an event required during a timeframe before triggering the monitor.

    event monitor alert conditions

  4. Configure your notification options:
    Refer to the Notifications dedicated documentation page for informations.

Using event tags in Event Monitors

In Event Monitors, you can use the tags sent with events to identify events and customize the actions and messages of the Monitor. First, define the search parameters for the full text event search. If you are looking for a specific tag, you can include this in the search as well. For example: My Example Event #example-tag

Note: You may have to escape special characters using a forward slash when searching. For example, if you wanted to search for the string “my_tag_name”, you would need to use “my/_tag/_name”

define_event

You can then use event.tags and event.tags.tagname to retrieve the values of your tags in markdown. For example:

whats_happening

You should then see that your alert triggers when any matching events are found in Datadog and the tags appear in the message.

triggered_event

Using event template variables in notifications

Include Event specific information in your event monitor notifications, template variables available are:

  • {{event.id}} : Id of your event
  • {{event.title}}: Title of the event
  • {{event.text}}: Text of the event
  • {{event.host.name}}: Hostname that generated the event
  • {{event.tags.tagname}}: Tags attached to the event, replace tagname with the name of your tag.
event_notification_template

Further Reading