Repository Public
1# =============================================================================2# SP BOUCHER | SOFTWARE & RESEARCH3# ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING4# =============================================================================5#6# Project : SPIDER — Universal Web Intelligence Engine7# File : infra/observability/alerts.yml8# Module : Deployment9# Repository : https://git.spboucher.ai/spider10# Project Website : Not specified11# Created : 2026-12-0412# Last Modified : 2026-12-0413#14# Author : Simon-Pierre Boucher15# Position : Professor of Finance16# Institution : Université du Québec en Outaouais (UQO)17# Organization : SP Boucher18# Website : https://spboucher.ai19# Git : https://git.spboucher.ai20#21# Preferred Contact: contact@spboucher.ai22# Development : dev@spboucher.ai23# Support : support@spboucher.ai24# Security/Admin : admin@spboucher.ai25#26# Copyright (c) 202627# Simon-Pierre Boucher28# All rights reserved where applicable. This file is governed by the29# applicable project license, copyright notices and relevant law.30# Existing third-party rights and notices remain unaffected.31#32# License : ISC33#34# Do not embed credentials, private keys, access tokens,35# certificates or confidential personal information.36#37# =============================================================================38# END OF SP BOUCHER SOURCE HEADER39# =============================================================================4041# Alert rules matching the metrics exposed at /v1/metrics. Thresholds are starting points, to be set from benchmarks.42groups:43 - name: spider44 rules:45 - alert: SpiderNoActiveWorker46 expr: sum(spider_workers{state="active"}) == 047 for: 5m48 annotations: { summary: "No active SPIDER worker" }49 - alert: SpiderQueueLag50 expr: max(spider_queue_lag_seconds) > 90051 for: 10m52 annotations: { summary: "Oldest runnable task has waited more than 15 minutes" }53 - alert: SpiderDeadLetters54 expr: increase(spider_dead_letter_tasks[1h]) > 055 annotations: { summary: "Tasks were dead-lettered in the last hour" }56 - alert: SpiderLeaseExpiries57 expr: increase(spider_leases_expired_total[15m]) > 558 annotations: { summary: "Workers are losing leases" }59 - alert: SpiderStorageGrowth60 expr: predict_linear(spider_storage_bytes[6h], 7 * 86400) > 1.5e1261 annotations: { summary: "Blob store projected above 1.5 TB within 7 days" }62 - alert: SpiderErrorRate63 expr: sum(rate(spider_tasks_completed_total{outcome="failed"}[15m])) / sum(rate(spider_tasks_completed_total[15m])) > 0.364 for: 15m65 annotations: { summary: "More than 30 % of tasks fail" }66 - alert: SpiderHostsSuspended67 expr: spider_hosts_suspended > 068 annotations: { summary: "One or more sources are suspended after access denials" }69