send_metric
Transmit OpenTelemetry metrics to OTLP endpoints for monitoring and observability. Define metric instruments with name, kind, unit, and data points to track system performance.
Instructions
Send one or more metric instruments.
Each metric dict accepts: name, kind (counter/up_down_counter/gauge/
histogram), unit, description, points (list of
{value, attributes}). For histograms, value may be a list of samples.
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": {
"service_name": "<service_name>",
"metrics": "<metrics>"
},
"name": "send_metric"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service_name | Yes | ||
| metrics | Yes | ||
| resource_attributes | No | ||
| endpoints | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||