more error detection
This commit is contained in:
Родитель
8eaf490991
Коммит
dd861c2d57
|
@ -145,7 +145,9 @@ let Result = PhaseData
|
|||
| where TotalSLADuration between(slaLimit..maxPhaseDuration)
|
||||
//
|
||||
// Correlate with plan completion status and total duration
|
||||
| lookup (PlansToConsider) on PlanId;
|
||||
| lookup (PlansToConsider) on PlanId
|
||||
| where TotalSLADuration < PlanDuration // if SLA is longer than entire plan, we have dropped telemetry for sure.
|
||||
;
|
||||
//
|
||||
//
|
||||
// Kalypso monitor mode: only take any if there are more that a certain number of problems
|
||||
|
|
|
@ -10,6 +10,9 @@ let parentOid = strcat_array(array_slice(oidComponents, 0, oidLookback), ".");
|
|||
let planid = substring(oid, 0, 36);
|
||||
let useSev2Thresholds = true;
|
||||
let maxPhaseDuration = 2h;
|
||||
let definitionName = toscalar(OrchestrationPlanContext
|
||||
| where OrchestrationId startswith planid
|
||||
| project DefinitionName | take 1);
|
||||
//
|
||||
//
|
||||
// compute phase performance
|
||||
|
@ -25,7 +28,7 @@ OrchestrationLog
|
|||
isnotnull(ExecutionTimeThresholdOverrideInMicroseconds),
|
||||
ExecutionTimeThresholdOverrideInMicroseconds * 1microsecond,
|
||||
max_of(0s, ExecutionTimeThreshold * 1microsecond))
|
||||
| project OrchestrationId, Command, ExecutionTimeThreshold, StartTime, EndTime
|
||||
| project OrchestrationId, Command, ExecutionTimeThreshold, StartTime, EndTime, ScaleUnit, Region
|
||||
//
|
||||
// compute phase durations
|
||||
| order by OrchestrationId, EndTime asc, StartTime asc // cluster by orchestration id
|
||||
|
@ -52,9 +55,12 @@ OrchestrationLog
|
|||
| order by EndTime asc, StartTime asc
|
||||
| project PlanId = planid,
|
||||
OrchestrationId = strcat_array(array_slice(split(OrchestrationId, '.'), 1, 300), '.'),
|
||||
DefinitionName = definitionName,
|
||||
ScaleUnit,
|
||||
Region,
|
||||
PhaseName = Command,
|
||||
Actual=Duration,
|
||||
Expected=ExecutionTimeThreshold,
|
||||
// Actual=Duration,
|
||||
// Expected=ExecutionTimeThreshold,
|
||||
PercentDifference,
|
||||
OwningTeam = split(Command, ".")[0],
|
||||
Level = case(
|
||||
|
|
96
sla.ipynb
96
sla.ipynb
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Загрузка…
Ссылка в новой задаче