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.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
chore: add Reduce To for pie chart (#5629)
Srikanth Chekuri4a4c9f26a290
diff --git a/frontend/src/container/NewWidget/utils.ts b/frontend/src/container/NewWidget/utils.tsindex 015830434d..cc5b7b3bce 100644--- a/frontend/src/container/NewWidget/utils.ts+++ b/frontend/src/container/NewWidget/utils.ts@@ -268,6 +268,7 @@ export const panelTypeDataSourceFormValuesMap: Record<'aggregateOperator','aggregateAttribute','groupBy',+ 'reduceTo','limit','having','orderBy',@@ -286,6 +287,7 @@ export const panelTypeDataSourceFormValuesMap: Record<'aggregateOperator','aggregateAttribute','groupBy',+ 'reduceTo','limit','having','orderBy',@@ -305,6 +307,7 @@ export const panelTypeDataSourceFormValuesMap: Record<'aggregateOperator','aggregateAttribute','groupBy',+ 'reduceTo','limit','having','orderBy',diff --git a/frontend/src/container/QueryBuilder/components/Query/Query.tsx b/frontend/src/container/QueryBuilder/components/Query/Query.tsxindex 78892759a4..619c7fd716 100644--- a/frontend/src/container/QueryBuilder/components/Query/Query.tsx+++ b/frontend/src/container/QueryBuilder/components/Query/Query.tsx@@ -544,19 +544,21 @@ export const Query = memo(function Query({)}</Col>- {isVersionV4 && isMetricsDataSource && panelType === PANEL_TYPES.TABLE && (- <Col flex="1 1 12.5rem">- <Row>- <Col span={6}>- <FilterLabel label="Reduce to" />- </Col>+ {isVersionV4 &&+ isMetricsDataSource &&+ (panelType === PANEL_TYPES.TABLE || panelType === PANEL_TYPES.PIE) && (+ <Col flex="1 1 12.5rem">+ <Row>+ <Col span={6}>+ <FilterLabel label="Reduce to" />+ </Col>- <Col span={18}>- <ReduceToFilter query={query} onChange={handleChangeReduceTo} />- </Col>- </Row>- </Col>- )}+ <Col span={18}>+ <ReduceToFilter query={query} onChange={handleChangeReduceTo} />+ </Col>+ </Row>+ </Col>+ )}</Row></Col>)}