Skip to content

HTTP REST Api endpoint internal_stats

hwassman edited this page May 30, 2026 · 1 revision
  • /internal_stats

    • Supported for both: OpenTSDB API and Prometheus API

    • Returns summary statistics about the metrics collection system itself, including:

      • Total number of requests processed
      • Number of metrics currently in memory cache
      • Memory size used by metrics cache
      • Number of bundle IDs registered (for OpenTSDB and Prometheus)
      • Memory size used by bundle registries
    • Prerequisites: To enable this endpoint, set http_metrics_enabled = True in the configuration file.

OpenTSDB API

Example output:
```console
# curl http://http://10.88.3.241:4242/internal_stats -u scale_admin:TXlWZXJ5U3Ryb25nUGFzc3cwcmQhCg== | jq .
{
  "total_requests": 11280,
  "metrics_in_memory_count": 1000,
  "metrics_in_memory_size": 56680,
  "opentsdb_bundle_ids_count": 1,
  "prometheus_bundle_ids_count": 5,
  "bundle_ids_count_total": 6,
  "opentsdb_bundle_registry_memory_size": 585,
  "prometheus_bundle_registry_memory_size": 1677,
  "bundle_registry_memory_size_total": 2262
}
```

Prometheus API

Example output:
```console
# curl http://10.88.3.241:9250/internal_stats -u scale_admin:TXlWZXJ5U3Ryb25nUGFzc3cwcmQhCg== | jq .
{
  "total_requests": 11432,
  "metrics_in_memory_count": 1000,
  "metrics_in_memory_size": 57208,
  "opentsdb_bundle_ids_count": 1,
  "prometheus_bundle_ids_count": 5,
  "bundle_ids_count_total": 6,
  "opentsdb_bundle_registry_memory_size": 585,
  "prometheus_bundle_registry_memory_size": 1677,
  "bundle_registry_memory_size_total": 2262
}
```

User Guide

Installation

Configuration

Maintenance

Troubleshooting

Use cases

Designing dashboards

Developer Guide

Clone this wiki locally