Skip to main content

Datadog observability

v0.1.0

Investigate monitored infrastructure across metrics, logs, APM spans, events, monitors, hosts, dashboards, SLOs, incidents and synthetic tests. Manage scoped monitor, downtime and dashboard changes.

31 allowed by default 7 need approval by default
Pack ID
datadog
Vendor
emisar
OS
linux
Actions
38
Required binaries. Install these binaries on the runner host before using the pack.
bash python3

Install

New to emisar? Follow the quickstart to connect your host and AI agent, then install this pack below. Agents can use its actions through the CLI or MCP.

emisar pack install downloads and checks the pack, then compares its content hash with the --hash below before copying it into the runner's packs directory. The hash identifies the exact pack shown on this page. If the download was changed, the command rejects it. It also reloads a running runner, so you do not need to restart it yourself.

on the runner host
sudo emisar pack install datadog --hash sha256:287ae4de64de79ab96782ec563f6d0cd755e3af5eed6797a2a1a3cd693265d97

Setup

Uses the Datadog API over verified HTTPS to the selected regional site. Configure either DD_API_KEY with DD_APP_KEY or a standalone DD_ACCESS_TOKEN . Allowlist the configured environment variables in the runner’s execution.inherit_env .

Environment

Set these on the runner host, then add each name to execution.inherit_env so the value reaches the action.

  • DD_API_KEY

    Create a dedicated organization API key under Organization Settings → API Keys. Use a key from the same organization and site as the application key.

  • DD_APP_KEY

    Create a scoped application key for the service account under Organization Settings → Service Accounts → Application Keys. Assign only the permissions needed by the enabled actions.

  • DD_ACCESS_TOKEN

    Alternative to both keys. Supply a scoped OAuth bearer token acquired through your Datadog OAuth application or an authorized Pup browser login. The runner consumes an existing token; refresh or rotate it externally before expiry.

  • DD_SITE default datadoghq.com

    Datadog site domain, such as datadoghq.eu or us5.datadoghq.com . The pack permits only documented Datadog regional API hosts.

  • SSL_CERT_FILE

    Optional operator-managed PEM CA bundle for verified TLS. The system trust store is used by default.

Notes

  • Grant read permissions by family, including monitors_read , dashboards_read , metrics_read , timeseries_query , logs_read_data , apm_read , events_read , hosts_read , slos_read , incident_read and synthetics_read . Datadog product entitlements and data access policies still apply.
  • Log index discovery requires logs_read_config . Catalog services use apm_service_catalog_read . The downtime API requires monitors_downtime even to list schedules.
  • Grant monitor, downtime or dashboard write permissions only to runners intended to perform the corresponding changes. The API client sends each operation once. After a write times out, check the resource before repeating it.
  • The pack projects selected fields. It never returns entire dashboard or synthetic configurations, raw request headers, or arbitrary span/custom incident attributes.

Verify it works

Runs datadog.monitors_search, a low-risk read that confirms the pack can reach its target. Run it on the host once the pack is installed; pack install runs it for you.

on the runner host
sudo emisar pack verify datadog

Install and configure a pack walks through the whole sequence on a host.

Actions 38 total

View on GitHub
  • datadog.dashboard_copy_with_metric script high High: can disrupt service

    Copy a dashboard and add a metric widget

    Copy an ordered, auto-layout dashboard under a new title and append one metric timeseries. The new dashboard has its own permissions. Tabbed and fixed layouts require layout-specific placement.

    Arguments
    Name Type Required
    dashboard_id string Yes
    title string Yes
    metric_query string Yes

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • datadog.dashboard_create script medium Medium: changes state, easily reversible

    Create a metric dashboard

    Create an ordered dashboard with one timeseries widget using a Datadog metric query.

    Arguments
    Name Type Required
    title string Yes
    metric_query string Yes

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • datadog.dashboard_delete script high High: can disrupt service

    Delete a dashboard

    Delete one dashboard by exact ID. Users lose access to the dashboard and its widgets.

    Arguments
    Name Type Required
    dashboard_id string Yes

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • datadog.dashboard_get script medium Medium: changes state, easily reversible

    Inspect a dashboard

    Show a dashboard and a page of widget titles, types and metric queries. User-authored titles, descriptions and queries may contain internal service data.

    Arguments
    Name Type Required
    dashboard_id string Yes
    offset integer No
    limit integer No

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • datadog.dashboard_list_add script medium Medium: changes state, easily reversible

    Add a dashboard to a list

    Add a single dashboard to a manual list using the membership endpoint. Existing members are preserved.

    Arguments
    Name Type Required
    list_id string Yes
    dashboard_id string Yes
    dashboard_type string Yes

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • datadog.dashboard_list_items script low Low: read-only or trivially reversible

    Inspect a dashboard list

    List a page of dashboards in one manual list, including their types for membership changes.

    Arguments
    Name Type Required
    list_id string Yes
    offset integer No
    limit integer No

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • datadog.dashboard_list_remove script medium Medium: changes state, easily reversible

    Remove a dashboard from a list

    Remove a single dashboard from a manual list. The dashboard and all other members are preserved.

    Arguments
    Name Type Required
    list_id string Yes
    dashboard_id string Yes
    dashboard_type string Yes

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • datadog.dashboard_lists script low Low: read-only or trivially reversible

    List dashboard lists

    List manually curated dashboard lists by local offset with names, IDs and dashboard counts.

    Arguments
    Name Type Required
    offset integer No
    limit integer No

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • datadog.dashboards_list script low Low: read-only or trivially reversible

    List dashboards

    List dashboards by offset with their IDs, titles, layout and last change time.

    Arguments
    Name Type Required
    offset integer No
    limit integer No

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • datadog.downtime_cancel script high High: can disrupt service

    Cancel a downtime

    Cancel a downtime by ID and resume alerting for its matching monitors.

    Arguments
    Name Type Required
    downtime_id string Yes

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • datadog.downtime_create script high High: can disrupt service

    Schedule monitor downtime

    Suppress notifications on one monitor for a bounded interval starting now. Scope can narrow the affected monitor groups.

    Arguments
    Name Type Required
    monitor_id string Yes
    scope string No
    minutes integer No

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • datadog.downtime_get script low Low: read-only or trivially reversible

    Inspect a downtime

    Show one downtime by ID with affected monitor, scope, schedule, recurrence summary and status.

    Arguments
    Name Type Required
    downtime_id string Yes

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • datadog.downtimes_list script low Low: read-only or trivially reversible

    List downtimes

    List downtime definitions with monitor selectors, scope, schedule boundaries and status.

    Arguments
    Name Type Required
    offset integer No
    limit integer No

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • datadog.hosts_list script low Low: read-only or trivially reversible

    Find hosts

    List infrastructure hosts matching a Datadog filter with status, CPU, I/O wait and load.

    Arguments
    Name Type Required
    query string No
    sort string No
    offset integer No
    limit integer No

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • datadog.incident_get script medium Medium: changes state, easily reversible

    Inspect an incident

    Show an incident’s title, lifecycle, impact scope and response timings. Operator-authored fields can identify customers.

    Arguments
    Name Type Required
    incident_id string Yes

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • datadog.incidents_list script medium Medium: changes state, easily reversible

    List incidents

    List incidents by offset with titles, lifecycle state, severity and impact timing. Incident titles can contain customer information.

    Arguments
    Name Type Required
    offset integer No
    limit integer No

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • datadog.log_indexes script low Low: read-only or trivially reversible

    List log indexes

    List configured log index names, retention days and daily quotas. Datadog requires logs_read_config permission.

    Arguments
    Name Type Required
    offset integer No
    limit integer No

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • datadog.logs_count_by_facet script medium Medium: changes state, easily reversible

    Count logs by facet

    Count matching indexed logs grouped by a facet such as service or @http.status_code. Facet values can contain application data.

    Arguments
    Name Type Required
    query string No
    from_time string No
    to_time string No
    facet string No
    limit integer No
    indexes string_array No

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • datadog.metric_metadata script medium Medium: changes state, easily reversible

    Inspect metric metadata

    Show the unit, integration, type, interval and operator-authored description for a metric.

    Arguments
    Name Type Required
    metric string Yes

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • datadog.metric_monitor_create script high High: can disrupt service

    Create a metric monitor

    Create one named metric alert with a critical threshold. The optional message supports Datadog notification handles.

    Arguments
    Name Type Required
    name string Yes
    monitor_expression string Yes
    comparison string Yes
    critical number Yes
    message string No

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • datadog.metric_monitor_update script high High: can disrupt service

    Update a metric alert threshold

    Update an existing metric alert query and its critical threshold together. Existing message, warning and recovery thresholds and unrelated options are retained; Datadog rejects incompatible thresholds.

    Arguments
    Name Type Required
    monitor_id string Yes
    monitor_expression string Yes
    comparison string Yes
    critical number Yes

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • datadog.metric_monitor_validate script low Low: read-only or trivially reversible

    Validate a metric monitor

    Check a proposed metric alert query, threshold and notification configuration against the Datadog validator.

    Arguments
    Name Type Required
    name string Yes
    monitor_expression string Yes
    comparison string Yes
    critical number Yes
    message string No

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • datadog.metric_query script low Low: read-only or trivially reversible

    Query metric timeseries

    Query metric timeseries over a Unix-time interval. Return a page of series with point counts, extrema, mean, latest value and up to 32 evenly spaced samples per series. Grouped queries can return multiple series.

    Arguments
    Name Type Required
    metric_query string Yes
    from_ts integer Yes
    to_ts integer Yes
    offset integer No
    limit integer No

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • datadog.metrics_list script low Low: read-only or trivially reversible

    Find metric names

    List metric names available to query, optionally filtered by a Datadog metric ID expression. Continue using the provider cursor.

    Arguments
    Name Type Required
    query string No
    page_cursor string No
    limit integer No

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • datadog.monitor_delete script high High: can disrupt service

    Delete a monitor

    Delete one monitor by ID using Datadog dependency checks. Monitoring and notifications from this monitor stop.

    Arguments
    Name Type Required
    monitor_id string Yes

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • datadog.monitor_get script medium Medium: changes state, easily reversible

    Inspect a monitor

    Show a monitor configuration with its operator-written query and notification message, state, thresholds, tags and notification settings.

    Arguments
    Name Type Required
    monitor_id string Yes

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • datadog.monitor_groups script low Low: read-only or trivially reversible

    Search monitor groups

    List individual monitor groups matching a Datadog search, including host or service group, status and last trigger time.

    Arguments
    Name Type Required
    query string No
    page integer No
    limit integer No

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • datadog.monitor_rename script medium Medium: changes state, easily reversible

    Rename a monitor

    Rename one monitor by exact ID while preserving its query, thresholds and notifications.

    Arguments
    Name Type Required
    monitor_id string Yes
    name string Yes

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • datadog.services_list script low Low: read-only or trivially reversible

    Find catalog services

    List Software Catalog service entities by name, including their IDs and service ownership metadata.

    Arguments
    Name Type Required
    query string No
    offset integer No
    limit integer No

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • datadog.slo_get script medium Medium: changes state, easily reversible

    Inspect a service level objective

    Show one SLO, including user-authored description, targets, associated monitors and metric numerator and denominator when configured.

    Arguments
    Name Type Required
    slo_id string Yes

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • datadog.slo_history script low Low: read-only or trivially reversible

    Check SLO health

    Show observed service level, remaining error budget and a page of group measurements over a Unix-time interval.

    Arguments
    Name Type Required
    slo_id string Yes
    from_ts integer Yes
    to_ts integer Yes
    offset integer No
    limit integer No

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • datadog.slos_list script low Low: read-only or trivially reversible

    Find service level objectives

    List service level objectives by search expression with IDs, names, types and target thresholds.

    Arguments
    Name Type Required
    query string No
    offset integer No
    limit integer No

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • datadog.synthetics_results script low Low: read-only or trivially reversible

    Inspect synthetic test runs

    Show a page of recent API or browser synthetic test results with pass state, time and location. Test response content, headers and variables are excluded.

    Arguments
    Name Type Required
    test_id string Yes
    test_type string Yes
    from_ts integer Yes
    to_ts integer Yes
    offset integer No
    limit integer No

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub