Datadog observability
v0.1.0Investigate monitored infrastructure across metrics, logs, APM spans, events, monitors, hosts, dashboards, SLOs, incidents and synthetic tests. Manage scoped monitor, downtime and dashboard changes.
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.
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_KEYCreate 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_KEYCreate 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_TOKENAlternative 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_SITEdefault datadoghq.comDatadog site domain, such as
datadoghq.euorus5.datadoghq.com. The pack permits only documented Datadog regional API hosts. -
SSL_CERT_FILEOptional 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_readandsynthetics_read. Datadog product entitlements and data access policies still apply. -
Log index discovery requires
logs_read_config. Catalog services useapm_service_catalog_read. The downtime API requiresmonitors_downtimeeven 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.
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.
Link to this action View source on GitHubArguments Name Type Required dashboard_id string Yes title string Yes metric_query string Yes See the action source for defaults, validation, and limits.
-
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.
Link to this action View source on GitHubArguments Name Type Required title string Yes metric_query string Yes See the action source for defaults, validation, and limits.
-
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.
Link to this action View source on GitHubArguments Name Type Required dashboard_id string Yes See the action source for defaults, validation, and limits.
-
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.
Link to this action View source on GitHubArguments Name Type Required dashboard_id string Yes offset integer No limit integer No See the action source for defaults, validation, and limits.
-
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.
Link to this action View source on GitHubArguments Name Type Required list_id string Yes dashboard_id string Yes dashboard_type string Yes See the action source for defaults, validation, and limits.
-
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.
Link to this action View source on GitHubArguments Name Type Required list_id string Yes offset integer No limit integer No See the action source for defaults, validation, and limits.
-
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.
Link to this action View source on GitHubArguments Name Type Required list_id string Yes dashboard_id string Yes dashboard_type string Yes See the action source for defaults, validation, and limits.
-
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.
Link to this action View source on GitHubArguments Name Type Required offset integer No limit integer No See the action source for defaults, validation, and limits.
-
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.
Link to this action View source on GitHubArguments Name Type Required offset integer No limit integer No See the action source for defaults, validation, and limits.
-
datadog.downtime_cancel script high High: can disrupt service
Cancel a downtime
Cancel a downtime by ID and resume alerting for its matching monitors.
Link to this action View source on GitHubArguments Name Type Required downtime_id string Yes See the action source for defaults, validation, and limits.
-
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.
Link to this action View source on GitHubArguments Name Type Required monitor_id string Yes scope string No minutes integer No See the action source for defaults, validation, and limits.
-
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.
Link to this action View source on GitHubArguments Name Type Required downtime_id string Yes See the action source for defaults, validation, and limits.
-
datadog.downtimes_list script low Low: read-only or trivially reversible
List downtimes
List downtime definitions with monitor selectors, scope, schedule boundaries and status.
Link to this action View source on GitHubArguments Name Type Required offset integer No limit integer No See the action source for defaults, validation, and limits.
-
datadog.events_search script medium Medium: changes state, easily reversible
Search events
Search Datadog events by source, tags and time. Titles and messages can contain operator or application text.
Link to this action View source on GitHubArguments Name Type Required query string No from_time string No to_time string No order string No page_cursor string No limit integer No See the action source for defaults, validation, and limits.
-
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.
Link to this action View source on GitHubArguments Name Type Required query string No sort string No offset integer No limit integer No See the action source for defaults, validation, and limits.
-
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.
Link to this action View source on GitHubArguments Name Type Required incident_id string Yes See the action source for defaults, validation, and limits.
-
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.
Link to this action View source on GitHubArguments Name Type Required offset integer No limit integer No See the action source for defaults, validation, and limits.
-
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.
Link to this action View source on GitHubArguments Name Type Required offset integer No limit integer No See the action source for defaults, validation, and limits.
-
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.
Link to this action View source on GitHubArguments 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.
-
datadog.logs_search script medium Medium: changes state, easily reversible
Search logs
Search indexed logs by time, service and attributes. Returns log messages that can contain request or user data, with selected error kind, message and stack, trace and span IDs, HTTP status, version, and tags.
Link to this action View source on GitHubArguments Name Type Required query string No from_time string No to_time string No order string No page_cursor string No limit integer No indexes string_array No See the action source for defaults, validation, and limits.
-
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.
Link to this action View source on GitHubArguments Name Type Required metric string Yes See the action source for defaults, validation, and limits.
-
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.
Link to this action View source on GitHubArguments 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.
-
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.
Link to this action View source on GitHubArguments 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.
-
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.
Link to this action View source on GitHubArguments 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.
-
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.
Link to this action View source on GitHubArguments 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.
-
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.
Link to this action View source on GitHubArguments Name Type Required query string No page_cursor string No limit integer No See the action source for defaults, validation, and limits.
-
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.
Link to this action View source on GitHubArguments Name Type Required monitor_id string Yes See the action source for defaults, validation, and limits.
-
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.
Link to this action View source on GitHubArguments Name Type Required monitor_id string Yes See the action source for defaults, validation, and limits.
-
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.
Link to this action View source on GitHubArguments Name Type Required query string No page integer No limit integer No See the action source for defaults, validation, and limits.
-
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.
Link to this action View source on GitHubArguments Name Type Required monitor_id string Yes name string Yes See the action source for defaults, validation, and limits.
-
datadog.monitors_search script low Low: read-only or trivially reversible
Search monitors
List monitors matching Datadog search syntax with status, last trigger, tags and IDs. Continue with next_page.
Link to this action View source on GitHubArguments Name Type Required query string No page integer No limit integer No See the action source for defaults, validation, and limits.
-
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.
Link to this action View source on GitHubArguments Name Type Required query string No offset integer No limit integer No See the action source for defaults, validation, and limits.
-
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.
Link to this action View source on GitHubArguments Name Type Required slo_id string Yes See the action source for defaults, validation, and limits.
-
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.
Link to this action View source on GitHubArguments 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.
-
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.
Link to this action View source on GitHubArguments Name Type Required query string No offset integer No limit integer No See the action source for defaults, validation, and limits.
-
datadog.spans_search script medium Medium: changes state, easily reversible
Search APM spans
Search indexed spans for services, traces and errors. Resource names and tags may identify requests or users. Returns trace and span IDs with timing for correlation.
Link to this action View source on GitHubArguments Name Type Required query string No from_time string No to_time string No order string No page_cursor string No limit integer No See the action source for defaults, validation, and limits.
-
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.
Link to this action View source on GitHubArguments 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.
-
datadog.synthetics_search script low Low: read-only or trivially reversible
Find synthetic tests
List synthetic tests by search text with ID, type, status, monitor and locations. Test request configurations and credentials are excluded.
Link to this action View source on GitHubArguments Name Type Required query string No offset integer No limit integer No See the action source for defaults, validation, and limits.