aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/README.md
Commit message (Collapse)AuthorAgeFilesLines
* Add run_once option for handlersColin Wilk2023-10-111-0/+6
| | | | | | | | | | | | | | This adds the run_once option for the two handler types (shell and command). The variables `prometheus_target_handler_command_run_once` and `prometheus_target_handler_shell_run_once` are introduced to control this behavior. For this change a switch from the Ansible Handlers to regular tasks was necessary to enforce run_once behavior with delegated hosts. If you don't rely on handler specific features such as deferring, nothing changes when using the role. Signed-off-by: Colin Wilk <colin.wilk@tum.de>
* Add ability to use exporter without id propertyv1.1.0Colin Wilk2023-06-151-0/+2
| | | | | | | | | | | | | | | | | The id property of the exporter is used for checking the default values specified in `prometheus_target_exporter_defaults` variable. However when both the `host` and the `path` fields are specified manually in the `prometheus_target_exporter` list this id is never looked up. The way the templating was handled however, still resulted in an error when leaving out the id field. The templating code was now rewritten to allow for the following exporter configuraion to run: prometheus_target_exporter: - { host: exporter_without_id, path: /opt/simple_target4.yml } Signed-off-by: Colin Wilk <colin.wilk@tum.de>
* Add ability to specify target path prefixColin Wilk2023-06-111-1/+48
| | | | | | | | This will decrease the amount of redundant configuration for users by allowing them to specify a general prefix on global / exporter / play level Signed-off-by: Colin Wilk <colin.wilk@tum.de>
* Add readme example for group_var matchingColin Wilk2023-06-041-0/+53
| | | | Signed-off-by: Colin Wilk <colin.wilk@tum.de>
* Fix collection typo in READMEColin Wilk2023-06-011-2/+2
| | | | | | | Fix typo in ansible-galaxy command which tries to install a collection from the role repository. Signed-off-by: Colin Wilk <colin.wilk@tum.de>
* Link to defaults file on reference in readmeColin Wilk2023-05-311-1/+1
| | | | Signed-off-by: Colin Wilk <colin.wilk@tum.de>
* Add become_user and become_method config variables to handlersColin Wilk2023-05-301-2/+6
| | | | Signed-off-by: Colin Wilk <colin.wilk@tum.de>
* Add ReadmeColin Wilk2023-05-291-0/+220
Signed-off-by: Colin Wilk <colin.wilk@tum.de>