fix: remove elements from dict spec

Signed-off-by: gardar <gardar@users.noreply.github.com>
This commit is contained in:
gardar 2023-03-06 21:05:03 +00:00
parent a01fe9f10d
commit f9ccb4dcd0
No known key found for this signature in database
GPG key ID: 00872BAF59D98753
2 changed files with 13 additions and 5 deletions

View file

@ -16,11 +16,9 @@ argument_specs:
blackbox_exporter_cli_flags:
description: "Additional configuration flags passed to blackbox exporter binary at startup"
type: "dict"
elements: "str"
blackbox_exporter_configuration_modules:
description: "Endpoints configuration"
type: "dict"
elements: "dict"
default:
http_2xx:
prober: http

View file

@ -21,6 +21,13 @@ argument_specs:
- "Allows to use local packages instead of ones distributed on github."
- "As parameter it takes a directory where I(prometheus) AND I(promtool) binaries are stored on host on which ansible is ran."
- "This overrides I(prometheus_version) parameter"
prometheus_binary_url:
description: "URL of the prometheus binaries .tar.gz file"
default: "https://github.com/prometheus/prometheus/releases/download/v{{ prometheus_version }}/\
prometheus-{{ prometheus_version }}.linux-{{ go_arch }}.tar.gz"
prometheus_checksums_url:
description: URL of the prometheus checksums file
default: "https://github.com/prometheus/prometheus/releases/download/v{{ prometheus_version }}/sha256sums.txt"
prometheus_config_dir:
description: "Path to directory with prometheus configuration"
default: "/etc/prometheus"
@ -42,9 +49,10 @@ argument_specs:
description: "External address on which prometheus is available. Useful when behind reverse proxy. Ex. `http://example.org/prometheus`"
prometheus_metrics_path:
description: "Prometheus external metrics path"
default: "/metrics"
default: "/{{ (prometheus_web_external_url + '/metrics') | regex_replace('^(.*://)?(.*?)/') }}"
prometheus_storage_retention:
description: "Data retention period"
description:
- "Data retention period"
default: "30d"
prometheus_storage_retention_size:
description:
@ -53,7 +61,9 @@ argument_specs:
- "Units supported: KB, MB, GB, TB, PB."
default: "0"
prometheus_config_flags_extra:
description: "Additional configuration flags passed to prometheus binary at startup"
description:
- "Additional configuration flags passed to prometheus binary at startup"
- "Example: prometheus_config_flags_extra: { storage.tsdb.retention: 15d, alertmanager.timeout: 10s }"
type: "dict"
prometheus_alertmanager_config:
description: