create-apm-retention-filter
Create an APM retention filter to control span data retention. Set a span search query, sample rate, and enable or disable the filter.
Instructions
Create an APM retention filter with query, sample rate, and enable/disable
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": {
"name": "<name>",
"filterQuery": "<filterQuery>",
"rate": "<rate>"
},
"name": "create-apm-retention-filter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the retention filter | |
| filterQuery | Yes | Span search query. Example: service:web-app AND @duration:>1s | |
| rate | Yes | Sample rate (0.0 to 1.0). Example: 1.0 for 100%, 0.5 for 50% | |
| enabled | No | Whether the filter is enabled (default true) |