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-charts): fixes for hosts/deployments/jobs/namespaces (#11599)

Vinicius Lourençoe02da843f2d0
diff --git a/frontend/src/container/InfraMonitoringK8s/Deployments/constants.ts b/frontend/src/container/InfraMonitoringK8s/Deployments/constants.ts
index 79854e7df2..5cfe97d7c9 100644
--- a/frontend/src/container/InfraMonitoringK8s/Deployments/constants.ts
+++ b/frontend/src/container/InfraMonitoringK8s/Deployments/constants.ts
@@ -72,7 +72,7 @@ export const deploymentWidgetInfo = [
yAxisUnit: '',
},
{
- title: 'Memory usage, request, limits)',
+ title: 'Memory usage, request, limits',
yAxisUnit: 'bytes',
},
{
diff --git a/frontend/src/container/InfraMonitoringK8s/Jobs/constants.ts b/frontend/src/container/InfraMonitoringK8s/Jobs/constants.ts
index d641ec1e1b..398812c60f 100644
--- a/frontend/src/container/InfraMonitoringK8s/Jobs/constants.ts
+++ b/frontend/src/container/InfraMonitoringK8s/Jobs/constants.ts
@@ -69,7 +69,7 @@ export const jobWidgetInfo = [
yAxisUnit: '',
},
{
- title: 'Memory usage, request, limits',
+ title: 'Memory Usage',
yAxisUnit: 'bytes',
},
{
diff --git a/frontend/src/container/InfraMonitoringK8s/Namespaces/constants.ts b/frontend/src/container/InfraMonitoringK8s/Namespaces/constants.ts
index 806f05c577..16e9cf77c1 100644
--- a/frontend/src/container/InfraMonitoringK8s/Namespaces/constants.ts
+++ b/frontend/src/container/InfraMonitoringK8s/Namespaces/constants.ts
@@ -703,7 +703,7 @@ export const getNamespaceMetricsQueryPayload = (
],
having: [],
legend: `{{${k8sPodNameKey}}}`,
- limit: 20,
+ limit: 10,
orderBy: [],
queryName: 'A',
reduceTo: ReduceOperators.AVG,
@@ -1014,8 +1014,8 @@ export const getNamespaceMetricsQueryPayload = (
id: '5f2a55c5',
key: {
dataType: DataTypes.String,
- id: k8sStatefulsetNameKey,
- key: k8sStatefulsetNameKey,
+ id: k8sNamespaceNameKey,
+ key: k8sNamespaceNameKey,
type: 'tag',
},
op: '=',
diff --git a/frontend/src/container/InfraMonitoringK8s/Volumes/constants.ts b/frontend/src/container/InfraMonitoringK8s/Volumes/constants.ts
index c8bb39efb4..84b2213883 100644
--- a/frontend/src/container/InfraMonitoringK8s/Volumes/constants.ts
+++ b/frontend/src/container/InfraMonitoringK8s/Volumes/constants.ts
@@ -317,9 +317,9 @@ export const getVolumeMetricsQueryPayload = (
{
aggregateAttribute: {
dataType: DataTypes.Float64,
- id: 'k8s_volume_inodes_used--float64----true',
+ id: 'k8s_volume_inodes_used--float64--Gauge--true',
key: k8sVolumeInodesUsedKey,
- type: '',
+ type: 'Gauge',
},
aggregateOperator: 'avg',
dataSource: DataSource.METRICS,
@@ -409,9 +409,9 @@ export const getVolumeMetricsQueryPayload = (
{
aggregateAttribute: {
dataType: DataTypes.Float64,
- id: 'k8s_volume_inodes--float64----true',
+ id: 'k8s_volume_inodes--float64--Gauge--true',
key: k8sVolumeInodesKey,
- type: '',
+ type: 'Gauge',
},
aggregateOperator: 'avg',
dataSource: DataSource.METRICS,
@@ -501,9 +501,9 @@ export const getVolumeMetricsQueryPayload = (
{
aggregateAttribute: {
dataType: DataTypes.Float64,
- id: 'k8s_volume_inodes_free--float64----true',
+ id: 'k8s_volume_inodes_free--float64--Gauge--true',
key: k8sVolumeInodesFreeKey,
- type: '',
+ type: 'Gauge',
},
aggregateOperator: 'avg',
dataSource: DataSource.METRICS,
diff --git a/frontend/src/container/LogDetailedView/InfraMetrics/constants.ts b/frontend/src/container/LogDetailedView/InfraMetrics/constants.ts
index d2d227c0e3..640a7fc18e 100644
--- a/frontend/src/container/LogDetailedView/InfraMetrics/constants.ts
+++ b/frontend/src/container/LogDetailedView/InfraMetrics/constants.ts
@@ -1619,6 +1619,9 @@ export const getHostQueryPayload = (
const diskOpTimeKey = dotMetricsEnabled
? 'system.disk.operation_time'
: 'system_disk_operation_time';
+ const diskOpsKey = dotMetricsEnabled
+ ? 'system.disk.operations'
+ : 'system_disk_operations';
const diskPendingKey = dotMetricsEnabled
? 'system.disk.pending_operations'
: 'system_disk_pending_operations';
@@ -2375,9 +2378,24 @@ export const getHostQueryPayload = (
op: 'AND',
},
functions: [],
- groupBy: [],
+ groupBy: [
+ {
+ dataType: DataTypes.String,
+ id: 'direction--string--tag--false',
+
+ key: 'direction',
+ type: 'tag',
+ },
+ {
+ dataType: DataTypes.String,
+ id: 'device--string--tag--false',
+
+ key: 'device',
+ type: 'tag',
+ },
+ ],
having: [],
- legend: 'system disk io',
+ legend: '{{device}}::{{direction}}',
limit: null,
orderBy: [],
queryName: 'A',
@@ -2409,9 +2427,9 @@ export const getHostQueryPayload = (
{
aggregateAttribute: {
dataType: DataTypes.Float64,
- id: 'system_disk_operation_time--float64--Sum--true',
+ id: 'system_disk_operations--float64--Sum--true',
- key: diskOpTimeKey,
+ key: diskOpsKey,
type: 'Sum',
},
aggregateOperator: 'rate',
@@ -2421,7 +2439,7 @@ export const getHostQueryPayload = (
filters: {
items: [
{
- id: 'diskop_f1',
+ id: 'diskops_f1',
key: {
dataType: DataTypes.String,
id: 'host_name--string--tag--false',
@@ -2454,7 +2472,7 @@ export const getHostQueryPayload = (
],
having: [
{
- columnName: `SUM(${diskOpTimeKey})`,
+ columnName: `SUM(${diskOpsKey})`,
op: '>',
value: 0,
},
@@ -2557,6 +2575,88 @@ export const getHostQueryPayload = (
start,
end,
},
+ {
+ selectedTime: 'GLOBAL_TIME',
+ graphType: PANEL_TYPES.TIME_SERIES,
+ query: {
+ builder: {
+ queryData: [
+ {
+ aggregateAttribute: {
+ dataType: DataTypes.Float64,
+ id: 'system_disk_operation_time--float64--Sum--true',
+
+ key: diskOpTimeKey,
+ type: 'Sum',
+ },
+ aggregateOperator: 'rate',
+ dataSource: DataSource.METRICS,
+ disabled: false,
+ expression: 'A',
+ filters: {
+ items: [
+ {
+ id: 'diskoptime_f1',
+ key: {
+ dataType: DataTypes.String,
+ id: 'host_name--string--tag--false',
+
+ key: hostNameKey,
+ type: 'tag',
+ },
+ op: '=',
+ value: hostName,
+ },
+ ],
+ op: 'AND',
+ },
+ functions: [],
+ groupBy: [
+ {
+ dataType: DataTypes.String,
+ id: 'device--string--tag--false',
+
+ key: 'device',
+ type: 'tag',
+ },
+ {
+ dataType: DataTypes.String,
+ id: 'direction--string--tag--false',
+
+ key: 'direction',
+ type: 'tag',
+ },
+ ],
+ having: [
+ {
+ columnName: `SUM(${diskOpTimeKey})`,
+ op: '>',
+ value: 0,
+ },
+ ],
+ legend: '{{device}}::{{direction}}',
+ limit: null,
+ orderBy: [],
+ queryName: 'A',
+ reduceTo: ReduceOperators.AVG,
+ spaceAggregation: 'sum',
+ stepInterval: 60,
+ timeAggregation: 'rate',
+ },
+ ],
+ queryFormulas: [],
+ queryTraceOperator: [],
+ },
+ clickhouse_sql: [{ disabled: false, legend: '', name: 'A', query: '' }],
+ id: 'a8b3d2e1-4f5c-4a6b-9c8d-7e2f1a0b3c4f',
+ promql: [{ disabled: false, legend: '', name: 'A', query: '' }],
+ queryType: EQueryType.QUERY_BUILDER,
+ },
+ variables: {},
+ formatForWeb: false,
+ start,
+ end,
+ },
];
};
@@ -2631,5 +2731,5 @@ export const hostWidgetInfo = [
{ title: 'System disk io (bytes transferred)', yAxisUnit: 'bytes' },
{ title: 'System disk operations/s', yAxisUnit: 'short' },
{ title: 'Queue size', yAxisUnit: 'short' },
- { title: 'Disk operations time', yAxisUnit: 's' },
+ { title: 'System disk operation time/s', yAxisUnit: 's' },
];