custom-prometheus-exporter/templates/metrics.twig

8 lines
195 B
Twig
Raw Normal View History

2024-06-03 19:48:39 +02:00
{% 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 %}