Metric threshold rules for custom reports #34
No reviewers
Labels
No labels
breaking
bug
ci
dependencies
documentation
feature
security
skip-changelog
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
argus/backend!34
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/23-metric-thresholds"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #23
Part of the server monitoring plan (phase 2.2). Stacked on #33 (base
feat/29-stale-trigger).Changes
Trigger.METRIC_THRESHOLD("Seuil sur une métrique", default severity warning). Params validated by the rule API:key(required),operator(>,>=,<,<=, default>=),warnand/orfail(at least one).apps.events.thresholds: metric lookup bykey(falls back to the label), level computation, andapply().process_report(custom reports only): matching enabled rules raise each metric'sstatus, the report's status andsummary.statusto the worst of sender and rules — never lowered — before de-duplication and aggregation, so badges and aggregate status reflect it.disk_pct = 85% >= 80%; dropping back re-arms it (state inEventRuleState.last_status).apps/events/test_thresholds.py.Checks
pytest (219 passed), pylint 10/10, autopep8, bandit clean.
🤖 Generated with Claude Code
https://claude.ai/code/session_014BSmBtGWeFBD9z4mYm9SjA
📊 Rapports Argus pour cette PR