Prometheus: Get TSDB Status
prometheus_get_tsdb_statusAnalyze Prometheus TSDB head block cardinality to identify top metrics, labels, and label pairs by memory; diagnose slow or memory-hungry instances and avoid high-cardinality grouping.
Instructions
Cardinality: how many series the head block holds, and which metrics, labels and label pairs account for most of them and of the memory. Use it to explain a slow or memory-hungry Prometheus, or before grouping by a label that might have thousands of values. Covers the head block only (the last ~2-3 hours), not the full retention.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Entries in each top-N list (1-100). Defaults to 10. |