Skip to content

Commit c95fd0d

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

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Diff for: postgres_mixin/config.libsonnet

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

Diff for: postgres_mixin/mixin.libsonnet

+2-1
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)