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.

chore: update metric metadata response payload (#7359)

aniketio-ctrle434e3d142d4
diff --git a/pkg/query-service/model/metrics_explorer/summary.go b/pkg/query-service/model/metrics_explorer/summary.go
index 2fe29d4e3c..920a5cee69 100644
--- a/pkg/query-service/model/metrics_explorer/summary.go
+++ b/pkg/query-service/model/metrics_explorer/summary.go
@@ -31,8 +31,8 @@ type TreeMapMetricsRequest struct {
type MetricDetail struct {
MetricName string `json:"metric_name"`
Description string `json:"description"`
- MetricType string `json:"metric_type"`
- MetricUnit string `json:"metric_unit"`
+ MetricType string `json:"type"`
+ MetricUnit string `json:"unit"`
TimeSeries uint64 `json:"timeseries"`
Samples uint64 `json:"samples"`
LastReceived int64 `json:"lastReceived"`