/api/stats
该端点提供了正在运行的 TSD 的统计信息列表。子端点返回有关其他 TSD 组件(例如 JVM,线程状态或存储 Client 端)的详细信息。所有统计信息均为只读。
Verbs
-
GET
-
POST
Requests
无可用参数。
Example Request
Query String
http://localhost:4242/api/stats
Response
响应是一个对象数组。响应中的字段包括:
Name | Data Type | Description | Example |
---|---|---|---|
metric | String | 统计记录的 Metrics 名称 | tsd.connectionmgr.connections |
timestamp | Integer | 收集并显示统计信息的 Unix 时间戳记(以秒为单位) | 1369350222 |
value | Integer | 统计的数值 | 42 |
tags | Map | 键/值标签名称/标签值对的列表 | See Below |
Example Response
[
{
"metric": "tsd.connectionmgr.connections",
"timestamp": 1369350222,
"value": "1",
"tags": {
"host": "wtdb-1-4"
}
},
{
"metric": "tsd.connectionmgr.exceptions",
"timestamp": 1369350222,
"value": "0",
"tags": {
"host": "wtdb-1-4"
}
},
{
"metric": "tsd.rpc.received",
"timestamp": 1369350222,
"value": "0",
"tags": {
"host": "wtdb-1-4",
"type": "telnet"
}
}
]