fix: adjust z-score threshold to 5, memory warning 80%/critical 90%
CI/CD / build-and-push (push) Successful in 1m28s Details

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Cloud User 2026-03-17 13:56:50 +09:00
parent 9462f39f81
commit 59c1a29400
2 changed files with 3 additions and 3 deletions

View File

@ -35,9 +35,9 @@ function generateAlerts(instances: MetricInstance[], type: string): Alert[] {
});
});
} else if (type === 'memory') {
if (inst.stats.max > 85) {
if (inst.stats.max > 80) {
alerts.push({
level: inst.stats.max > 95 ? 'critical' : 'warning',
level: inst.stats.max > 90 ? 'critical' : 'warning',
instance: inst.instance,
message: `최대 ${formatPercent(inst.stats.max)} 도달`,
});

View File

@ -33,7 +33,7 @@ export function calculateStats(dataPoints: DataPoint[]): Stats {
export function detectPeaks(
dataPoints: DataPoint[],
threshold: number = 2
threshold: number = 5
): { points: (DataPoint & { zScore: number; isPeak: boolean })[]; peaks: PeakInfo[] } {
const values = dataPoints.map((d) => d.value);
const mean = values.reduce((a, b) => a + b, 0) / values.length;