GetLogsMetric
Retrieve specific log-based metrics from your organization using the metric_id. Designed for integration with Datadog MCP Server to enhance observability through structured data access.
Instructions
Get a specific log-based metric from your organization.
Path Parameters:
metric_id (Required): The name of the log-based metric.
Responses:
200 (Success): OK
Content-Type:
application/jsonResponse Properties:
Example:
{
"data": "unknown_type"
}403: Not Authorized
Content-Type:
application/jsonResponse Properties:
errors: A list of errors.
Example:
{
"errors": [
"Bad Request"
]
}404: Not Found
Content-Type:
application/jsonResponse Properties:
errors: A list of errors.
Example:
{
"errors": [
"Bad Request"
]
}429: Too many requests
Content-Type:
application/jsonResponse Properties:
errors: A list of errors.
Example:
{
"errors": [
"Bad Request"
]
}Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"metric_id": "<metric_id>"
},
"name": "GetLogsMetric"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metric_id | Yes | The name of the log-based metric. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No |