/api/stats

该端点提供了正在运行的 TSD 的统计信息列表。子端点返回有关其他 TSD 组件(例如 JVM,线程状态或存储 Client 端)的详细信息。所有统计信息均为只读。

Verbs

  • GET

  • POST

Requests

无可用参数。

Example Request

Query String

http://localhost:4242/api/stats

Response

响应是一个对象数组。响应中的字段包括:

NameData TypeDescriptionExample
metricString统计记录的 Metrics 名称tsd.connectionmgr.connections
timestampInteger收集并显示统计信息的 Unix 时间戳记(以秒为单位)1369350222
valueInteger统计的数值42
tagsMap键/值标签名称/标签值对的列表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"
      }
  }
]