diff --git a/metadata.json b/metadata.json index a9e233d..6820ed3 100644 --- a/metadata.json +++ b/metadata.json @@ -1,6 +1,6 @@ { "name": "cristifalcas-prometheus", - "version": "1.1.0", + "version": "1.1.1", "author": "Cristian Falcas", "summary": "Prometheus Puppet module", "license": "Apache-2.0", diff --git a/templates/sysconfig/node_exporter b/templates/sysconfig/node_exporter index fa3523b..e238383 100644 --- a/templates/sysconfig/node_exporter +++ b/templates/sysconfig/node_exporter @@ -35,7 +35,7 @@ ARGS="<% -%> -collector.textfile.directory=<%= scope['prometheus::node_exporter::collector_textfile_directory'] -%> <% end -%> <% if @collectors_enabled -%> - -collectors.enabled=<%= scope['prometheus::node_exporter::collectors_enabled'] -%> + -collectors.enabled=<%= Array(scope['prometheus::node_exporter::collectors_enabled']).join(", ") -%> <% end -%> <% if @log_format -%> -log.format=<%= scope['prometheus::node_exporter::log_format'] -%>