View as Markdown
Datadog icon

Datadog ACTION

Search Monitors

Search Datadog monitors (alerting rules) including status, thresholds, and conditions. Query syntax: tag:env:production, type:metric, status:Alert. Tags filter: comma-separated (e.g. env:prod,team:backend). After finding a monitor, use Search Events to see recent state changes, or Get Metric Data to query the underlying metric it tracks. Returns monitor ID, name, type, query, status, and tags. See the docs
  • Action
  • Read only
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Datadog account once, then configure and run Search Monitors from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "datadog-search-monitors",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    datadog: { authProvisionId: "apn_xxxxxxx" },
    region: "Region",
    query: "Query",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Search Monitors inputs
Property Type Description
region Region string
The regional site for a Datadog customer
Required
query Query string
Filter monitors by name, tag, or other attributes. E.g. tag:env:production or type:metric.
Optional
tags Tags string
Comma-separated list of tags to filter monitors. E.g. env:prod,team:backend.
Optional
page Page integer
Page number to return (0-indexed).
Optional
pageSize Page Size integer
Number of monitors per page. Default 100.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
datadog-search-monitors
Version
1.0.2
App
Datadog
Authentication
API key
Read-only
Yes
Destructive
No
Open world
Yes