Additional configuration flags passed to blackbox exporter binary at startup
-
+
blackbox_exporter_config_dir
string
@@ -186,7 +214,7 @@ To check whether it is installed, run Default:"/etc"
-
+
blackbox_exporter_configuration_modules
dictionary
@@ -194,7 +222,7 @@ To check whether it is installed, run Default:{"http_2xx":{"http":{"method":"GET","valid_status_codes":[]},"prober":"http","timeout":"5s"}}
-
+
blackbox_exporter_group
string
@@ -202,7 +230,7 @@ To check whether it is installed, run Default:"blackbox-exp"
-
+
blackbox_exporter_skip_install
boolean
@@ -214,7 +242,7 @@ To check whether it is installed, run
+
blackbox_exporter_user
string
@@ -222,15 +250,15 @@ To check whether it is installed, run Default:"blackbox-exp"
-
+
blackbox_exporter_version
string
-
Blackbox exporter package version
+
Blackbox exporter package version. Also accepts latest as parameter.
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxycollectionlist.
To install it use: ansible-galaxycollectioninstallprometheus.prometheus.
@@ -164,6 +166,19 @@ To check whether it is installed, run
+
prometheus_agent_mode
+
boolean
+
+
The Agent mode optimizes Prometheus for the remote write use case. It disables querying, alerting, and local storage, and replaces it with a customized TSDB WAL. Everything else stays the same.
+
This feature is available starting from Prometheus v2.32.0.
+
Choices:
+
+
false← (default)
+
true
+
+
+
+
prometheus_alert_relabel_configs
list / elements=string
@@ -171,7 +186,7 @@ To check whether it is installed, run alert_relabel_configs
-
+
prometheus_alert_rules
list / elements=dictionary
@@ -180,7 +195,7 @@ To check whether it is installed, run
+
prometheus_alert_rules_files
list / elements=string
@@ -189,7 +204,7 @@ To check whether it is installed, run Default:["prometheus/rules/*.rules"]
-
+
prometheus_alertmanager_config
list / elements=string
@@ -197,7 +212,7 @@ To check whether it is installed, run alertmanager_config
-
+
prometheus_binary_local_dir
string
@@ -206,7 +221,7 @@ To check whether it is installed, run
+
prometheus_binary_url
string
@@ -214,7 +229,7 @@ To check whether it is installed, run Default:"https://github.com/{{_prometheus_repo}}/releases/download/v{{prometheus_version}}/prometheus-{{prometheus_version}}.linux-{{go_arch}}.tar.gz"
-
+
prometheus_checksums_url
string
@@ -222,7 +237,7 @@ To check whether it is installed, run Default:"https://github.com/{{_prometheus_repo}}/releases/download/v{{prometheus_version}}/sha256sums.txt"
-
+
prometheus_config_dir
string
@@ -230,7 +245,7 @@ To check whether it is installed, run Default:"/etc/prometheus"
-
+
prometheus_config_file
string
@@ -238,7 +253,7 @@ To check whether it is installed, run Default:"prometheus.yml.j2"
-
+
prometheus_config_flags_extra
dictionary
@@ -246,7 +261,7 @@ To check whether it is installed, run
+
prometheus_db_dir
string
@@ -254,7 +269,7 @@ To check whether it is installed, run Default:"/var/lib/prometheus"
-
+
prometheus_external_labels
dictionary
@@ -262,7 +277,7 @@ To check whether it is installed, run Default:{"environment":"{{ansible_fqdn|default(ansible_host)|default(inventory_hostname)}}"}
-
+
prometheus_global
dictionary
@@ -270,7 +285,7 @@ To check whether it is installed, run Default:{"evaluation_interval":"15s","scrape_interval":"60s","scrape_timeout":"15s"}
-
+
prometheus_metrics_path
string
@@ -278,28 +293,28 @@ To check whether it is installed, run Default:"/{{(prometheus_web_external_url+'/metrics')|regex_replace('^(.*://)?(.*?)/')}}"
-
+
prometheus_read_only_dirs
list / elements=string
Additional paths that Prometheus is allowed to read (useful for SSL certs outside of the config directory)
@@ -307,7 +322,7 @@ To check whether it is installed, run Default:[{"job_name":"prometheus","metrics_path":"{{prometheus_metrics_path}}","static_configs":[{"targets":["{{ansible_fqdn|default(ansible_host)|default('localhost')}}:9090"]}]},{"file_sd_configs":[{"files":["{{prometheus_config_dir}}/file_sd/node.yml"]}],"job_name":"node"}]
-
+
prometheus_skip_install
boolean
@@ -319,7 +334,7 @@ To check whether it is installed, run
+
prometheus_static_targets_files
list / elements=string
@@ -327,6 +342,14 @@ To check whether it is installed, run Default:["prometheus/targets/*.yml","prometheus/targets/*.json"]
+
+
prometheus_stop_timeout
+
string
+
+
How long to wait for Prometheus to shutdown. This is passed as a systemd TimeoutStopSec time spec.
+
Default:"600s"
+
+
prometheus_storage_retention
string
@@ -358,7 +381,7 @@ To check whether it is installed, run
Prometheus package version. Also accepts latest as parameter.