Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Import metrics from Datadog

Point a metric at a Datadog query and ilert fetches the data, so a number you already watch internally can appear on your status page.

If the number already lives in Datadog, there is no reason to push it to ilert as well. A metric data source holds the Datadog credentials once; each metric built on it carries a query, and ilert runs that query for you.

Two steps: create the data source, then create the metric.

Create a Datadog metric data source

In Datadog

You need two credentials, both under Organization Settings:

  • an API key — Organization Settings → API Keys → New Key

  • an Application key — Organization Settings → Application Keys → New Key

Copy both; Datadog will not show them again. See Datadog's own API and Application Keys documentation if the menus have moved.

In ilert

  1. Go to Status pages in the sidebar, open the Metric data sources tab, and click Create metric data source.

  2. Name it — Datadog is fine unless you have several.

  3. Set Type to Datadog.

  4. Pick your Datadog region, matching your Datadog website URL against the URLs listed.

  5. Paste the API key and the Application key, and click Create metric data source.

The ilert Create metric data source form with Datadog selected: Teams, Name, Type, Region, API key and Application key fields.
The credentials are stored once and reused by every metric built on this data source.

Create a metric

In Datadog

Find the graph you want and copy its query:

  1. Open the dashboard holding it and choose Edit this widget.

  2. In the edit view, click the </> icon to switch the graph to its query source.

  3. Copy the query.

In ilert

  1. Go to Status pages → Metrics and click Create metric.

  2. Choose the Datadog data source you created, and continue.

  3. Give the metric a display name and a display unit, and paste the Datadog query.

  4. Save to load a preview, and adjust the query until the graph looks right.

The query is fixed once the metric exists. Get it right in the preview — afterwards, changing it means creating a new metric.

The metric now behaves like any other: add it to a status page, pick an aggregation, and set its display options.

See also

Last updated

Was this helpful?