Skip to content

Commit f60b888

Browse files
committed
Revert to arg list (fewer diffs)
1 parent 9597436 commit f60b888

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

prometheus-ksonnet/lib/prometheus.libsonnet

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,19 @@
3131

3232
local container = $.core.v1.container,
3333

34-
prometheus_args:: {
35-
'--config.file': _config.prometheus_config_file,
36-
'--web.listen-address': _config.prometheus_port,
37-
'--web.external-url': '%(prometheus_external_hostname)s%(prometheus_path)s' % _config,
38-
'--web.enable-admin-api': true,
39-
'--web.enable-lifecycle': true,
40-
'--web.route-prefix': _config.prometheus_web_route_prefix,
41-
'--storage.tsdb.path': '/prometheus/data',
42-
'--storage.tsdb.wal-compression': true,
43-
},
44-
4534
prometheus_container::
46-
4735
container.new('prometheus', $._images.prometheus) +
4836
container.withPorts($.core.v1.containerPort.new('http-metrics', _config.prometheus_port)) +
49-
container.withArgs($.util.mapToArgs(self.prometheus_args) +
37+
container.withArgs([
38+
'--config.file=' + _config.prometheus_config_file,
39+
'--web.listen-address=:%s' % _config.prometheus_port,
40+
'--web.external-url=%(prometheus_external_hostname)s%(prometheus_path)s' % _config,
41+
'--web.enable-admin-api',
42+
'--web.enable-lifecycle',
43+
'--web.route-prefix=%s' % _config.prometheus_web_route_prefix,
44+
'--storage.tsdb.path=/prometheus/data',
45+
'--storage.tsdb.wal-compression',
46+
]) +
5047
$.util.resourcesRequests('250m', '1536Mi') +
5148
$.util.resourcesLimits('500m', '2Gi'),
5249

0 commit comments

Comments
 (0)