* feature: Make config installation dir configurable
Signed-off-by: Thomas Venieris <thomas.venieris@gmail.com>
* fix: blackbox_exporter_config_dir consistent
- Made blackbox_exporter_config_dir parameter consistent with other
collection roles
- Added new parameter to meta/argument_specs.yml
Signed-off-by: Thomas Venieris <thomas.venieris@gmail.com>
---------
Signed-off-by: Thomas Venieris <thomas.venieris@gmail.com>
Also, binary and configuration owner is changed to root.
User blackbox-exp should be prevented from modifying or deleting either
the configuration or itself, according to the principle of least
privilege.
Signed-off-by: Thomas Venieris <thomas.venieris@gmail.com>
The mysqld_exporter config includes a MySQL user passsword and the web
config may include htpasswd hashes. Don't allow everyone to peek them.
Signed-off-by: Thomas Venieris <thomas.venieris@gmail.com>
* Fix systemd_exporter vars to match the exporter flags
---------
Signed-off-by: Jeremy Miller <runofthemill@users.noreply.github.com>
Signed-off-by: prombot <prometheus-team@googlegroups.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: prombot <prometheus-team@googlegroups.com>
Co-authored-by: SuperQ <SuperQ@users.noreply.github.com>
Fixes an issue with the jinja2 snippet which is used to create the node_exporter Systemd unit. More details here: https://github.com/prometheus-community/ansible/issues/13
Jinja2 namespaces are used to ensure the variable `protect_home` can be set in the parent scope of the `for` loop looking through the mounts.
Signed-off-by: Kevin Bowrin <kevinbowrin@cunet.carleton.ca>
If ansible-vaulted password is passed to password_hash filter, it will throw and error:
'secret must be unicode or bytes, not ansible.parsing.yaml.objects.AnsibleVaultEncryptedUnicode'
Handling the vaulted password with string filter first will avoid the problem.
Signed-off-by: Ilari Iso-Junno <iisojunn@users.noreply.github.com>
This is similar to prometheus_skip_install variable and does what the
name says: when set, it won't try to re-download the SystemD exporter
binary
Signed-off-by: Christian Brabandt <cb@256bit.org>
This is similar to prometheus_skip_install variable and does what the
name says: when set, it won't try to re-download the snmp exporter
binary
Signed-off-by: Christian Brabandt <cb@256bit.org>
This is similar to prometheus_skip_install variable and does what the
name says: when set, it won't try to re-download the node exporter
binary
Signed-off-by: Christian Brabandt <cb@256bit.org>
This is similar to prometheus_skip_install variable and does what the
name says: when set, it won't try to re-download the mysqld exporter
binary
Signed-off-by: Christian Brabandt <cb@256bit.org>
This is similar to prometheus_skip_install variable and does what the
name says: when set, it won't try to re-download blackbox_exporter
binary
Also, fix a small typo in the preflight task.
Signed-off-by: Christian Brabandt <cb@256bit.org>
This is similar to prometheus_skip_install variable and does what the
name says: when set, it won't try to re-download alertmanager binaries
Signed-off-by: Christian Brabandt <cb@256bit.org>
Correct the quotation around the collector option flags and values
in the node_exporter role systemd unit config file template so that
regex values get parsed correctly.
Refs: #68
Signed-off-by: Andrew Kingston <andrew.kingston@framestore.com>
Remove the quotation around the collector option flags and values
in the node_exporter role systemd unit config file template so that
regex values get parsed correctly.
Refs: #68
Signed-off-by: Andrew Kingston <andrew.kingston@framestore.com>
Correct the quotation around the collector option flags and values
in the node_exporter role systemd unit config file template so that
regex values get parsed correctly.
Refs: #68
Signed-off-by: Andrew Kingston <andrew.kingston@framestore.com>