iTranslated by AI
The Potential of the Datadog MCP Server
Introduction
Hello! I am @tatsuo48, an SRE at Money Forward.
In this article, I would like to introduce the Datadog MCP Server, which I have been using very effectively recently.
What is the Datadog MCP Server?
The Datadog MCP Server is an official MCP Server provided by Datadog.
*Note: It is currently in the preview stage, so you need to apply individually to use it.
I won't explain MCP Servers here, but in short, by configuring it in tools like Claude Code, the LLM can easily access Datadog, allowing it to provide answers while incorporating data from within Datadog into the context.
How to Use
Although it depends on being approved for the preview, you can easily configure it as follows.
Since it is in a Remote MCP Server format, you don't need to set up Docker containers locally to use it. Authentication supports "OAuth 2.0" as well as methods using API/APP keys.
{
"mcpServers": {
"datadog": {
"type": "http",
"url": "https://mcp.datadoghq.com/api/unstable/mcp-server/mcp",
"headers": {
"DD_API_KEY": "<YOUR_API_KEY>",
"DD_APPLICATION_KEY": "<YOUR_APPLICATION_KEY>"
}
}
}
}
Impressions of Trying It Out
Here, I will actually connect to Claude Code and try using it.
{
"mcpServers": {
"datadog": {
"type": "http",
"url": "https://mcp.datadoghq.com/api/unstable/mcp-server/mcp",
}
}
}
Launch Claude Code, run /mcp, and perform authentication for the Datadog MCP Server.
That's it!
Now, let's ask a question.
What tools can be used with the datadog mcp server?
⏺ The main tools available on the Datadog MCP server are as follows:
Logs and Events
- analyze_datadog_logs - Log analysis using SQL queries or pattern detection (recommended for aggregation/counting)
- search_datadog_logs - Search and retrieve raw log entries
- search_datadog_events - Search Datadog events
- search_datadog_rum_events - Search RUM (Real User Monitoring) events
Metrics and Performance
- get_datadog_metric - Retrieve time-series data for metrics
- search_datadog_metrics - Retrieve a list of available metrics
APM (Tracing)
- get_datadog_trace - Retrieve full traces by trace ID
- search_datadog_spans - Search and analyze APM spans
Incidents and Monitoring
- search_datadog_incidents - Retrieve a list of incidents
- get_datadog_incident - Retrieve details of a specific incident
- search_datadog_monitors - Search for monitors
Infrastructure and Services
- search_datadog_hosts - Retrieve a list of monitored hosts
- search_datadog_services - Retrieve a list of services and their information
Other
- search_datadog_dashboards - Search and retrieve information on dashboards
- search_datadog_docs - Search official Datadog documentation
If you would like to know the detailed usage of each tool, please let me know the specific tool name.
Hm, looks good. So here, using search_datadog_docs, I will ask about the billing structure for Custom Metrics, which we need to be careful about as is familiar from this article.
Using search_datadog_docs, please tell me about the billing structure for Custom Metrics.
⏺ The billing structure for Datadog Custom Metrics is as follows:
Basic Billing Method
Billed based on the number of unique metrics per average monthly hour
- Counted as one custom metric for each combination of metric name and tag values
- Calculated based on the average number of unique custom metrics per hour over a month
- Data point submission frequency or query execution frequency does not affect billing
Free Quota by Plan
- Pro Plan: 100 custom metrics per host
- Enterprise Plan: 200 custom metrics per host
Free quotas for all hosts are aggregated (e.g., Pro 3 hosts = 300 metrics free quota)
Counting Example
If you send the metric request.Latency with 4 tag combinations:
- hostA + environment:prod + service:api = 1 metric
- hostA + environment:prod + service:web = 1 metric
- hostB + environment:prod + service:api = 1 metric
- hostB + environment:prod + service:web = 1 metric
Total: 4 custom metrics
Important Points
When using Metrics without Limits™
- Ingested custom metrics (total number sent with all tags)
- Indexed custom metrics (subset made queryable)
Both are subject to billing
Histogram/Distribution metrics
- Counted as 5x by default (for aggregated values such as avg, max, count, etc.)
- Further increase with percentile additions
Reference Links
- https://docs.datadoghq.com/account_management/billing/custom_metrics/
- https://docs.datadoghq.com/metrics/metrics-without-limits/
This is great!!
Summary
What did you think?
If you are interested, please apply for the preview!
Speaking of Datadog's AI features, BitAI SRE is currently the center of attention. However, personally, the price is a bottleneck for adoption. Also, I have the impression that there are not many integrations with tools other than Datadog at the moment.
Therefore, I am exploring the possibility of building a low-cost version of BitAI SRE (plus handling overall incident response) using this MCP Server.
I plan to write about that in the 10th-day article of the Datadog Advent Calendar 2025. Stay tuned!
Discussion