File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
prometheus-ksonnet/grafana Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 33
44 _config+:: {
55 // Shard dashboards across multiple config maps to overcome annotation
6- // lenght limits.
6+ // length limits.
77 dashboard_config_maps: 8 ,
88 },
99
1212
1313 // mixinProto allows us to reliably do `mixin.grafanaDashboards` without
1414 // having to check the field exists first. Some mixins don't declare all
15- // the fields, and thats fine.
15+ // the fields, and that's fine.
1616 //
1717 // We also use this to add a little "opinion":
1818 // - Dashboard UIDs are set to the md5 hash of their filename.
7373 std.objectHas (mixin, 'grafanaDashboardFolder' ) &&
7474 std.length (mixin.grafanaDashboards) > 0 ,
7575
76- // Its super common for a single mixin's worth of dashboards to not even fit
76+ // It's super common for a single mixin's worth of dashboards to not even fit
7777 // in a single config map. So we split each mixin's dashboards up over
78- // multiple config maps, depending on the hash of dashboards name.
78+ // multiple config maps, depending on the hash of the dashboard name.
7979 local sharded_config_maps(name_prefix, shards, dashboards) = {
8080 ['%s-%d' % [name_prefix, shard]]+:
8181 configMap.new('%s-%d' % [name_prefix, shard]) +
You can’t perform that action at this time.
0 commit comments