Skip to content

Commit ecbbcb3

Browse files
committed
postgres_mixin: allow parametrization of mixin by using _config object
Signed-off-by: Paweł Krupa (paulfantom) <[email protected]>
1 parent 3fa2fa9 commit ecbbcb3

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

postgres_mixin/config.libsonnet

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
_config+:: {
3+
postgresExporterSelector: '',
4+
},
5+
}

postgres_mixin/mixin.libsonnet

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
(import 'alerts/alerts.libsonnet') +
2-
(import 'dashboards/dashboards.libsonnet')
2+
(import 'dashboards/dashboards.libsonnet') +
3+
(import 'config.libsonnet')

0 commit comments

Comments
 (0)