From 579b168b2c93daee67ede17ee3289da1678b3833 Mon Sep 17 00:00:00 2001 From: Colin Wilk Date: Thu, 15 Jun 2023 22:40:27 +0200 Subject: Add ability to use exporter without id property 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 --- meta/argument_specs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta') diff --git a/meta/argument_specs.yml b/meta/argument_specs.yml index 270bf68..502c640 100644 --- a/meta/argument_specs.yml +++ b/meta/argument_specs.yml @@ -71,7 +71,7 @@ argument_specs: options: id: type: str - required: true + required: false path: type: str required: false -- cgit v1.2.3