File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ local configMap = k.core.v1.configMap;
9
9
_config+:: {
10
10
prometheus_config_dir: '/etc/$(POD_NAME)' ,
11
11
},
12
+ local _config = self ._config,
12
13
13
14
// The '__replica__' label is used by Cortex for deduplication.
14
15
prometheus_zero+:: {
@@ -55,8 +56,13 @@ local configMap = k.core.v1.configMap;
55
56
prometheus_config_mount:: {},
56
57
57
58
prometheus_container+:: container.withEnv([
58
- container.envType.fromFieldPath('POD_NAME' , 'metadata.name' ),
59
- ]),
59
+ container.envType.fromFieldPath('POD_NAME' , 'metadata.name' ),
60
+ ])
61
+ + container.mixin.readinessProbe.httpGet.withPath('%(prometheus_path)s-/ready' % _config)
62
+ + container.mixin.readinessProbe.httpGet.withPort(_config.prometheus_port)
63
+ + container.mixin.readinessProbe.withInitialDelaySeconds(15 )
64
+ + container.mixin.readinessProbe.withTimeoutSeconds(1 )
65
+ ,
60
66
61
67
prometheus_watch_container+:: container.withEnv([
62
68
container.envType.fromFieldPath('POD_NAME' , 'metadata.name' ),
You can’t perform that action at this time.
0 commit comments