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
fix: list alerts rules is handled
Palash guptab4833eeb0efb
diff --git a/frontend/src/container/ListAlertRules/index.tsx b/frontend/src/container/ListAlertRules/index.tsxindex abcf1efe58..a5c616bfe6 100644--- a/frontend/src/container/ListAlertRules/index.tsx+++ b/frontend/src/container/ListAlertRules/index.tsx@@ -8,15 +8,22 @@ import ListAlert from './ListAlert';function ListAlertRules(): JSX.Element {const { t } = useTranslation('common');- const { data, isError, isLoading, refetch } = useQuery('allAlerts', {+ const { data, isError, isLoading, refetch, status } = useQuery('allAlerts', {queryFn: getAll,cacheTime: 0,});+ // api failed to load the dataif (isError) {return <div>{data?.error || t('something_went_wrong')}</div>;}+ // api is successful but error is present+ if (status === 'success' && data.statusCode !== 200) {+ return <div>{data?.error || t('something_went_wrong')}</div>;+ }++ // in case of loadingif (isLoading || !data?.payload) {return <Spinner height="75vh" tip="Loading Rules..." />;}