Skip to content

Commit

Permalink
Add pod prefix to partition-ingester
Browse files Browse the repository at this point in the history
  • Loading branch information
mtweten committed Jan 9, 2025
1 parent 96c937c commit 372b90a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions production/loki-mixin/dashboards/loki-operational.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ local utils = import 'mixin-utils/utils.libsonnet';
then [utils.selector.re('pod', '(%sdistributor|%s-write|loki-single-binary)' % [$._config.pod_prefix_matcher, $._config.ssd.pod_prefix_matcher])]
else [utils.selector.re('pod', '%s' % (if $._config.ssd.enabled then '%s-write.*' % $._config.ssd.pod_prefix_matcher else '%sdistributor.*' % $._config.pod_prefix_matcher))],
ingester: if $._config.meta_monitoring.enabled
then [utils.selector.re('pod', '(partition-ingester.*|%singester|%s-write|loki-single-binary)' % [$._config.pod_prefix_matcher, $._config.ssd.pod_prefix_matcher])]
else [utils.selector.re('pod', '%s' % (if $._config.ssd.enabled then '%s-write.*' % $._config.ssd.pod_prefix_matcher else '(%singester.*|partition-ingester.*)' % $._config.pod_prefix_matcher))],
then [utils.selector.re('pod', '(%(pod_prefix)spartition-ingester.*|%(pod_prefix)singester|%(ssd_prefix)s-write|loki-single-binary)' % {pod_prefix: $._config.pod_prefix_matcher, ssd_prefix: $._config.ssd.pod_prefix_matcher})]
else [utils.selector.re('pod', '%s' % (if $._config.ssd.enabled then '%s-write.*' % $._config.ssd.pod_prefix_matcher else '(%(pod_prefix)singester.*|%(pod_prefix)spartition-ingester.*)' % {pod_prefix: $._config.pod_prefix_matcher} ))],
querier: if $._config.meta_monitoring.enabled
then [utils.selector.re('pod', '(%squerier|%s-read|loki-single-binary)' % [$._config.pod_prefix_matcher, $._config.ssd.pod_prefix_matcher])]
else [utils.selector.re('pod', '%s' % (if $._config.ssd.enabled then '%s-read.*' % $._config.ssd.pod_prefix_matcher else '%squerier.*' % $._config.pod_prefix_matcher))],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
else 'index-gateway',

local ingester_pod_matcher = if $._config.meta_monitoring.enabled
then 'container=~"loki|ingester|partition-ingester", pod=~"(%singester.*|partition-ingester.*|loki-single-binary)"' % $._config.pod_prefix_matcher
then 'container=~"loki|ingester|partition-ingester", pod=~"(%(prefix)singester.*|%(prefix)spartition-ingester.*|loki-single-binary)"' % {prefix: $._config.pod_prefix_matcher}
else 'container=~"ingester|partition-ingester"',
local ingester_job_matcher = if $._config.meta_monitoring.enabled
then '(ingester.*|partition-ingester.*|loki-single-binary)'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(import 'dashboard-utils.libsonnet') {
local ingester_pod_matcher = if $._config.meta_monitoring.enabled
then 'container=~"loki|ingester|partition-ingester", pod=~"(%singester.*|partition-ingester.*|loki-single-binary)"' % $._config.pod_prefix_matcher
then 'container=~"loki|ingester|partition-ingester", pod=~"(%(prefix)singester.*|%(prefix)spartition-ingester.*|loki-single-binary)"' % {prefix: $._config.pod_prefix_matcher}
else 'container=~"ingester|partition-ingester"',
local ingester_job_matcher = if $._config.meta_monitoring.enabled
then '(ingester.*|partition-ingester.*|loki-single-binary)'
Expand Down

0 comments on commit 372b90a

Please sign in to comment.