Expilicitly set no direct connect and no global connection pool

Signed-off-by: Mykyta Orlov <orlovmyk@gmail.com>
This commit is contained in:
Mykyta Orlov 2024-03-13 16:58:01 +02:00 committed by gardar
parent 67fab88064
commit 402edf792b

View file

@ -39,9 +39,13 @@ ExecStart={{ mongodb_exporter_binary_install_dir }}/mongodb_exporter \
{% endif -%}
{% if mongodb_exporter_direct_connect -%}
--mongodb.direct-connect \
{% else -%}
--no-mongodb.direct-connect \
{% endif -%}
{% if mongodb_exporter_global_conn_pool -%}
--mongodb.global-conn-pool \
{% else -%}
--no-mongodb.global-conn-pool \
{% endif -%}
{% if mongodb_exporter_metrics_overridedescendingindex -%}
--metrics.overridedescendingindex \