Contains an overview of the aggregated metrics for an agent. It includes metrics link the amount of records, bytes, and errors per plugin.
/v1/agents/{agentID}/metrics
OK
curl -L \ --url 'https://cloud-api.calyptia.com/v1/agents/{agentID}/metrics' \ --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{ "measurements": { "ANY_ADDITIONAL_PROPERTY": { "plugins": { "ANY_ADDITIONAL_PROPERTY": { "metrics": { "ANY_ADDITIONAL_PROPERTY": [ { "time": "2025-02-09T20:30:11.378Z", "value": null } ] } } }, "totals": { "ANY_ADDITIONAL_PROPERTY": [ { "time": "2025-02-09T20:30:11.378Z", "value": null } ] } } } }
/v2/agents/{agentID}/metrics
Option to filter metrics since the given time ago
curl -L \ --url 'https://cloud-api.calyptia.com/v2/agents/{agentID}/metrics' \ --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{ "input": { "bytes": 0, "records": 0 } }, "outputs": { "bytes": 0, "records": 0, "errors": 0, "retries": 0, "retriedRecords": 0, "retriesFailed": 0, "droppedRecords": 0, "loads": 0 } }, "filters": { "dropRecords": 0, "emitRecords": 0 } } }