feat(ai): make patrol prompt stricter to reduce noise
Updated LLM prompt with explicit guidance on what NOT to report: - Small baseline deviations (7% vs 4% is normal variance) - Low utilization (under 50% CPU or 60% memory is fine) - Stopped containers that aren't autostart - 'Elevated' metrics still well under limits Severity guidelines made more specific: - CRITICAL: disk >95%, service down, data loss - WARNING: disk >85%, memory >90%, failures - WATCH: Only for trends projected to hit critical in <7 days - INFO: Context/observations Key message to LLM: 'Users prefer silence to noise' Only flag things that require operator action.
This commit is contained in:
parent
f7bb6d5446
commit
3c8d264283
1 changed files with 20 additions and 10 deletions
|
|
@ -1836,19 +1836,29 @@ EVIDENCE: <specific data that supports this finding>
|
||||||
|
|
||||||
Guidelines:
|
Guidelines:
|
||||||
- Use KEY as a stable identifier for the issue type (examples: high-cpu, high-memory, high-disk, backup-stale, backup-never, restart-loop, storage-high-usage, pbs-datastore-high-usage, pbs-job-failed, node-offline). Use "general" if nothing fits.
|
- Use KEY as a stable identifier for the issue type (examples: high-cpu, high-memory, high-disk, backup-stale, backup-never, restart-loop, storage-high-usage, pbs-datastore-high-usage, pbs-job-failed, node-offline). Use "general" if nothing fits.
|
||||||
- CRITICAL: Immediate action required (data loss risk, service down)
|
|
||||||
- WARNING: Should be addressed soon (degraded performance, nearing limits)
|
SEVERITY GUIDELINES (be conservative - fewer findings are better than noisy alerts):
|
||||||
- WATCH: Worth monitoring (trends, minor inefficiencies)
|
- CRITICAL: Immediate action required (data loss risk, service down, disk >95%)
|
||||||
- INFO: Informational observations
|
- WARNING: Should be addressed soon (disk >85%, memory >90%, consistent failures)
|
||||||
|
- WATCH: Only use for SIGNIFICANT trends that project to hit critical in <7 days
|
||||||
|
- INFO: Informational observations for context (stopped services, config notes)
|
||||||
|
|
||||||
|
IMPORTANT - DO NOT REPORT:
|
||||||
|
- Small baseline deviations (CPU at 7% vs typical 4% is NORMAL variance)
|
||||||
|
- Low absolute utilization (anything under 50% CPU or 60% memory is fine)
|
||||||
|
- Stopped containers UNLESS they should be running (check autostart)
|
||||||
|
- "Elevated" metrics that are still well under limits
|
||||||
|
|
||||||
|
Only flag something if an operator would actually need to take action.
|
||||||
|
|
||||||
Focus on:
|
Focus on:
|
||||||
1. Resource utilization patterns and anomalies
|
1. Capacity issues that will become critical soon (projected disk full, memory exhaustion)
|
||||||
2. Potential capacity issues before they become problems
|
2. Actual failures or errors (service crashes, backup failures)
|
||||||
3. Configuration issues or inefficiencies
|
3. Configuration problems (missing backups, insecure settings)
|
||||||
4. Correlation between resources (e.g., multiple VMs on an overloaded node)
|
4. Correlation between resources when it indicates a root cause
|
||||||
5. Missing best practices (no backups, no HA, etc.)
|
|
||||||
|
If everything looks healthy, respond with NO findings. Users prefer silence to noise.`
|
||||||
|
|
||||||
If everything looks healthy, you can say so briefly without any FINDING blocks.`
|
|
||||||
|
|
||||||
if autoFix {
|
if autoFix {
|
||||||
return basePrompt + `
|
return basePrompt + `
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue