From 2df4296671f59be9738d051090fdbca87cbcb29e Mon Sep 17 00:00:00 2001 From: Robert Fratto Date: Tue, 5 Mar 2024 11:07:10 -0500 Subject: [PATCH] agent-flow-mixin: remove unnecessary `sum by (le)` for native histograms (#6611) Native histograms do not have an `le` label, so there is no point in specifying `sum by (le)`. This change was tested and makes no visual difference to the panels. --- .../agent-flow-mixin/dashboards/controller.libsonnet | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/operations/agent-flow-mixin/dashboards/controller.libsonnet b/operations/agent-flow-mixin/dashboards/controller.libsonnet index 6436e40b535b..ac6125d5784b 100644 --- a/operations/agent-flow-mixin/dashboards/controller.libsonnet +++ b/operations/agent-flow-mixin/dashboards/controller.libsonnet @@ -219,7 +219,7 @@ local filename = 'agent-flow-controller.json'; panel.withQueries([ panel.newQuery( expr=||| - histogram_quantile(0.99, sum by (le) (rate(agent_component_evaluation_seconds{cluster="$cluster",namespace="$namespace"}[$__rate_interval]))) + histogram_quantile(0.99, sum(rate(agent_component_evaluation_seconds{cluster="$cluster",namespace="$namespace"}[$__rate_interval]))) or histogram_quantile(0.99, sum by (le) (rate(agent_component_evaluation_seconds_bucket{cluster="$cluster",namespace="$namespace"}[$__rate_interval]))) |||, @@ -227,7 +227,7 @@ local filename = 'agent-flow-controller.json'; ), panel.newQuery( expr=||| - histogram_quantile(0.50, sum by (le) (rate(agent_component_evaluation_seconds{cluster="$cluster",namespace="$namespace"}[$__rate_interval]))) + histogram_quantile(0.50, sum(rate(agent_component_evaluation_seconds{cluster="$cluster",namespace="$namespace"}[$__rate_interval]))) or histogram_quantile(0.50, sum by (le) (rate(agent_component_evaluation_seconds_bucket{cluster="$cluster",namespace="$namespace"}[$__rate_interval]))) |||, @@ -287,7 +287,7 @@ local filename = 'agent-flow-controller.json'; panel.withQueries([ panel.newQuery( expr=||| - sum by (le) (increase(agent_component_evaluation_seconds{cluster="$cluster", namespace="$namespace"}[$__rate_interval])) + sum(increase(agent_component_evaluation_seconds{cluster="$cluster", namespace="$namespace"}[$__rate_interval])) or ignoring (le) sum by (le) (increase(agent_component_evaluation_seconds_bucket{cluster="$cluster", namespace="$namespace"}[$__rate_interval])) |||, @@ -312,7 +312,7 @@ local filename = 'agent-flow-controller.json'; panel.withQueries([ panel.newQuery( expr=||| - sum by (le) (increase(agent_component_dependencies_wait_seconds{cluster="$cluster", namespace="$namespace"}[$__rate_interval])) + sum(increase(agent_component_dependencies_wait_seconds{cluster="$cluster", namespace="$namespace"}[$__rate_interval])) or ignoring (le) sum by (le) (increase(agent_component_dependencies_wait_seconds_bucket{cluster="$cluster", namespace="$namespace"}[$__rate_interval])) |||,