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
Remove obsolete dashboard overrides
  • Loading branch information
Duologic committed Mar 18, 2020
commit bb607dfb0af73b3efb66a9255fcbc0ea8e37e5a7
17 changes: 1 addition & 16 deletions prometheus-ksonnet/prometheus-ksonnet.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,4 @@
(import 'prometheus-mixin/mixin.libsonnet') +
(import 'alertmanager-mixin/mixin.libsonnet') +
(import 'node-mixin/mixin.libsonnet') +
(import 'lib/config.libsonnet') +
{
// Mark obsolete node-related dashboards from the k8s mixin as
// hidden.
// Once we can use the current version of the k8s mixin, those
// overrides can be removed.
// (Note: In jsonnet, you cannot easily remove a field from
// a tuple. Marking it as hidden is a hack suggested by
// @sparkprime himself. See https://github.com/google/jsonnet/issues/312
// for details.)
grafanaDashboards+:: {
'k8s-cluster-rsrc-use.json':: super['k8s-cluster-rsrc-use.json'],
'k8s-node-rsrc-use.json':: super['k8s-node-rsrc-use.json'],
'k8s-multicluster-rsrc-use.json':: super['k8s-multicluster-rsrc-use.json'],
},
}
(import 'lib/config.libsonnet')