Increase chart data limit from 20 to 1000 points

This commit is contained in:
mirivlad 2026-02-15 09:14:44 +00:00
parent 16481f5307
commit 36c8856d38
1 changed files with 1 additions and 1 deletions

View File

@ -473,7 +473,7 @@ const ctx{{ metricName|replace({'-': '_', '.': '_'}) }} = document.getElementByI
var labels{{ metricName }} = [];
var data{{ metricName }} = [];
{% for metric in metricData|slice(0, 20)|reverse %}
{% for metric in metricData|slice(0, 1000)|reverse %}
labels{{ metricName }}.push('{{ metric.created_at|date('H:i') }}');
data{{ metricName }}.push({{ metric.value|raw }});
{% endfor %}