← Back to Home

Cardinality Monitor

Monitor and analyze Prometheus metric cardinality to identify potential performance issues

Last updated: {{ report.summary.analysis_timestamp }}
{% if report.first_run_pending %}

⏳ Waiting for Initial Data Collection

The collectors are completing their first run. Cardinality analysis will be available shortly.

This page will automatically refresh when data is ready.

{% else %}
{% if report.summary.health_status == 'healthy' %}✓{% elif report.summary.health_status == 'warning' %}⚠{% else %}✕{% endif %}

{% if report.summary.health_status == 'healthy' %} Cardinality levels are healthy {% elif report.summary.health_status == 'warning' %} High cardinality detected {% else %} Critical cardinality levels detected {% endif %}

{% if report.summary.health_status == 'healthy' %} All metrics are within acceptable cardinality thresholds. {% elif report.summary.health_status == 'warning' %} Some metrics exceed warning thresholds. Monitor for performance impact. {% else %} Critical cardinality levels detected. Performance degradation is likely. {% endif %}

Total Time Series

{{ "{:,}".format(report.summary.total_series) }}

Total Metrics

{{ report.summary.total_metrics }}

Warning Level

{{ report.summary.warnings }}

Critical Level

{{ report.summary.critical }}

Warning Threshold

{{ "{:,}".format(report.summary.warning_threshold) }}

Critical Threshold

{{ "{:,}".format(report.summary.critical_threshold) }}
{% if recommendations.recommendations %}

💡 Threshold Recommendations

{% for rec in recommendations.recommendations %}
{{ rec.type.title() }} Threshold: {{ rec.message }}
{% endfor %}
{% endif %} {% if report.warnings or report.critical %}

🚨 Active Alerts

{% if report.critical %}

Critical Issues

{% for alert in report.critical %}

{{ alert.metric }}

Cardinality: {{ "{:,}".format(alert.cardinality) }} (Type: {{ alert.type }})

{% endfor %} {% endif %} {% if report.warnings %}

Warnings

{% for alert in report.warnings %}

{{ alert.metric }}

Cardinality: {{ "{:,}".format(alert.cardinality) }} (Type: {{ alert.type }})

{% endfor %} {% endif %}
{% endif %}

📈 Top Metrics by Cardinality

{% if report.top_metrics %}
{% for metric in report.top_metrics %} {% endfor %}
Metric Name Cardinality Type Labels (Count) Growth Rate Documentation
{{ metric.name }}
{{ "{:,}".format(metric.cardinality) }} {{ metric.type }}
({{ metric.label_count }}) {% for label in metric.labels %} {{ label }} {% endfor %}
{% 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 %}
{% else %}

⏳ No metric data available yet. Collectors are still gathering data.

This page will refresh automatically when data becomes available.

{% endif %}

🏷️ High Cardinality Labels

{% if report.high_cardinality_labels %}
{% for label in report.high_cardinality_labels %} {% endfor %}
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 %}
{% else %}

⏳ No label data available yet. Collectors are still gathering data.

This page will refresh automatically when data becomes available.

{% endif %}
{% if report.growth_rate %}

📊 Growth Rate Analysis

Growth rates calculated over the last 10 minutes. Positive values indicate increasing cardinality.

{% for metric_name, growth in report.growth_rate.items() %} {% if growth != 0 %} {% endif %} {% endfor %}
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 }}
{% endif %}

📊 Quick Actions

{% endif %}