/v1/aggregator_metrics/{aggregatorID}
Option to filter metrics since the given time ago
Option to set the time window to group metrics
curl -L \
--url 'https://cloud-api.calyptia.com/v1/aggregator_metrics/{aggregatorID}' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"measurements": {
"fluentbit_filter": {
"metrics": {
"drop_records": [
{
"time": "2022-02-07T11:00:00Z",
"value": 0
},
{
"time": "2022-02-07T12:00:00Z",
"value": 0
},
{
"time": "2022-02-07T12:55:20.003028413Z",
"value": 119
}
],
"emit_records": [
{
"time": "2022-02-07T11:00:00Z",
"value": 0
},
{
"time": "2022-02-07T12:00:00Z",
"value": 0
},
{
"time": "2022-02-07T12:55:20.003028413Z",
"value": 119
}
]
},
"totals": {
"drop_records": [
{
"time": "2022-02-07T12:55:04.78743322Z",
"value": 119
}
],
"emit_records": [
{
"time": "2022-02-07T12:55:04.787434277Z",
"value": 119
}
]
}
},
"fluentbit_input": {
"metrics": {
"bytes": [
{
"time": "2022-02-07T11:00:00Z",
"value": 0
},
{
"time": "2022-02-07T12:00:00Z",
"value": 0
},
{
"time": "2022-02-07T12:55:20.029124832Z",
"value": 4760
}
],
"records": [
{
"time": "2022-02-07T11:00:00Z",
"value": 0
},
{
"time": "2022-02-07T12:00:00Z",
"value": 0
},
{
"time": "2022-02-07T12:55:20.029124832Z",
"value": 119
}
]
},
"totals": {
"bytes": [
{
"time": "2022-02-07T12:55:04.787450155Z",
"value": 4760
}
],
"records": [
{
"time": "2022-02-07T12:55:04.787450155Z",
"value": 119
}
]
}
},
"fluentbit_output": {
"metrics": {
"bytes": [
{
"time": "2022-02-07T11:00:00Z",
"value": 0
},
{
"time": "2022-02-07T12:00:00Z",
"value": 0
},
{
"time": "2022-02-07T12:55:20.059227599Z",
"value": 4560
}
],
"records": [
{
"time": "2022-02-07T11:00:00Z",
"value": 0
},
{
"time": "2022-02-07T12:00:00Z",
"value": 0
},
{
"time": "2022-02-07T12:55:20.059227599Z",
"value": 114
}
]
},
"totals": {
"bytes": [
{
"time": "2022-02-07T12:55:00.785234434Z",
"value": 4560
}
],
"records": [
{
"time": "2022-02-07T12:55:00.785234434Z",
"value": 114
}
]
}
}
}
}
OK