/api/stats

This endpoint provides a list of statistics for the running TSD. Sub endpoints return details about other TSD components such as the JVM, thread states or storage client. All statistics are read only.

Verbs

  • GET

  • POST

Requests

No parameters available.

Example Request

Query String

  1. http://localhost:4242/api/stats

Response

The response is an array of objects. Fields in the response include:

Name

Data Type

Description

Example

metric

String

Name of the metric the statistic is recording

tsd.connectionmgr.connections

timestamp

Integer

Unix epoch timestamp, in seconds, when the statistic was collected and displayed

1369350222

value

Integer

The numeric value for the statistic

42

tags

Map

A list of key/value tag name/tag value pairs

See Below

Example Response

  1. [
  2. {
  3. "metric": "tsd.connectionmgr.connections",
  4. "timestamp": 1369350222,
  5. "value": "1",
  6. "tags": {
  7. "host": "wtdb-1-4"
  8. }
  9. },
  10. {
  11. "metric": "tsd.connectionmgr.exceptions",
  12. "timestamp": 1369350222,
  13. "value": "0",
  14. "tags": {
  15. "host": "wtdb-1-4"
  16. }
  17. },
  18. {
  19. "metric": "tsd.rpc.received",
  20. "timestamp": 1369350222,
  21. "value": "0",
  22. "tags": {
  23. "host": "wtdb-1-4",
  24. "type": "telnet"
  25. }
  26. }
  27. ]