Skip to content
Snippets Groups Projects
Commit ab5546f4 authored by Ben Kochie's avatar Ben Kochie Committed by Paweł Krupa
Browse files

Correctly enable extra collectors (#70)

* Correctly enable extra collectors

[fix]

When collectors have optional params, make sure to also enable the
collector. This fixes adjusting systemd flags because systemd collector
is disabled by default.

* Ignore long lines in ansble-lint
parent 8ec51924
No related branches found
No related tags found
No related merge requests found
---
skip_list:
- '204'
......@@ -14,6 +14,7 @@ ExecStart=/usr/local/bin/node_exporter \
--collector.{{ collector }} \
{% else -%}
{% set name, options = (collector.items()|list)[0] -%}
--collector.{{ name }} \
{% for k,v in options|dictsort %}
--collector.{{ name }}.{{ k }}={{ v }} \
{% endfor -%}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment