Skip to content

Commit f8d470c

Browse files
authored
Merge pull request #313 from orlovmyk/main
bug: no ability to expilicitly set no direct connect and no global connection pool
2 parents 67fab88 + 402edf7 commit f8d470c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

roles/mongodb_exporter/templates/mongodb_exporter.service.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,13 @@ ExecStart={{ mongodb_exporter_binary_install_dir }}/mongodb_exporter \
3939
{% endif -%}
4040
{% if mongodb_exporter_direct_connect -%}
4141
--mongodb.direct-connect \
42+
{% else -%}
43+
--no-mongodb.direct-connect \
4244
{% endif -%}
4345
{% if mongodb_exporter_global_conn_pool -%}
4446
--mongodb.global-conn-pool \
47+
{% else -%}
48+
--no-mongodb.global-conn-pool \
4549
{% endif -%}
4650
{% if mongodb_exporter_metrics_overridedescendingindex -%}
4751
--metrics.overridedescendingindex \

0 commit comments

Comments
 (0)