configpolicy/roles/collectd-prometheus/templates/collectd-prometheus.conf.j2

11 lines
257 B
Django/Jinja

{% if collectd_load_prometheus_plugin %}
LoadPlugin write_prometheus
{% endif %}
<Plugin write_prometheus>
Port {{ collectd_prometheus_port }}
{% if collectd_prometheus_host is defined %}
Host "{{ collectd_prometheus_host }}"
{% endif %}
</Plugin>