fix: adjust z-score threshold to 5, memory warning 80%/critical 90%
CI/CD / build-and-push (push) Successful in 1m28s
Details
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:
parent
9462f39f81
commit
59c1a29400
|
|
@ -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)} 도달`,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue