How can I include links to appropriate dashboards in my Monitor Notifications?

Many organizations today would like to include additional context to their Alerts.  Quick links to relevant dashboards as a part of the Alert has proven to reduce the overall time it takes during the break fix process to reduce time to resolution. 

Datadog makes message template variables available to each defined monitor.  Using these variables, you can dynamically build a URL that will link Datadog Users to an appropriate dashboard using the scope of the monitor.  Additional template variable documentation found here:

The are a few examples of providing links to items like System Dashboards, Integration Dashboards, HostMaps and Managed Monitors pages. 

First example to review is the most common.  Let’s say you would like to provide a link to a System Dashboard when a monitor for a specific system metric has exceeded your defined threshold.  The message template variable that can be leveraged in this instance would be {{}}.  Include the following URL as a part of your Monitor “Say What’s Happening” section:{{}}

As you can see, {{}} will be replaced with the offending host of the monitor in question. 


Below you will find additional examples of links that could be added to Monitors to provide Datadog Users quick access to common pages leveraged during the break fix and triage process.

Hostmaps - If you would like to include a HostMap to compare metrics with other similar hosts, you can use a link like below to be included in your Monitor: 

The above link has more customizable options than your standard System Dashboard.  Here you have additional variables to define.  Most common variables passed into this URL are the following: 

Fillby, sizeby, filter.   Fill by can be defined by adding fillby:avg:<MetricName>.  Size by can be defined by adding sizeby:avg:<SecondMetricName>.  Filter can be used to specify a specific integration (i.e. Cassandra, mysql, apache, snmp, etc) by adding filter=<integration_name>


The above will color fill the hexagons by system.cpu.system, it will size the hexagons by system.cpu.stolen and add a filter to only include Cassandra hosts. 

Integration Dashboards - If you are building Application or Integration specific Monitors, you can link to that specific Integration Dashboard as well as adding a scope for the host that triggered the monitor.  In the example below all that is necessary to populate is the <integration_name> section for something like Cassandra, apache, snmp, etc as well as providing the scope for the offending host:<integration_name>?tpl_var_scope=host:{{}}


Manage Monitors Page – If you would like to link to a Manage monitors page that displays all of the monitors for the host in question, you can define a link like below:{{}}

The above will link to all monitors for this host.  You have other options available to further refine the link.  For example, if you would only like monitors that are in an Alert State, you can add the following status:Alert (other statuses that can be leveraged are WARN, NO%20DATA, OK and MUTED).  Below is an example link:{{}}&status:Alert


If you would like all monitors for a specific application or integration, you can add the following query to the URL q=<integration_name>



Have more questions? Submit a request


Article is closed for comments.
Powered by Zendesk