|
@@ -4,6 +4,7 @@ import {MutableSearch} from 'sentry/utils/tokenizeSearch';
|
|
|
import Chart, {ChartType} from 'sentry/views/insights/common/components/chart';
|
|
|
import ChartPanel from 'sentry/views/insights/common/components/chartPanel';
|
|
|
import {useSpanMetricsSeries} from 'sentry/views/insights/common/queries/useDiscoverSeries';
|
|
|
+import {ALERTS} from 'sentry/views/insights/llmMonitoring/alerts';
|
|
|
|
|
|
interface TotalTokensUsedChartProps {
|
|
|
groupId?: string;
|
|
@@ -25,7 +26,10 @@ export function TotalTokensUsedChart({groupId}: TotalTokensUsedChartProps) {
|
|
|
);
|
|
|
|
|
|
return (
|
|
|
- <ChartPanel title={t('Total tokens used')}>
|
|
|
+ <ChartPanel
|
|
|
+ title={t('Total tokens used')}
|
|
|
+ alertConfigs={[{...ALERTS.tokensUsed, query}]}
|
|
|
+ >
|
|
|
<Chart
|
|
|
height={200}
|
|
|
grid={{
|
|
@@ -100,7 +104,10 @@ export function PipelineDurationChart({groupId}: PipelineDurationChartProps) {
|
|
|
);
|
|
|
|
|
|
return (
|
|
|
- <ChartPanel title={t('Pipeline Duration')}>
|
|
|
+ <ChartPanel
|
|
|
+ title={t('Pipeline Duration')}
|
|
|
+ alertConfigs={[{...ALERTS.duration, query}]}
|
|
|
+ >
|
|
|
<Chart
|
|
|
height={200}
|
|
|
grid={{
|