Get Connector Metrics
get-connector-metricsRetrieve stored metric observations for a connector across a configurable recent time window to inspect counters, gauges, and histograms; empty results mean no observations, not zero activity.
Instructions
Purpose: Read stored metric observations for one connector over the last window_seconds (default 300, maximum 3600).
Returns: A raw JSON array from /v1/metrics, filtered by connector ID. Rows retain metric names, timestamps, destination, revision, and collector identities. Metric availability depends on the connector and runtime. An empty array means no observations in this window, not zero activity.
Interpretation: Counters are cumulative; compare observations for the same series and revision, accounting for resets. Histograms and gauges are not counters. No runtime status or synthesized zero values are added.
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": {
"connectorId": "<connectorId>"
},
"name": "get-connector-metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cluster | No | RawTree cluster to use for this operation. | |
| connectorId | Yes | Connector ID returned by list-connectors or create-connector. | |
| organization | No | RawTree organization containing the target cluster. | |
| window_seconds | No |