Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Clarify comment.
Signed-off-by: Tom Wilkie <[email protected]>
  • Loading branch information
tomwilkie committed Apr 7, 2020
commit 5a61339873152059d38bd3a2121bb2a40288c0c2
5 changes: 4 additions & 1 deletion prometheus-ksonnet/grafana/dashboards.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@
// New API: Mixins go in the mixins map.
mixins+:: {},

// Legacy extension points for you to add your own dashboards.
// emptyMixin allows us to reliably do `mixin.grafanaDashboards` without
// having to check the field exists first. Some mixins don't declare all
// the fields, and thats fine.
local emptyMixin = {
grafanaDashboards+: {},
},

// Legacy extension points for you to add your own dashboards.
grafanaDashboards+:: std.foldr(
function(mixinName, acc)
local mixin = $.mixins[mixinName] + emptyMixin;
Expand Down