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.

843 B
Raw Blame
import { Button } from '@signozhq/ui/button';
import { Typography } from '@signozhq/ui/typography';

import styles from './NoRuleEmptyState.module.scss';

interface NoRuleEmptyStateProps {
	canManage: boolean;
	onSetup: () => void;
}

function NoRuleEmptyState({
	canManage,
	onSetup,
}: NoRuleEmptyStateProps): JSX.Element {
	return (
		<div className={styles.emptyState} data-testid="volume-control-empty">
			<Typography.Text size="small" color="muted">
				No volume control rule. All series are retained. Aggregate away
				high-cardinality attributes to reduce cost.
			</Typography.Text>
			{canManage && (
				<Button
					size="md"
					variant="solid"
					color="primary"
					onClick={onSetup}
					testId="volume-control-setup"
				>
					Set up volume control
				</Button>
			)}
		</div>
	);
}

export default NoRuleEmptyState;