|
| 1 | +groups: |
| 2 | + - name: decree.db |
| 3 | + rules: |
| 4 | + - alert: DecreeDBPoolExhaustion |
| 5 | + expr: db_pool_acquired_connections / db_pool_max_connections > 0.95 |
| 6 | + for: 2m |
| 7 | + labels: |
| 8 | + severity: critical |
| 9 | + annotations: |
| 10 | + summary: "DB pool near exhaustion" |
| 11 | + description: "DB {{ $labels.pool }} pool at {{ $value | humanizePercentage }} utilization" |
| 12 | + |
| 13 | + - alert: DecreeDBPoolHighUtilization |
| 14 | + expr: db_pool_acquired_connections / db_pool_max_connections > 0.80 |
| 15 | + for: 5m |
| 16 | + labels: |
| 17 | + severity: warning |
| 18 | + annotations: |
| 19 | + summary: "DB pool utilization high" |
| 20 | + description: "DB {{ $labels.pool }} pool at {{ $value | humanizePercentage }} utilization" |
| 21 | + |
| 22 | + - name: decree.cache |
| 23 | + rules: |
| 24 | + - alert: DecreeCacheMissRateHigh |
| 25 | + expr: > |
| 26 | + ( |
| 27 | + rate(config_cache_misses_total[5m]) |
| 28 | + / |
| 29 | + (rate(config_cache_hits_total[5m]) + rate(config_cache_misses_total[5m])) |
| 30 | + ) > 0.5 |
| 31 | + and |
| 32 | + (rate(config_cache_hits_total[5m]) + rate(config_cache_misses_total[5m])) > 0 |
| 33 | + for: 10m |
| 34 | + labels: |
| 35 | + severity: warning |
| 36 | + annotations: |
| 37 | + summary: "Config cache miss rate is high" |
| 38 | + description: "Cache miss rate is {{ $value | humanizePercentage }} over the last 5 minutes" |
| 39 | + |
| 40 | + - name: decree.reliability |
| 41 | + rules: |
| 42 | + - alert: DecreePubSubDropped |
| 43 | + expr: rate(pubsub_dropped_total[5m]) > 0 |
| 44 | + for: 5m |
| 45 | + labels: |
| 46 | + severity: warning |
| 47 | + annotations: |
| 48 | + summary: "Pub/sub events are being dropped" |
| 49 | + description: "Pub/sub events are being dropped — subscriber channel full" |
| 50 | + |
| 51 | + - alert: DecreeRateLimitRejectionHigh |
| 52 | + expr: rate(ratelimit_rejected_total[5m]) * 60 > 10 |
| 53 | + for: 5m |
| 54 | + labels: |
| 55 | + severity: warning |
| 56 | + annotations: |
| 57 | + summary: "Rate limit rejection rate is high" |
| 58 | + description: "Rate limiter is rejecting {{ $value | humanize }} requests/min" |
| 59 | + |
| 60 | + - alert: DecreeJWKSRefreshFailing |
| 61 | + expr: increase(auth_jwks_refresh_failures_total[10m]) > 0 |
| 62 | + for: 10m |
| 63 | + labels: |
| 64 | + severity: critical |
| 65 | + annotations: |
| 66 | + summary: "JWKS refresh is failing" |
| 67 | + description: "JWKS endpoint has not refreshed successfully in the last 10 minutes" |
| 68 | + |
| 69 | + - name: decree.validation |
| 70 | + rules: |
| 71 | + - alert: DecreeCELCostCapExceeded |
| 72 | + expr: rate(validation_cel_aggregate_cost_cap_exceeded_total[5m]) > 0 |
| 73 | + for: 5m |
| 74 | + labels: |
| 75 | + severity: warning |
| 76 | + annotations: |
| 77 | + summary: "CEL validation cost cap is being exceeded" |
| 78 | + description: "CEL aggregate cost cap is exceeded — validation rules may be too expensive" |
0 commit comments