Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Commit

Permalink
Correctly enable extra collectors (#70)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
SuperQ authored and paulfantom committed Feb 19, 2019
1 parent 8ec5192 commit ab5546f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
skip_list:
- '204'
1 change: 1 addition & 0 deletions templates/node_exporter.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%}
Expand Down

0 comments on commit ab5546f

Please sign in to comment.