Skip to content

Commit

Permalink
ceph-mixin: fix config inheritance
Browse files Browse the repository at this point in the history
Signed-off-by: Aswin Toni <aswin.toni@cern.ch>
(cherry picked from commit 3518314)
  • Loading branch information
Aswin Toni authored and nizamial09 committed Sep 20, 2022
1 parent 79d1d90 commit d081732
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion monitoring/ceph-mixin/alerts.libsonnet
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
prometheusAlerts+:: (import 'prometheus_alerts.libsonnet'),
prometheusAlerts+:: (import 'prometheus_alerts.libsonnet') +
{ _config:: $._config },
}
3 changes: 2 additions & 1 deletion monitoring/ceph-mixin/prometheus_alerts.libsonnet
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
(import 'config.libsonnet')
{
_config:: error 'must provide _config',

MultiClusterQuery()::
if $._config.showMultiCluster
then 'cluster,'
Expand Down

0 comments on commit d081732

Please sign in to comment.