examples/prometheus-agent: Override agent-only flags

Signed-off-by: ArthurSens <arthursens2005@gmail.com>
This commit is contained in:
ArthurSens
2021-11-30 17:13:12 +00:00
parent 67cdd8a3f6
commit 6437e1414a

View File

@@ -5,7 +5,7 @@ local kp =
common+: { common+: {
namespace: 'monitoring', namespace: 'monitoring',
versions+: { versions+: {
prometheus: '2.32.0', prometheus: '2.32.0-beta.0',
}, },
}, },
prometheus+: { prometheus+: {
@@ -18,10 +18,22 @@ local kp =
prometheus+: { prometheus+: {
prometheus+: { prometheus+: {
spec+: { spec+: {
replicas: 1,
alerting:: {}, alerting:: {},
remoteWrite: [{ remoteWrite: [{
url: 'http://remote-write-url.com', url: 'http://remote-write-url.com',
}], }],
containers+: [
{
name: 'prometheus',
args+: [
'--config.file=/etc/prometheus/config_out/prometheus.env.yaml',
'--storage.agent.path=/prometheus',
'--enable-feature=agent',
'--web.enable-lifecycle',
],
},
],
}, },
}, },
}, },