|
31 | 31 |
|
32 | 32 | local container = $.core.v1.container,
|
33 | 33 |
|
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 |
| - |
45 | 34 | prometheus_container::
|
46 |
| - |
47 | 35 | container.new('prometheus', $._images.prometheus) +
|
48 | 36 | 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 | + ]) + |
50 | 47 | $.util.resourcesRequests('250m', '1536Mi') +
|
51 | 48 | $.util.resourcesLimits('500m', '2Gi'),
|
52 | 49 |
|
|
0 commit comments