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

Commit ab5546f

Browse files
SuperQpaulfantom
authored andcommitted
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
1 parent 8ec5192 commit ab5546f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.ansible-lint

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
skip_list:
3+
- '204'

templates/node_exporter.service.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ ExecStart=/usr/local/bin/node_exporter \
1414
--collector.{{ collector }} \
1515
{% else -%}
1616
{% set name, options = (collector.items()|list)[0] -%}
17+
--collector.{{ name }} \
1718
{% for k,v in options|dictsort %}
1819
--collector.{{ name }}.{{ k }}={{ v }} \
1920
{% endfor -%}

0 commit comments

Comments
 (0)