Fine0830 commented on PR #918:
URL:
https://github.com/apache/skywalking-banyandb/pull/918#issuecomment-3698165641
> And what are the requests and responses of the implemented FODC proxy APIs?
HTTP REST APIs
1. GET /metrics
Purpose: Retrieve latest aggregated metrics in Prometheus text format
# HELP banyandb_observability_scheduler_tasks_panic
banyandb_observability_scheduler_tasks_panic
# TYPE banyandb_observability_scheduler_tasks_panic gauge
banyandb_observability_scheduler_tasks_panic{agent_id="b08df0c5-dacb-43d2-b806-8421be11ecac",ip="127.0.0.1",job="metrics-collector",node_role="standalone",port="17912"}
0
# HELP banyandb_observability_scheduler_tasks_started
banyandb_observability_scheduler_tasks_started
# TYPE banyandb_observability_scheduler_tasks_started gauge
banyandb_observability_scheduler_tasks_started{agent_id="b08df0c5-dacb-43d2-b806-8421be11ecac",ip="127.0.0.1",job="metrics-collector",node_role="standalone",port="17912"}
11404
# HELP banyandb_system_cpu_num banyandb_system_cpu_num
# TYPE banyandb_system_cpu_num gauge
banyandb_system_cpu_num{agent_id="b08df0c5-dacb-43d2-b806-8421be11ecac",ip="127.0.0.1",node_role="standalone",port="17912"}
11
# HELP banyandb_system_cpu_state banyandb_system_cpu_state
# TYPE banyandb_system_cpu_state gauge
banyandb_system_cpu_state{agent_id="b08df0c5-dacb-43d2-b806-8421be11ecac",ip="127.0.0.1",kind="idle",node_role="standalone",port="17912"}
0.8348352512691251
banyandb_system_cpu_state{agent_id="b08df0c5-dacb-43d2-b806-8421be11ecac",ip="127.0.0.1",kind="steal",node_role="standalone",port="17912"}
0
banyandb_system_cpu_state{agent_id="b08df0c5-dacb-43d2-b806-8421be11ecac",ip="127.0.0.1",kind="irq",node_role="standalone",port="17912"}
0
banyandb_system_cpu_state{agent_id="b08df0c5-dacb-43d2-b806-8421be11ecac",ip="127.0.0.1",kind="nice",node_role="standalone",port="17912"}
0
banyandb_system_cpu_state{agent_id="b08df0c5-dacb-43d2-b806-8421be11ecac",ip="127.0.0.1",kind="softirq",node_role="standalone",port="17912"}
0
banyandb_system_cpu_state{agent_id="b08df0c5-dacb-43d2-b806-8421be11ecac",ip="127.0.0.1",kind="system",node_role="standalone",port="17912"}
0.052569225750287975
banyandb_system_cpu_state{agent_id="b08df0c5-dacb-43d2-b806-8421be11ecac",ip="127.0.0.1",kind="user",node_role="standalone",port="17912"}
0.11259552298058685
banyandb_system_cpu_state{agent_id="b08df0c5-dacb-43d2-b806-8421be11ecac",ip="127.0.0.1",kind="iowait",node_role="standalone",port="17912"}
0
2. GET /metrics-windows
Purpose: Retrieve time-window metrics in JSON format
```json
[
{
"agent_id": "b08df0c5-dacb-43d2-b806-8421be11ecac",
"data": [
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 307520
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 307520
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 307520
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 307520
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 307520
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 307520
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 303840
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 303840
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 303840
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 303840
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 303840
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 303840
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 303840
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 303840
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 303840
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 314080
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 314080
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 314080
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 306720
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 306720
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 306720
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 306720
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 306720
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 306720
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 306720
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 306720
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 306720
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 306720
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 306720
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 306720
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 306560
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 306560
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 306560
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 306560
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 306560
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 306560
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 306560
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 306560
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 306560
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 306560
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 306560
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 306560
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 299680
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 299680
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 299680
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 309920
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 309920
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 309920
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 309920
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 320160
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 320160
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 320160
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 320160
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 320160
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 320160
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 320160
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 320160
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 320160
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 320160
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 320160
}
],
"description": "Number of bytes in use by mspan structures. Equals to
/memory/classes/metadata/mspan/inuse:bytes.",
"ip": "127.0.0.1",
"labels": {
"agent_id": "b08df0c5-dacb-43d2-b806-8421be11ecac",
"node_role": "standalone"
},
"name": "go_memstats_mspan_inuse_bytes",
"port": 17912
},
{
"agent_id": "b08df0c5-dacb-43d2-b806-8421be11ecac",
"data": [
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.834835866406194
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348360777555137
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348360777555137
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348362980395866
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.83483643927102
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.83483643927102
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348364919327073
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348365921990972
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348365921990972
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348366857225484
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.834836816506693
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.834836816506693
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348368792496113
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348370357139724
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348370357139724
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348372188828722
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.834837316427124
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.834837316427124
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348374489704988
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.834837556863421
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.834837556863421
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348376649576387
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348377446366412
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348377446366412
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.834837837362766
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348378565096024
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348378565096024
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348379727242512
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348380533783615
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348380533783615
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348379408014388
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.834837747164008
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.834837747164008
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348375731575138
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.834837348096618
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.834837348096618
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348372382575705
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348370844276439
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348370844276439
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348369023429479
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348367458717304
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348367458717304
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348365889158414
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348362022787406
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348362022787406
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348358555997041
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.834835639551689
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.834835639551689
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.834835425112495
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348352734532484
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348352734532484
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348350903787519
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348348566602708
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348348566602708
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.834834652820063
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348343446247514
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348343446247514
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.8348340528965328
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.834833670805986
},
{
"timestamp": "2025-12-30T02:48:01Z",
"value": 0.834833670805986
}
],
"description": "banyandb_system_cpu_state",
"ip": "127.0.0.1",
"labels": {
"agent_id": "b08df0c5-dacb-43d2-b806-8421be11ecac",
"kind": "idle",
"node_role": "standalone"
},
"name": "banyandb_system_cpu_state",
"port": 17912
}
]
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]