feat(lab6): add observability and SLO burn-rate alerts

This commit is contained in:
2026-11-15 06:54:54 +03:00
parent 470d9d6f1e
commit 63c1f06b84
204 changed files with 25348 additions and 37 deletions
+19
View File
@@ -0,0 +1,19 @@
BEGIN;
DROP TABLE IF EXISTS attachment_job_events;
DROP INDEX IF EXISTS attachment_jobs_lease_idx;
DROP INDEX IF EXISTS attachment_jobs_dispatch_idx;
ALTER TABLE attachment_jobs
DROP CONSTRAINT IF EXISTS attachment_jobs_replay_count_nonnegative,
DROP CONSTRAINT IF EXISTS attachment_jobs_lease_consistency,
DROP COLUMN IF EXISTS replay_count,
DROP COLUMN IF EXISTS leased_by,
DROP COLUMN IF EXISTS lease_until,
DROP COLUMN IF EXISTS available_at;
CREATE INDEX attachment_jobs_dispatch_idx
ON attachment_jobs (created_at, job_id)
WHERE status = 'queued' AND published_at IS NULL;
COMMIT;