Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Commit

Permalink
Allow empty value in config_flags_extra (#128)
Browse files Browse the repository at this point in the history
[patch] Allow empty value in config_flags_extra
  • Loading branch information
Turgon37 authored and paulfantom committed Jun 27, 2018
1 parent 8cc56e3 commit 0a9d99e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions molecule/alternative/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
prometheus_storage_retention: "60d"
prometheus_config_flags_extra:
alertmanager.timeout: 10s
web.enable-admin-api:
prometheus_alertmanager_config:
- scheme: https
path_prefix: /alertmanager
Expand Down
2 changes: 1 addition & 1 deletion templates/prometheus.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ExecStart=/usr/local/bin/prometheus \
--web.console.templates={{ prometheus_config_dir }}/consoles \
--web.listen-address={{ prometheus_web_listen_address }} \
--web.external-url={{ prometheus_web_external_url }}{% for flag, flag_value in prometheus_config_flags_extra.items() %}\
--{{ flag }}={{ flag_value }} {% endfor %}
--{{ flag }}{% if flag_value %}={{ flag_value }}{% endif %} {% endfor %}

PrivateTmp=true
PrivateDevices=true
Expand Down

0 comments on commit 0a9d99e

Please sign in to comment.