diff --git a/production/loki-mixin/dashboards/loki-writes.libsonnet b/production/loki-mixin/dashboards/loki-writes.libsonnet index a3bea1c573..267676b79f 100644 --- a/production/loki-mixin/dashboards/loki-writes.libsonnet +++ b/production/loki-mixin/dashboards/loki-writes.libsonnet @@ -26,9 +26,6 @@ local utils = import 'mixin-utils/utils.libsonnet'; ingester_zone: if $._config.meta_monitoring.enabled then [utils.selector.re('job', '($namespace)/(partition-ingester-.*|ingester-zone-.*|%s-write|loki-single-binary)' % $._config.ssd.pod_prefix_matcher)] else [utils.selector.re('job', '($namespace)/%s' % (if $._config.ssd.enabled then '%s-write' % $._config.ssd.pod_prefix_matcher else '(ingester-zone.*|partition-ingester-.*)'))], - any_ingester: if $._config.meta_monitoring.enabled - then [utils.selector.re('job', '($namespace)/(partition-ingester.*|ingester.*|%s-write|loki-single-binary)' % $._config.ssd.pod_prefix_matcher)] - else [utils.selector.re('job', '($namespace)/%s' % (if $._config.ssd.enabled then '%s-write' % $._config.ssd.pod_prefix_matcher else '(ingester.*|partition-ingester.*)'))], }, local selector(matcherId) = @@ -41,7 +38,6 @@ local utils = import 'mixin-utils/utils.libsonnet'; distributorSelector:: selector('distributor'), ingesterSelector:: selector('ingester'), ingesterZoneSelector:: selector('ingester_zone'), - anyIngester:: selector('any_ingester'), } + $.dashboard('Loki / Writes', uid='writes') .addCluster() @@ -177,16 +173,16 @@ local utils = import 'mixin-utils/utils.libsonnet'; $.row('Index') .addPanel( $.newQueryPanel('QPS') + - $.newQpsPanel('loki_index_request_duration_seconds_count{%s operation="index_chunk"}' % dashboards['loki-writes.json'].anyIngester) + $.newQpsPanel('loki_index_request_duration_seconds_count{%s operation="index_chunk"}' % dashboards['loki-writes.json'].ingesterSelector) ) .addPanel( $.newQueryPanel('Latency', 'ms') + - $.latencyPanel('loki_index_request_duration_seconds', '{%s operation="index_chunk"}' % dashboards['loki-writes.json'].anyIngester) + $.latencyPanel('loki_index_request_duration_seconds', '{%s operation="index_chunk"}' % dashboards['loki-writes.json'].ingesterSelector) ) .addPanel( $.p99LatencyByPod( 'loki_index_request_duration_seconds', - '{%s operation="index_chunk"}' % dashboards['loki-writes.json'].anyIngester, + '{%s operation="index_chunk"}' % dashboards['loki-writes.json'].ingesterSelector, ) ) )