From 3021ec44364606c1917617adabfe4e9587f855f4 Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Thu, 13 Jun 2024 13:40:35 +0200 Subject: [PATCH] Added newline for better readability in metrics template A newline has been added to the metrics.twig template to improve code readability. This change separates different sections of the code, making it easier to understand and maintain. --- templates/metrics.twig | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/metrics.twig b/templates/metrics.twig index 60d7eb7..07b156d 100644 --- a/templates/metrics.twig +++ b/templates/metrics.twig @@ -3,6 +3,7 @@ # HELP {{ key }} {{ metric.help }} {% endif %} # TYPE {{ key }} {% if metric.type is defined and metric.type is not empty %}{{ metric.help }}{% else %}gauge{% endif %} + {% for subkey, submetric in metric.submetrics %} {{ key }}{% if submetric.labels is defined and submetric.labels is not empty %}{{ '{' }}{% for label, value in submetric.labels %}{{ label }}="{{ value }}"{% if not loop.last %},{% endif %}{% endfor %}{{ '}' }}{% endif %} {{ submetric.value }} {% endfor %}