Skip to content
Snippets Groups Projects
Unverified Commit 03b36af5 authored by Sergiusz Urbaniak's avatar Sergiusz Urbaniak Committed by GitHub
Browse files

Merge pull request #282 from BenoitKnecht/prometheus-config

prometheus: Let name and replicas be set in _config
parents 2f54bcb4 dc77f255
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,8 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
},
prometheus+:: {
name: 'k8s',
replicas: 2,
rules: {},
namespaces: ['default', 'kube-system', $._config.namespace],
},
......@@ -26,10 +28,10 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
prometheus+:: {
local p = self,
name:: 'k8s',
name:: $._config.prometheus.name,
namespace:: $._config.namespace,
roleBindingNamespaces:: $._config.prometheus.namespaces,
replicas:: 2,
replicas:: $._config.prometheus.replicas,
prometheusRules:: $._config.prometheus.rules,
alertmanagerName:: $.alertmanager.service.metadata.name,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment