kube-prometheus/prometheus: Add local configuration

This adds constructor'esque configuration options for prometheus assets.
They still reference global _config default values for backwards compatibility
but allow overriding values for new instances of prometheus assets.
This commit is contained in:
Sergiusz Urbaniak
2019-10-07 16:25:05 +02:00
parent 73395e6d78
commit 40a5dc2b71
2 changed files with 53 additions and 45 deletions

View File

@@ -13,7 +13,7 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
},
alertmanager+:: {
name: $._config.alertmanager.name,
name: 'main',
config: {
global: {
resolve_timeout: '5m',