contrib/kube-prometheus: Add prometheusURL to adapter's jsonnet config
This commit is contained in:
@@ -15,6 +15,7 @@ local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet';
|
|||||||
prometheusAdapter+:: {
|
prometheusAdapter+:: {
|
||||||
name: 'prometheus-adapter',
|
name: 'prometheus-adapter',
|
||||||
labels: { name: $._config.prometheusAdapter.name },
|
labels: { name: $._config.prometheusAdapter.name },
|
||||||
|
prometheusURL: 'http://prometheus-' + $._config.prometheus.name + '.' + $._config.namespace + '.svc:9090/',
|
||||||
config: |||
|
config: |||
|
||||||
resourceRules:
|
resourceRules:
|
||||||
cpu:
|
cpu:
|
||||||
@@ -98,7 +99,7 @@ local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet';
|
|||||||
'--config=/etc/adapter/config.yaml',
|
'--config=/etc/adapter/config.yaml',
|
||||||
'--logtostderr=true',
|
'--logtostderr=true',
|
||||||
'--metrics-relist-interval=1m',
|
'--metrics-relist-interval=1m',
|
||||||
'--prometheus-url=http://prometheus-' + $._config.prometheus.name + '.' + $._config.namespace + '.svc:9090/',
|
'--prometheus-url=' + $._config.prometheusAdapter.prometheusURL,
|
||||||
'--secure-port=6443',
|
'--secure-port=6443',
|
||||||
]) +
|
]) +
|
||||||
container.withPorts([{ containerPort: 6443 }]) +
|
container.withPorts([{ containerPort: 6443 }]) +
|
||||||
|
Reference in New Issue
Block a user