W3cubDocs

/OpenTSDB

/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

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

[
  {
    "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"
    }
  }
]

© 2010–2016 The OpenTSDB Authors
Licensed under the GNU LGPLv2.1+ and GPLv3+ licenses.
http://opentsdb.net/docs/build/html/api_http/stats/index.html