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.

1001 B
Raw Blame
import type { Meta, StoryObj } from '@storybook/react-vite';

import { storyMocks } from '@/storybook/controls/defineStoryMocks';
import type { PageStoryArgs } from '@/storybook/runtime/resolveStory';

import UsageExplorerContainer from '../index';
import { usageMocks } from './Usage.stories.mocks';

type UsageArgs = PageStoryArgs<typeof usageMocks>;

const pageStory = storyMocks(usageMocks, { layout: 'app' });

/**
 * Spans ingested per service over a period, the usage view that predates Cost
 * Meter.
 *
 * Route: `/usage-explorer`.
 */
const meta = {
	title: 'Pages/Metering/Usage Explorer',
	component: UsageExplorerContainer,
	...pageStory,
	parameters: { ...pageStory.parameters },
} satisfies Meta<UsageArgs>;

export default meta;

type Story = StoryObj<UsageArgs>;

/** Spans ingested over the window, and the total they add up to. */
export const Default: Story = {};

/** A workspace that has not sent anything yet. */
export const NoSpans: Story = {
	args: { spansPerBucket: 0 },
};