@ -144,7 +144,10 @@ local utils = (import 'github.com/grafana/jsonnet-libs/mixin-utils/utils.libsonn
grafanaDashboards+: {
'loki-retention.json'+: {
local dropList = ['Logs'],
// TODO (JoaoBraveCoding) Once we upgrade to 3.x we should be able to lift the drops on
// 'Number of times Tables were skipped during Compaction' and 'Retention' since Loki will then have the
// updated metrics
local dropList = ['Logs', 'Number of times Tables were skipped during Compaction', 'Retention'],
local replacements = [
{ from: 'cluster=~"$cluster",', to: '' },
{ from: 'container="compactor"', to: 'container=~".+-compactor"' },
@ -155,7 +158,7 @@ local utils = (import 'github.com/grafana/jsonnet-libs/mixin-utils/utils.libsonn
tags: defaultLokiTags(super.tags),
rows: [
r {
panels: mapPanels([replaceMatchers(replacements), replaceType('stat', 'singlestat')], r.panels),
panels: mapPanels([replaceMatchers(replacements), replaceType('stat', 'singlestat')], dropPanels( r.panels, dropList, function(p) true) ),
}
for r in dropPanels(super.rows, dropList, function(p) true)
],
@ -242,6 +245,10 @@ local utils = (import 'github.com/grafana/jsonnet-libs/mixin-utils/utils.libsonn
utils.selector.re('job', '.+-ingester-http'),
],
ingester_zone:: [],
any_ingester:: [
utils.selector.eq('namespace', '$namespace'),
utils.selector.re('job', '.+-ingester-http'),
],
},
rows: dropPanels(super.rows, dropList, function(p) true),
templating+: {