custom-prometheus-exporter/templates/metrics.twig
2024-06-03 11:31:15 +02:00

8 lines
195 B
Twig

{% for key, elem in config %}
{% if elem.help is defined and elem.help is not empty %}
# HELP {{ key }} {{ elem.help }}
{% endif %}
# TYPE {{ key }} gauge
{{ key }} {{ elem.value }}
{% endfor %}