Metrics by plugin

Agent metrics by plugin.

GEThttps://cloud-api.calyptia.com/v2/agents/{agentID}/metrics_by_plugin
Authorization
Path parameters
agentID*string (uuid)
Query parameters
Response

OK

Body
inputsarray of object
outputsarray of object
filtersarray of object
Request
const response = await fetch('https://cloud-api.calyptia.com/v2/agents/{agentID}/metrics_by_plugin', {
    method: 'GET',
    headers: {
      "Authorization": "Bearer <token>"
    },
});
const data = await response.json();
Response
"{\n    \"inputs\": [\n        {\n            \"instance\": \"storage_backlog.3\",\n            \"metrics\": {\n                \"bytes\": 0,\n                \"records\": 0\n            }\n        }\n    ],\n    \"outputs\": [\n        {\n            \"instance\": \"stdout.0\",\n            \"metrics\": {\n                \"bytes\": 5811996,\n                \"records\": 25697,\n                \"errors\": 0,\n                \"retries\": 0,\n                \"retriedRecords\": 0,\n                \"retriesFailed\": 0,\n                \"droppedRecords\": 0,\n                \"loads\": 0\n            }\n        }\n    ],\n    \"filters\": [\n        {\n            \"instance\": \"filter.3\",\n            \"metrics\": {\n                \"dropRecords\": 0,\n                \"emitRecords\": 0\n            }\n        }\n    ]\n}\n"

Last updated