update first - 84
This commit is contained in:
@@ -0,0 +1,86 @@
|
||||
version: 1.0
|
||||
description: AgentOps Alert Rules
|
||||
|
||||
alerts:
|
||||
|
||||
- id: ALERT-001
|
||||
name: High Latency
|
||||
condition: latency_ms > 5000
|
||||
severity: medium
|
||||
action:
|
||||
- log
|
||||
- notify
|
||||
|
||||
- id: ALERT-002
|
||||
name: High Retry
|
||||
condition: retry_count > 2
|
||||
severity: medium
|
||||
action:
|
||||
- log
|
||||
- notify
|
||||
|
||||
- id: ALERT-003
|
||||
name: Failure Detected
|
||||
condition: status == "failed"
|
||||
severity: high
|
||||
action:
|
||||
- log
|
||||
- notify
|
||||
- escalate
|
||||
|
||||
- id: ALERT-004
|
||||
name: High Cost Spike
|
||||
condition: cost_estimate > 0.05
|
||||
severity: medium
|
||||
action:
|
||||
- log
|
||||
|
||||
- id: ALERT-005
|
||||
name: Hallucination Risk
|
||||
condition: output contains ("maybe" or "might be incorrect")
|
||||
severity: low
|
||||
action:
|
||||
- log
|
||||
- flag
|
||||
|
||||
- id: ALERT-006
|
||||
name: Token Overuse
|
||||
condition: total_tokens > 5000
|
||||
severity: medium
|
||||
action:
|
||||
- log
|
||||
- notify
|
||||
|
||||
notification:
|
||||
|
||||
channels:
|
||||
|
||||
- type: log
|
||||
path: ".specify/agentops/alerts.log"
|
||||
|
||||
- type: console
|
||||
enabled: true
|
||||
|
||||
# future integration
|
||||
# - type: slack
|
||||
# webhook: "https://hooks.slack.com/..."
|
||||
|
||||
escalation:
|
||||
|
||||
enabled: true
|
||||
|
||||
rules:
|
||||
- severity: high
|
||||
action: immediate_alert
|
||||
|
||||
- severity: medium
|
||||
action: batched_alert
|
||||
|
||||
- severity: low
|
||||
action: log_only
|
||||
|
||||
level4_gate:
|
||||
alert_log_must_exist: true
|
||||
failed_step_must_emit_alert: true
|
||||
retry_threshold_must_emit_alert: true
|
||||
cost_spike_must_emit_alert: true
|
||||
Reference in New Issue
Block a user