The *collectd-prometheus* role now has a `collectd_prometheus_allow_outsize` variable. This variable controls whether or not external hosts are allowed to scrape data from *collectd*. When set to `false`, as is the default value, *collectd* will be configured to listen on the loopback interface only, and the TCP port will not be opened in the firewall.
11 lines
248 B
Django/Jinja
11 lines
248 B
Django/Jinja
{% if collectd_load_prometheus_plugin %}
|
|
LoadPlugin write_prometheus
|
|
|
|
{% endif %}
|
|
<Plugin write_prometheus>
|
|
Port {{ collectd_prometheus_port }}
|
|
{% if collectd_prometheus_host|d %}
|
|
Host "{{ collectd_prometheus_host }}"
|
|
{% endif %}
|
|
</Plugin>
|