Skip to content

Commit 7d4eaca

Browse files
chitoku-kbenjaminguttmann-avtq
authored andcommitted
Add prometheus.enable_features
1 parent e8bb2d7 commit 7d4eaca

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

jobs/prometheus2/spec

+3
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ properties:
5858
description: "Remote write storage configuration"
5959
prometheus.remote_read:
6060
description: "Remote read storage configuration"
61+
prometheus.enable_features:
62+
description: "List of features to enable"
63+
default: []
6164

6265
prometheus.alertmanager.notification_queue_capacity:
6366
description: "The capacity of the queue for pending alert manager notifications"

jobs/prometheus2/templates/bin/prometheus_ctl

+3
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ case $1 in
139139
<% if_p('prometheus.web.user_assets') do |user_assets| %> \
140140
--web.user-assets="<%= user_assets %>" \
141141
<% end %> \
142+
<% p('prometheus.enable_features', []).each do |enable_feature| %> \
143+
--enable-feature="<%= enable_feature %>" \
144+
<% end %> \
142145
>> ${LOG_DIR}/prometheus.stdout.log \
143146
2>> ${LOG_DIR}/prometheus.stderr.log
144147
;;

0 commit comments

Comments
 (0)