Monitor and analyze Prometheus metric cardinality to identify potential performance issues
Cardinality: {{ "{:,}".format(alert.cardinality) }} (Type: {{ alert.type }})
Cardinality: {{ "{:,}".format(alert.cardinality) }} (Type: {{ alert.type }})
| Metric Name | Cardinality | Type | Labels ({{ "Count" }}) | Growth Rate | Documentation |
|---|---|---|---|---|---|
|
{{ metric.name }}
|
{{ "{:,}".format(metric.cardinality) }} | {{ metric.type }} |
({{ metric.label_count }})
{% for label in metric.labels[:5] %}
{{ label }}
{% endfor %}
{% if metric.labels|length > 5 %}
+{{ metric.labels|length - 5 }} more
{% endif %}
|
{% if metric.name in report.growth_rate %} {% set growth = report.growth_rate[metric.name] %} {{ growth }}% {% else %} N/A {% endif %} |
{{ metric.documentation[:100] }}{% if metric.documentation|length > 100 %}...{% endif %}
|
| Label Name | Total Cardinality | Max Single Metric | Used in Metrics | Example Metrics |
|---|---|---|---|---|
| {{ label.label }} | {{ "{:,}".format(label.total_cardinality) }} | {{ "{:,}".format(label.max_cardinality) }} | {{ label.metric_count }} |
{% for metric in label.example_metrics %}
{{ metric }}{% if not loop.last %}, {% endif %}
{% endfor %}
|
Growth rates calculated over the last 10 minutes. Positive values indicate increasing cardinality.
| Metric Name | Growth Rate | Current Cardinality |
|---|---|---|
|
{{ metric_name }}
|
{{ growth }}% | {% set current_cardinality = namespace(value="N/A") %} {% for metric in report.top_metrics %} {% if metric.name == metric_name %} {% set current_cardinality.value = "{:,}".format(metric.cardinality) %} {% endif %} {% endfor %} {{ current_cardinality.value }} |