Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

fix(infra-monitoring-clusters): deployments desired should use latest instead of avg (#11681)

Vinicius Lourenço76e7e8864177
diff --git a/frontend/src/container/InfraMonitoringK8s/Clusters/constants.ts b/frontend/src/container/InfraMonitoringK8s/Clusters/constants.ts
index 1d92cc2bd1..c30977af5c 100644
--- a/frontend/src/container/InfraMonitoringK8s/Clusters/constants.ts
+++ b/frontend/src/container/InfraMonitoringK8s/Clusters/constants.ts
@@ -796,7 +796,7 @@ export const getClusterMetricsQueryPayload = (
key: k8sDeploymentDesiredKey,
type: 'Gauge',
},
- aggregateOperator: 'avg',
+ aggregateOperator: 'latest',
dataSource: DataSource.METRICS,
disabled: false,
expression: 'B',
@@ -839,7 +839,7 @@ export const getClusterMetricsQueryPayload = (
reduceTo: ReduceOperators.LAST,
spaceAggregation: 'sum',
stepInterval: 60,
- timeAggregation: 'avg',
+ timeAggregation: 'latest',
},
],
queryFormulas: [],