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

Commit e172a27

Browse files
committed
initial release
Signed-off-by: paulfantom <[email protected]>
1 parent af491b5 commit e172a27

File tree

5 files changed

+17
-15
lines changed

5 files changed

+17
-15
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ jobs:
4646
environment:
4747
4848
GIT_USER: cloudalchemybot
49-
GIT_COMMIT_DESC: git log --format=%B -n 1 ${CIRCLE_SHA1}
5049
steps:
5150
- checkout
5251
- setup_remote_docker
@@ -55,6 +54,7 @@ jobs:
5554
- run: git config --global user.name "${GIT_USER}"
5655
- run: |
5756
GIT_TAG=none
57+
GIT_COMMIT_DESC=$(git log --format=%B -n 1 ${CIRCLE_SHA1})
5858
echo "Last commit message: ${GIT_COMMIT_DESC}"
5959
case "${GIT_COMMIT_DESC}" in
6060
*"[patch]"*|*"[fix]"*|*"[bugfix]"* ) GIT_TAG=$(git semver --next-patch) ;;

defaults/main.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,11 @@ systemd_exporter_enable_restart_count: false
77
systemd_exporter_enable_ip_accounting: false
88
systemd_exporter_enable_file_descriptor_size: false
99

10-
systemd_exporter_unit_allowlist: ""
11-
systemd_exporter_unit_denylist: ""
10+
systemd_exporter_unit_whitelist: []
11+
systemd_exporter_unit_blacklist: []
12+
13+
# Following variables are meant for advanced users only. Changing those is not supported.
14+
15+
_systemd_exporter_binary_install_dir: "/usr/local/bin"
16+
_systemd_exporter_system_group: "systemd-exporter"
17+
_systemd_exporter_system_user: "{{ _systemd_exporter_system_group }}"

meta/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
galaxy_info:
33
author: Pawel Krupa
4-
description: Prometheus SystemD Exporter
4+
description: Prometheus Systemd Exporter
5+
role_name: systemd-exporter
56
license: MIT
67
company: none
78
min_ansible_version: 2.7

templates/systemd_exporter.service.j2

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ ExecStart={{ _systemd_exporter_binary_install_dir }}/systemd_exporter \
1818
{% if systemd_exporter_enable_ip_accounting %}
1919
--collector.enable-ip-accounting \
2020
{% endif %}
21-
{% if systemd_exporter_unit_allowlist != "" %}
22-
--collector.unit-whitelist={{ systemd_exporter_unit_allowlist }} \
23-
{% endif %}
24-
{% if systemd_exporter_unit_denylist != "" %}
25-
--collector.unit-blacklist={{ systemd_exporter_unit_denylist }} \
26-
{% endif %}
21+
{% for item in systemd_exporter_unit_whitelist %}
22+
--collector.unit-whitelist={{ item }} \
23+
{% endfor %}
24+
{% for item in systemd_exporter_unit_blacklist %}
25+
--collector.unit-blacklist={{ item }} \
26+
{% endfor %}
2727
--web.listen-address={{ systemd_exporter_web_listen_address }}
2828

2929
SyslogIdentifier=systemd_exporter

vars/main.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,3 @@ go_arch_map:
77
armv6l: 'armv6'
88

99
go_arch: "{{ go_arch_map[ansible_architecture] | default(ansible_architecture) }}"
10-
11-
_systemd_exporter_binary_install_dir: "/usr/local/bin"
12-
13-
_systemd_exporter_system_group: "systemd-exporter"
14-
_systemd_exporter_system_user: "{{ _systemd_exporter_system_group }}"

0 commit comments

Comments
 (0)