Alert catalogue
Generated by scripts/gen-alert-catalogue.mjs from alerting/warehouse-alert-rules.json, a copy of warehouse-infra terraform/alerting/warehouse-alert-rules.json at c0fcf81. Do not edit this page: change the rule generator in warehouse-infra (scripts/gen-context-dashboards.py), then run npm run gen-alert-catalogue -- --sync here.
The fleet provisions 257 alert rules in 84 rule groups (two per
bounded context: the coarse rules and the SLO burn-rate rules). warehouse-infra registers them in
terraform/alerting/warehouse-alert-rules.json, and its platform layer loads that file into the
prometheus-community/prometheus chart as serverFiles."alerting_rules.yml"
(terraform/10-platform/observability.tf) when that layer is applied. Registration and loading are
separate facts: read-only on 2026-11-13 the running prometheus-server ConfigMap (namespace
observability) carries no outbound-shipping rules even though the repo files register them —
they reach the cluster with the pending platform apply. This cluster runs the plain chart without the
Prometheus Operator, so there are no PrometheusRule objects: the rules are a
rule file. make alert-rules-check in warehouse-infra runs promtool check rules
and the unit tests in terraform/alerting/tests/ (warehouse-alert-rules.test.yml,
warehouse-slo-burn-rules.test.yml).
Alertmanager is on in the cluster (k3s, namespace observability), but its only receiver is null: it
groups, inhibits and shows alerts (/api/v2/alerts) and delivers nothing,
because a local cluster has no pager. A firing alert shows in Alertmanager, on
Prometheus' /alerts page, in the ALERTS series and in Grafana. Every rule
carries a severity (warning, or critical for the fast SLO burn alerts), a
context label, a runbook_url and a
dashboard_url annotation. See Fleet SLOs for the objectives these
alerts protect and the cross-context incident runbook
for what to do when one fires.
The rule file covers every context registered in warehouse-infra (terraform/apps.yaml), whether or
not the cluster runs it. A context that is registered but not applied (no pods, so no Kong route
traffic and no restart counter) has its rules in the file and silent until its pods exist.
That gap closed the same day: the platform apply of 2026-11-13 loaded the rules onto the
cluster (the live Prometheus alerting config and the Grafana dashboards ConfigMap both carry
outbound-shipping now), so its rules fire like every other running context.
Rule kinds
| Alert | For | Fires when | Contexts |
|---|---|---|---|
WarehouseKong5xxRatioHigh | 5m | more than 5% of the requests on one of the context's Kong routes (API, MCP or reports) answered 5xx over the last 5 minutes | 42 |
WarehouseOutboxLagHigh | 5m | the oldest unpublished outbox_events row is older than 60 s (the context's outbox-lag gauge) | 5 |
WarehousePodRestarting | 0m | a container of one of the context's pods restarted 2 or more times in 15 minutes (kube-state-metrics) | 42 |
WarehouseApiAvailabilityBurnFast | 2m | SLO 1 burn rate is 14.4 or more over 1 h and 5 m (5xx share of 14.4% or more): the day's budget is gone in about 100 minutes; critical | 42 |
WarehouseApiAvailabilityBurnSlow | 15m | SLO 1 burn rate is 3 or more over 6 h and 30 m (5xx share of 3% or more): the day's budget is gone in about 8 hours; warning | 42 |
WarehouseApiLatencyBurnFast | 2m | SLO 2 burn rate is 14.4 or more over 1 h and 5 m (more than 72% of requests slower than 400 ms upstream); critical | 42 |
WarehouseApiLatencyBurnSlow | 15m | SLO 2 burn rate is 3 or more over 6 h and 30 m (more than 15% of requests slower than 400 ms upstream); warning | 42 |
Why some signals have no rule (from the generator's own notes):
- Outbox lag has a rule only where the context exports an outbox-lag gauge.
No context exports an outbox dead-row (attempt-cap) metric: a row parked by
OUTBOX_MAX_ATTEMPTSshows up as an ERROR log line and in SQL only. - Consumer lag has no rule: no Kafka exporter runs in the cluster, so no
consumer-group lag metric exists. Check lag with
kafka-consumer-groups.sh(see the incident runbook). - 5xx comes from Kong only:
otelchirecords no status code onhttp.server.request.duration, so a request that never passes Kong (a pod-to-pod call) is not counted.
Per context
| Context | Kong 5xx ratio | Outbox lag | Pod restarts | Runbook | Grafana dashboard |
|---|---|---|---|---|---|
order-management | yes | order_outbox_lag_seconds | yes | order-management runbook (own site) | http://localhost:3000/d/warehouse-order-management |
inventory-storage | yes | no gauge | yes | inventory-storage runbook (own site) | http://localhost:3000/d/warehouse-inventory-storage |
wes-work-planning | yes | wes_outbox_lag_seconds | yes | wes-work-planning runbook (own site) | http://localhost:3000/d/warehouse-wes-work-planning |
fulfillment-execution | yes | no gauge | yes | fulfillment-execution runbook (own site) | http://localhost:3000/d/warehouse-fulfillment-execution |
workforce-management | yes | workforce_outbox_lag_seconds | yes | workforce-management runbook (own site) | http://localhost:3000/d/warehouse-workforce-management |
facility-layout | yes | no gauge | yes | facility-layout runbook (own site) | http://localhost:3000/d/warehouse-facility-layout |
labor-performance | yes | labor_performance_outbox_lag_seconds | yes | labor-performance runbook (own site) | http://localhost:3000/d/warehouse-labor-performance |
process-path-management | yes | process_path_management_outbox_lag_seconds | yes | process-path-management runbook (own site) | http://localhost:3000/d/warehouse-process-path-management |
warehouse-planning | yes | no gauge | yes | warehouse-planning runbook (own site) | http://localhost:3000/d/warehouse-warehouse-planning |
network-fulfillment | yes | no gauge | yes | network-fulfillment runbook (own site) | http://localhost:3000/d/warehouse-network-fulfillment |
network-inventory-planning | yes | no gauge | yes | network-inventory-planning runbook (own site) | http://localhost:3000/d/warehouse-network-inventory-planning |
customer-ordering | yes | no gauge | yes | customer-ordering runbook | http://localhost:3000/d/warehouse-customer-ordering |
pricing | yes | no gauge | yes | pricing runbook | http://localhost:3000/d/warehouse-pricing |
product-content | yes | no gauge | yes | product-content runbook | http://localhost:3000/d/warehouse-product-content |
product-discovery | yes | no gauge | yes | product-discovery runbook | http://localhost:3000/d/warehouse-product-discovery |
shopping-cart | yes | no gauge | yes | shopping-cart runbook | http://localhost:3000/d/warehouse-shopping-cart |
checkout | yes | no gauge | yes | checkout runbook | http://localhost:3000/d/warehouse-checkout |
customer-payments | yes | no gauge | yes | customer-payments runbook | http://localhost:3000/d/warehouse-customer-payments |
payment-provider-simulator | yes | no gauge | yes | payment-provider-simulator runbook | http://localhost:3000/d/warehouse-payment-provider-simulator |
storefront-bff | yes | no gauge | yes | storefront-bff runbook | http://localhost:3000/d/warehouse-storefront-bff |
storefront-web | yes | no gauge | yes | storefront-web runbook | http://localhost:3000/d/warehouse-storefront-web |
delivery-promise | yes | no gauge | yes | delivery-promise runbook | http://localhost:3000/d/warehouse-delivery-promise |
last-mile-delivery | yes | no gauge | yes | last-mile-delivery runbook | http://localhost:3000/d/warehouse-last-mile-delivery |
linehaul-transportation | yes | no gauge | yes | linehaul-transportation runbook | http://localhost:3000/d/warehouse-linehaul-transportation |
node-performance | yes | no gauge | yes | node-performance runbook | http://localhost:3000/d/warehouse-node-performance |
node-topology | yes | no gauge | yes | node-topology runbook | http://localhost:3000/d/warehouse-node-topology |
offer-availability | yes | no gauge | yes | offer-availability runbook | http://localhost:3000/d/warehouse-offer-availability |
order-sourcing | yes | no gauge | yes | order-sourcing runbook | http://localhost:3000/d/warehouse-order-sourcing |
shipping-and-tracking | yes | no gauge | yes | shipping-and-tracking runbook | http://localhost:3000/d/warehouse-shipping-and-tracking |
vendor-connectivity | yes | no gauge | yes | vendor-connectivity runbook | http://localhost:3000/d/warehouse-vendor-connectivity |
seller-inbound | yes | no gauge | yes | seller-inbound runbook | http://localhost:3000/d/warehouse-seller-inbound |
product-master | yes | no gauge | yes | product-master runbook (own site) | http://localhost:3000/d/warehouse-product-master |
inbound-receiving | yes | no gauge | yes | inbound-receiving runbook (own site) | http://localhost:3000/d/warehouse-inbound-receiving |
slotting-optimization | yes | no gauge | yes | slotting-optimization runbook (own site) | http://localhost:3000/d/warehouse-slotting-optimization |
pick-face-replenishment | yes | no gauge | yes | pick-face-replenishment runbook (own site) | http://localhost:3000/d/warehouse-pick-face-replenishment |
task-interleaving | yes | no gauge | yes | task-interleaving runbook (own site) | http://localhost:3000/d/warehouse-task-interleaving |
returns-processing | yes | no gauge | yes | returns-processing runbook (own site) | http://localhost:3000/d/warehouse-returns-processing |
exception-management | yes | no gauge | yes | exception-management runbook (own site) | http://localhost:3000/d/warehouse-exception-management |
dock-scheduling | yes | no gauge | yes | dock-scheduling runbook | http://localhost:3000/d/warehouse-dock-scheduling |
yard-management | yes | no gauge | yes | yard-management runbook | http://localhost:3000/d/warehouse-yard-management |
outbound-shipping | yes | no gauge | yes | outbound-shipping runbook (own site) | http://localhost:3000/d/warehouse-outbound-shipping |
warehouse-ops-agent | yes | no gauge | yes | warehouse-ops-agent runbook (own site) | http://localhost:3000/d/warehouse-warehouse-ops-agent |
Rules
order-management
Rule groups warehouse-order-management and warehouse-order-management-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Order Management: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]order-management(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]order-management(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehouseOutboxLagHigh (for 5m, severity warning): Order Management: the transactional outbox is not draining.
max by (service_name) (order_outbox_lag_seconds{service_name=~"order-management.*"}) > 60
Description annotation:
The oldest unpublished outbox_events row of {{ $labels.service_name }} is {{ $value | humanizeDuration }} old. Kafka is unreachable or a head row keeps failing until OUTBOX_MAX_ATTEMPTS parks it; downstream contexts stop seeing this context's events. The runbook has the re-arm SQL.
WarehousePodRestarting (for 0m, severity warning): Order Management: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"order-management-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Order Management: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]order-management(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]order-management(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]order-management(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]order-management(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]order-management(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Order Management: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]order-management(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]order-management(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]order-management(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]order-management(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]order-management(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Order Management: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]order-management(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]order-management(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]order-management(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]order-management(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]order-management(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Order Management: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]order-management(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]order-management(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]order-management(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]order-management(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]order-management(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
inventory-storage
Rule groups warehouse-inventory-storage and warehouse-inventory-storage-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Inventory & Storage: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]inventory-storage(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]inventory-storage(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Inventory & Storage: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"inventory-storage-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Inventory & Storage: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]inventory-storage(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]inventory-storage(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]inventory-storage(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]inventory-storage(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]inventory-storage(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Inventory & Storage: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]inventory-storage(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]inventory-storage(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]inventory-storage(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]inventory-storage(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]inventory-storage(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Inventory & Storage: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]inventory-storage(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]inventory-storage(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]inventory-storage(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]inventory-storage(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]inventory-storage(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Inventory & Storage: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]inventory-storage(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]inventory-storage(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]inventory-storage(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]inventory-storage(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]inventory-storage(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
wes-work-planning
Rule groups warehouse-wes-work-planning and warehouse-wes-work-planning-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): WES — Work Planning & Release: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]wes-work-planning(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]wes-work-planning(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehouseOutboxLagHigh (for 5m, severity warning): WES — Work Planning & Release: the transactional outbox is not draining.
max by (service_name) (wes_outbox_lag_seconds{service_name=~"wes-(work-planning|projector|reports).*"}) > 60
Description annotation:
The oldest unpublished outbox_events row of {{ $labels.service_name }} is {{ $value | humanizeDuration }} old. Kafka is unreachable or a head row keeps failing until OUTBOX_MAX_ATTEMPTS parks it; downstream contexts stop seeing this context's events. The runbook has the re-arm SQL.
WarehousePodRestarting (for 0m, severity warning): WES — Work Planning & Release: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"wes-work-planning-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): WES — Work Planning & Release: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]wes-work-planning(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]wes-work-planning(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]wes-work-planning(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]wes-work-planning(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]wes-work-planning(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): WES — Work Planning & Release: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]wes-work-planning(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]wes-work-planning(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]wes-work-planning(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]wes-work-planning(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]wes-work-planning(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): WES — Work Planning & Release: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]wes-work-planning(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]wes-work-planning(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]wes-work-planning(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]wes-work-planning(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]wes-work-planning(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): WES — Work Planning & Release: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]wes-work-planning(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]wes-work-planning(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]wes-work-planning(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]wes-work-planning(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]wes-work-planning(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
fulfillment-execution
Rule groups warehouse-fulfillment-execution and warehouse-fulfillment-execution-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Fulfillment Execution: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]fulfillment-execution(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]fulfillment-execution(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Fulfillment Execution: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"fulfillment-execution-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Fulfillment Execution: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]fulfillment-execution(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]fulfillment-execution(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]fulfillment-execution(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]fulfillment-execution(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]fulfillment-execution(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Fulfillment Execution: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]fulfillment-execution(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]fulfillment-execution(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]fulfillment-execution(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]fulfillment-execution(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]fulfillment-execution(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Fulfillment Execution: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]fulfillment-execution(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]fulfillment-execution(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]fulfillment-execution(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]fulfillment-execution(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]fulfillment-execution(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Fulfillment Execution: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]fulfillment-execution(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]fulfillment-execution(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]fulfillment-execution(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]fulfillment-execution(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]fulfillment-execution(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
workforce-management
Rule groups warehouse-workforce-management and warehouse-workforce-management-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Workforce Management: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]workforce-management(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]workforce-management(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehouseOutboxLagHigh (for 5m, severity warning): Workforce Management: the transactional outbox is not draining.
max by (service_name) (workforce_outbox_lag_seconds{service_name=~"workforce-(management|projector|reports).*"}) > 60
Description annotation:
The oldest unpublished outbox_events row of {{ $labels.service_name }} is {{ $value | humanizeDuration }} old. Kafka is unreachable or a head row keeps failing until OUTBOX_MAX_ATTEMPTS parks it; downstream contexts stop seeing this context's events. The runbook has the re-arm SQL.
WarehousePodRestarting (for 0m, severity warning): Workforce Management: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"workforce-management-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Workforce Management: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]workforce-management(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]workforce-management(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]workforce-management(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]workforce-management(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]workforce-management(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Workforce Management: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]workforce-management(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]workforce-management(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]workforce-management(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]workforce-management(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]workforce-management(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Workforce Management: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]workforce-management(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]workforce-management(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]workforce-management(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]workforce-management(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]workforce-management(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Workforce Management: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]workforce-management(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]workforce-management(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]workforce-management(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]workforce-management(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]workforce-management(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
facility-layout
Rule groups warehouse-facility-layout and warehouse-facility-layout-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Facility Layout: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]facility-layout(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]facility-layout(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Facility Layout: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"facility-layout-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Facility Layout: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]facility-layout(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]facility-layout(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]facility-layout(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]facility-layout(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]facility-layout(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Facility Layout: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]facility-layout(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]facility-layout(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]facility-layout(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]facility-layout(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]facility-layout(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Facility Layout: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]facility-layout(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]facility-layout(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]facility-layout(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]facility-layout(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]facility-layout(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Facility Layout: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]facility-layout(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]facility-layout(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]facility-layout(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]facility-layout(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]facility-layout(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
labor-performance
Rule groups warehouse-labor-performance and warehouse-labor-performance-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Labor Performance: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]labor-performance(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]labor-performance(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehouseOutboxLagHigh (for 5m, severity warning): Labor Performance: the transactional outbox is not draining.
max by (service_name) (labor_performance_outbox_lag_seconds{service_name=~"labor-performance.*"}) > 60
Description annotation:
The oldest unpublished outbox_events row of {{ $labels.service_name }} is {{ $value | humanizeDuration }} old. Kafka is unreachable or a head row keeps failing until OUTBOX_MAX_ATTEMPTS parks it; downstream contexts stop seeing this context's events. The runbook has the re-arm SQL.
WarehousePodRestarting (for 0m, severity warning): Labor Performance: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"labor-performance-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Labor Performance: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]labor-performance(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]labor-performance(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]labor-performance(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]labor-performance(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]labor-performance(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Labor Performance: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]labor-performance(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]labor-performance(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]labor-performance(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]labor-performance(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]labor-performance(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Labor Performance: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]labor-performance(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]labor-performance(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]labor-performance(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]labor-performance(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]labor-performance(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Labor Performance: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]labor-performance(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]labor-performance(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]labor-performance(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]labor-performance(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]labor-performance(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
process-path-management
Rule groups warehouse-process-path-management and warehouse-process-path-management-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Process Path Management: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]process-path-management(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]process-path-management(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehouseOutboxLagHigh (for 5m, severity warning): Process Path Management: the transactional outbox is not draining.
max by (service_name) (process_path_management_outbox_lag_seconds{service_name=~"process-path-management.*"}) > 60
Description annotation:
The oldest unpublished outbox_events row of {{ $labels.service_name }} is {{ $value | humanizeDuration }} old. Kafka is unreachable or a head row keeps failing until OUTBOX_MAX_ATTEMPTS parks it; downstream contexts stop seeing this context's events. The runbook has the re-arm SQL.
WarehousePodRestarting (for 0m, severity warning): Process Path Management: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"process-path-management-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Process Path Management: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]process-path-management(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]process-path-management(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]process-path-management(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]process-path-management(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]process-path-management(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Process Path Management: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]process-path-management(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]process-path-management(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]process-path-management(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]process-path-management(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]process-path-management(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Process Path Management: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]process-path-management(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]process-path-management(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]process-path-management(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]process-path-management(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]process-path-management(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Process Path Management: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]process-path-management(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]process-path-management(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]process-path-management(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]process-path-management(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]process-path-management(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
warehouse-planning
Rule groups warehouse-warehouse-planning and warehouse-warehouse-planning-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Warehouse Planning: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]warehouse-planning(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]warehouse-planning(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Warehouse Planning: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"warehouse-planning-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Warehouse Planning: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]warehouse-planning(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]warehouse-planning(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]warehouse-planning(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]warehouse-planning(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]warehouse-planning(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Warehouse Planning: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]warehouse-planning(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]warehouse-planning(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]warehouse-planning(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]warehouse-planning(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]warehouse-planning(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Warehouse Planning: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]warehouse-planning(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]warehouse-planning(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]warehouse-planning(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]warehouse-planning(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]warehouse-planning(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Warehouse Planning: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]warehouse-planning(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]warehouse-planning(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]warehouse-planning(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]warehouse-planning(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]warehouse-planning(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
network-fulfillment
Rule groups warehouse-network-fulfillment and warehouse-network-fulfillment-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Network Fulfillment: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]network-fulfillment(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]network-fulfillment(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Network Fulfillment: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"network-fulfillment-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Network Fulfillment: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]network-fulfillment(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]network-fulfillment(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]network-fulfillment(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]network-fulfillment(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]network-fulfillment(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Network Fulfillment: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]network-fulfillment(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]network-fulfillment(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]network-fulfillment(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]network-fulfillment(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]network-fulfillment(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Network Fulfillment: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]network-fulfillment(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]network-fulfillment(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]network-fulfillment(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]network-fulfillment(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]network-fulfillment(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Network Fulfillment: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]network-fulfillment(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]network-fulfillment(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]network-fulfillment(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]network-fulfillment(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]network-fulfillment(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
network-inventory-planning
Rule groups warehouse-network-inventory-planning and warehouse-network-inventory-planning-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Network Inventory Planning: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]network-inventory-planning(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]network-inventory-planning(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Network Inventory Planning: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"network-inventory-planning-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Network Inventory Planning: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]network-inventory-planning(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]network-inventory-planning(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]network-inventory-planning(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]network-inventory-planning(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]network-inventory-planning(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Network Inventory Planning: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]network-inventory-planning(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]network-inventory-planning(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]network-inventory-planning(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]network-inventory-planning(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]network-inventory-planning(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Network Inventory Planning: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]network-inventory-planning(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]network-inventory-planning(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]network-inventory-planning(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]network-inventory-planning(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]network-inventory-planning(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Network Inventory Planning: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]network-inventory-planning(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]network-inventory-planning(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]network-inventory-planning(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]network-inventory-planning(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]network-inventory-planning(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
customer-ordering
Rule groups warehouse-customer-ordering and warehouse-customer-ordering-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Customer Ordering: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]customer-ordering(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]customer-ordering(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Customer Ordering: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"customer-ordering-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Customer Ordering: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]customer-ordering(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]customer-ordering(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]customer-ordering(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]customer-ordering(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]customer-ordering(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Customer Ordering: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]customer-ordering(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]customer-ordering(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]customer-ordering(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]customer-ordering(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]customer-ordering(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Customer Ordering: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]customer-ordering(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]customer-ordering(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]customer-ordering(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]customer-ordering(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]customer-ordering(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Customer Ordering: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]customer-ordering(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]customer-ordering(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]customer-ordering(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]customer-ordering(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]customer-ordering(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
pricing
Rule groups warehouse-pricing and warehouse-pricing-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Pricing: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]pricing(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]pricing(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Pricing: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"pricing-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Pricing: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]pricing(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]pricing(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]pricing(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]pricing(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]pricing(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Pricing: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]pricing(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]pricing(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]pricing(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]pricing(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]pricing(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Pricing: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]pricing(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]pricing(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]pricing(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]pricing(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]pricing(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Pricing: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]pricing(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]pricing(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]pricing(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]pricing(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]pricing(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
product-content
Rule groups warehouse-product-content and warehouse-product-content-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Product Content: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-content(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-content(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Product Content: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"product-content-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Product Content: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-content(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-content(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-content(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-content(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-content(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Product Content: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]product-content(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]product-content(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]product-content(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]product-content(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]product-content(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Product Content: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-content(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-content(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-content(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-content(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-content(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Product Content: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]product-content(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]product-content(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]product-content(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]product-content(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]product-content(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
product-discovery
Rule groups warehouse-product-discovery and warehouse-product-discovery-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Product Discovery: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-discovery(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-discovery(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Product Discovery: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"product-discovery-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Product Discovery: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-discovery(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-discovery(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-discovery(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-discovery(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-discovery(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Product Discovery: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]product-discovery(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]product-discovery(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]product-discovery(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]product-discovery(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]product-discovery(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Product Discovery: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-discovery(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-discovery(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-discovery(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-discovery(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-discovery(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Product Discovery: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]product-discovery(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]product-discovery(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]product-discovery(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]product-discovery(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]product-discovery(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
shopping-cart
Rule groups warehouse-shopping-cart and warehouse-shopping-cart-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Shopping Cart: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]shopping-cart(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]shopping-cart(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Shopping Cart: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"shopping-cart-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Shopping Cart: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]shopping-cart(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]shopping-cart(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]shopping-cart(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]shopping-cart(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]shopping-cart(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Shopping Cart: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]shopping-cart(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]shopping-cart(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]shopping-cart(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]shopping-cart(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]shopping-cart(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Shopping Cart: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]shopping-cart(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]shopping-cart(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]shopping-cart(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]shopping-cart(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]shopping-cart(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Shopping Cart: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]shopping-cart(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]shopping-cart(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]shopping-cart(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]shopping-cart(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]shopping-cart(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
checkout
Rule groups warehouse-checkout and warehouse-checkout-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Checkout: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]checkout(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]checkout(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Checkout: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"checkout-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Checkout: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]checkout(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]checkout(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]checkout(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]checkout(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]checkout(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Checkout: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]checkout(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]checkout(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]checkout(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]checkout(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]checkout(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Checkout: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]checkout(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]checkout(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]checkout(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]checkout(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]checkout(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Checkout: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]checkout(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]checkout(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]checkout(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]checkout(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]checkout(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
customer-payments
Rule groups warehouse-customer-payments and warehouse-customer-payments-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Customer Payments: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]customer-payments(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]customer-payments(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Customer Payments: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"customer-payments-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Customer Payments: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]customer-payments(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]customer-payments(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]customer-payments(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]customer-payments(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]customer-payments(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Customer Payments: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]customer-payments(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]customer-payments(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]customer-payments(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]customer-payments(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]customer-payments(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Customer Payments: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]customer-payments(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]customer-payments(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]customer-payments(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]customer-payments(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]customer-payments(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Customer Payments: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]customer-payments(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]customer-payments(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]customer-payments(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]customer-payments(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]customer-payments(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
payment-provider-simulator
Rule groups warehouse-payment-provider-simulator and warehouse-payment-provider-simulator-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Payment Provider Simulator: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]payment-provider-simulator(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]payment-provider-simulator(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Payment Provider Simulator: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"payment-provider-simulator-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Payment Provider Simulator: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]payment-provider-simulator(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]payment-provider-simulator(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]payment-provider-simulator(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]payment-provider-simulator(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]payment-provider-simulator(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Payment Provider Simulator: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]payment-provider-simulator(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]payment-provider-simulator(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]payment-provider-simulator(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]payment-provider-simulator(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]payment-provider-simulator(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Payment Provider Simulator: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]payment-provider-simulator(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]payment-provider-simulator(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]payment-provider-simulator(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]payment-provider-simulator(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]payment-provider-simulator(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Payment Provider Simulator: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]payment-provider-simulator(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]payment-provider-simulator(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]payment-provider-simulator(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]payment-provider-simulator(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]payment-provider-simulator(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
storefront-bff
Rule groups warehouse-storefront-bff and warehouse-storefront-bff-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Storefront BFF: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]storefront-bff(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]storefront-bff(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Storefront BFF: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"storefront-bff-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Storefront BFF: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]storefront-bff(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]storefront-bff(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]storefront-bff(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]storefront-bff(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]storefront-bff(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Storefront BFF: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]storefront-bff(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]storefront-bff(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]storefront-bff(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]storefront-bff(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]storefront-bff(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Storefront BFF: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]storefront-bff(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]storefront-bff(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]storefront-bff(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]storefront-bff(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]storefront-bff(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Storefront BFF: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]storefront-bff(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]storefront-bff(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]storefront-bff(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]storefront-bff(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]storefront-bff(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
storefront-web
Rule groups warehouse-storefront-web and warehouse-storefront-web-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Storefront Web: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]storefront-web(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]storefront-web(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Storefront Web: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"storefront-web-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Storefront Web: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]storefront-web(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]storefront-web(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]storefront-web(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]storefront-web(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]storefront-web(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Storefront Web: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]storefront-web(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]storefront-web(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]storefront-web(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]storefront-web(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]storefront-web(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Storefront Web: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]storefront-web(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]storefront-web(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]storefront-web(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]storefront-web(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]storefront-web(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Storefront Web: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]storefront-web(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]storefront-web(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]storefront-web(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]storefront-web(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]storefront-web(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
delivery-promise
Rule groups warehouse-delivery-promise and warehouse-delivery-promise-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Delivery Promise: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]delivery-promise(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]delivery-promise(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Delivery Promise: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"delivery-promise-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Delivery Promise: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]delivery-promise(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]delivery-promise(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]delivery-promise(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]delivery-promise(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]delivery-promise(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Delivery Promise: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]delivery-promise(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]delivery-promise(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]delivery-promise(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]delivery-promise(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]delivery-promise(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Delivery Promise: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]delivery-promise(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]delivery-promise(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]delivery-promise(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]delivery-promise(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]delivery-promise(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Delivery Promise: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]delivery-promise(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]delivery-promise(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]delivery-promise(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]delivery-promise(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]delivery-promise(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
last-mile-delivery
Rule groups warehouse-last-mile-delivery and warehouse-last-mile-delivery-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Last-Mile Delivery: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]last-mile-delivery(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]last-mile-delivery(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Last-Mile Delivery: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"last-mile-delivery-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Last-Mile Delivery: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]last-mile-delivery(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]last-mile-delivery(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]last-mile-delivery(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]last-mile-delivery(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]last-mile-delivery(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Last-Mile Delivery: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]last-mile-delivery(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]last-mile-delivery(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]last-mile-delivery(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]last-mile-delivery(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]last-mile-delivery(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Last-Mile Delivery: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]last-mile-delivery(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]last-mile-delivery(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]last-mile-delivery(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]last-mile-delivery(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]last-mile-delivery(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Last-Mile Delivery: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]last-mile-delivery(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]last-mile-delivery(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]last-mile-delivery(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]last-mile-delivery(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]last-mile-delivery(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
linehaul-transportation
Rule groups warehouse-linehaul-transportation and warehouse-linehaul-transportation-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Linehaul Transportation: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]linehaul-transportation(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]linehaul-transportation(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Linehaul Transportation: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"linehaul-transportation-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Linehaul Transportation: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]linehaul-transportation(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]linehaul-transportation(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]linehaul-transportation(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]linehaul-transportation(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]linehaul-transportation(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Linehaul Transportation: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]linehaul-transportation(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]linehaul-transportation(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]linehaul-transportation(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]linehaul-transportation(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]linehaul-transportation(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Linehaul Transportation: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]linehaul-transportation(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]linehaul-transportation(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]linehaul-transportation(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]linehaul-transportation(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]linehaul-transportation(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Linehaul Transportation: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]linehaul-transportation(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]linehaul-transportation(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]linehaul-transportation(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]linehaul-transportation(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]linehaul-transportation(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
node-performance
Rule groups warehouse-node-performance and warehouse-node-performance-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Node Performance: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]node-performance(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]node-performance(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Node Performance: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"node-performance-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Node Performance: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]node-performance(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]node-performance(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]node-performance(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]node-performance(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]node-performance(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Node Performance: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]node-performance(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]node-performance(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]node-performance(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]node-performance(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]node-performance(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Node Performance: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]node-performance(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]node-performance(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]node-performance(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]node-performance(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]node-performance(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Node Performance: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]node-performance(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]node-performance(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]node-performance(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]node-performance(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]node-performance(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
node-topology
Rule groups warehouse-node-topology and warehouse-node-topology-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Node Topology: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]node-topology(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]node-topology(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Node Topology: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"node-topology-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Node Topology: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]node-topology(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]node-topology(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]node-topology(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]node-topology(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]node-topology(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Node Topology: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]node-topology(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]node-topology(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]node-topology(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]node-topology(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]node-topology(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Node Topology: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]node-topology(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]node-topology(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]node-topology(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]node-topology(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]node-topology(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Node Topology: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]node-topology(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]node-topology(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]node-topology(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]node-topology(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]node-topology(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
offer-availability
Rule groups warehouse-offer-availability and warehouse-offer-availability-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Offer & Availability: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]offer-availability(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]offer-availability(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Offer & Availability: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"offer-availability-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Offer & Availability: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]offer-availability(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]offer-availability(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]offer-availability(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]offer-availability(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]offer-availability(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Offer & Availability: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]offer-availability(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]offer-availability(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]offer-availability(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]offer-availability(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]offer-availability(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Offer & Availability: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]offer-availability(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]offer-availability(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]offer-availability(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]offer-availability(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]offer-availability(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Offer & Availability: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]offer-availability(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]offer-availability(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]offer-availability(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]offer-availability(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]offer-availability(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
order-sourcing
Rule groups warehouse-order-sourcing and warehouse-order-sourcing-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Order Sourcing: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]order-sourcing(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]order-sourcing(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Order Sourcing: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"order-sourcing-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Order Sourcing: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]order-sourcing(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]order-sourcing(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]order-sourcing(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]order-sourcing(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]order-sourcing(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Order Sourcing: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]order-sourcing(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]order-sourcing(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]order-sourcing(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]order-sourcing(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]order-sourcing(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Order Sourcing: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]order-sourcing(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]order-sourcing(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]order-sourcing(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]order-sourcing(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]order-sourcing(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Order Sourcing: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]order-sourcing(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]order-sourcing(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]order-sourcing(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]order-sourcing(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]order-sourcing(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
shipping-and-tracking
Rule groups warehouse-shipping-and-tracking and warehouse-shipping-and-tracking-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Shipping & Tracking: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]shipping-and-tracking(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]shipping-and-tracking(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Shipping & Tracking: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"shipping-and-tracking-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Shipping & Tracking: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]shipping-and-tracking(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]shipping-and-tracking(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]shipping-and-tracking(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]shipping-and-tracking(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]shipping-and-tracking(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Shipping & Tracking: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]shipping-and-tracking(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]shipping-and-tracking(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]shipping-and-tracking(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]shipping-and-tracking(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]shipping-and-tracking(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Shipping & Tracking: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]shipping-and-tracking(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]shipping-and-tracking(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]shipping-and-tracking(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]shipping-and-tracking(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]shipping-and-tracking(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Shipping & Tracking: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]shipping-and-tracking(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]shipping-and-tracking(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]shipping-and-tracking(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]shipping-and-tracking(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]shipping-and-tracking(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
vendor-connectivity
Rule groups warehouse-vendor-connectivity and warehouse-vendor-connectivity-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Vendor Connectivity: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]vendor-connectivity(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]vendor-connectivity(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Vendor Connectivity: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"vendor-connectivity-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Vendor Connectivity: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]vendor-connectivity(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]vendor-connectivity(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]vendor-connectivity(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]vendor-connectivity(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]vendor-connectivity(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Vendor Connectivity: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]vendor-connectivity(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]vendor-connectivity(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]vendor-connectivity(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]vendor-connectivity(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]vendor-connectivity(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Vendor Connectivity: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]vendor-connectivity(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]vendor-connectivity(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]vendor-connectivity(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]vendor-connectivity(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]vendor-connectivity(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Vendor Connectivity: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]vendor-connectivity(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]vendor-connectivity(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]vendor-connectivity(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]vendor-connectivity(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]vendor-connectivity(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
seller-inbound
Rule groups warehouse-seller-inbound and warehouse-seller-inbound-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Seller Inbound: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]seller-inbound(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]seller-inbound(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Seller Inbound: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"seller-inbound-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Seller Inbound: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]seller-inbound(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]seller-inbound(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]seller-inbound(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]seller-inbound(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]seller-inbound(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Seller Inbound: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]seller-inbound(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]seller-inbound(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]seller-inbound(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]seller-inbound(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]seller-inbound(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Seller Inbound: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]seller-inbound(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]seller-inbound(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]seller-inbound(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]seller-inbound(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]seller-inbound(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Seller Inbound: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]seller-inbound(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]seller-inbound(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]seller-inbound(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]seller-inbound(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]seller-inbound(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
product-master
Rule groups warehouse-product-master and warehouse-product-master-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Product Master: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-master(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-master(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Product Master: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"product-master-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Product Master: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-master(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-master(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-master(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-master(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-master(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Product Master: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]product-master(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]product-master(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]product-master(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]product-master(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]product-master(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Product Master: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-master(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-master(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-master(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-master(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]product-master(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Product Master: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]product-master(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]product-master(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]product-master(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]product-master(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]product-master(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
inbound-receiving
Rule groups warehouse-inbound-receiving and warehouse-inbound-receiving-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Inbound Receiving: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]inbound-receiving(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]inbound-receiving(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Inbound Receiving: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"inbound-receiving-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Inbound Receiving: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]inbound-receiving(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]inbound-receiving(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]inbound-receiving(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]inbound-receiving(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]inbound-receiving(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Inbound Receiving: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]inbound-receiving(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]inbound-receiving(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]inbound-receiving(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]inbound-receiving(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]inbound-receiving(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Inbound Receiving: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]inbound-receiving(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]inbound-receiving(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]inbound-receiving(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]inbound-receiving(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]inbound-receiving(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Inbound Receiving: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]inbound-receiving(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]inbound-receiving(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]inbound-receiving(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]inbound-receiving(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]inbound-receiving(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
slotting-optimization
Rule groups warehouse-slotting-optimization and warehouse-slotting-optimization-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Slotting Optimization: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]slotting-optimization(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]slotting-optimization(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Slotting Optimization: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"slotting-optimization-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Slotting Optimization: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]slotting-optimization(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]slotting-optimization(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]slotting-optimization(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]slotting-optimization(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]slotting-optimization(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Slotting Optimization: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]slotting-optimization(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]slotting-optimization(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]slotting-optimization(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]slotting-optimization(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]slotting-optimization(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Slotting Optimization: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]slotting-optimization(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]slotting-optimization(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]slotting-optimization(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]slotting-optimization(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]slotting-optimization(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Slotting Optimization: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]slotting-optimization(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]slotting-optimization(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]slotting-optimization(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]slotting-optimization(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]slotting-optimization(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
pick-face-replenishment
Rule groups warehouse-pick-face-replenishment and warehouse-pick-face-replenishment-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Pick-Face Replenishment: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]pick-face-replenishment(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]pick-face-replenishment(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Pick-Face Replenishment: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"pick-face-replenishment-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Pick-Face Replenishment: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]pick-face-replenishment(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]pick-face-replenishment(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]pick-face-replenishment(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]pick-face-replenishment(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]pick-face-replenishment(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Pick-Face Replenishment: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]pick-face-replenishment(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]pick-face-replenishment(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]pick-face-replenishment(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]pick-face-replenishment(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]pick-face-replenishment(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Pick-Face Replenishment: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]pick-face-replenishment(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]pick-face-replenishment(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]pick-face-replenishment(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]pick-face-replenishment(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]pick-face-replenishment(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Pick-Face Replenishment: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]pick-face-replenishment(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]pick-face-replenishment(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]pick-face-replenishment(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]pick-face-replenishment(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]pick-face-replenishment(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
task-interleaving
Rule groups warehouse-task-interleaving and warehouse-task-interleaving-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Task Interleaving: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]task-interleaving(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]task-interleaving(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Task Interleaving: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"task-interleaving-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Task Interleaving: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]task-interleaving(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]task-interleaving(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]task-interleaving(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]task-interleaving(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]task-interleaving(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Task Interleaving: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]task-interleaving(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]task-interleaving(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]task-interleaving(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]task-interleaving(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]task-interleaving(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Task Interleaving: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]task-interleaving(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]task-interleaving(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]task-interleaving(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]task-interleaving(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]task-interleaving(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Task Interleaving: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]task-interleaving(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]task-interleaving(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]task-interleaving(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]task-interleaving(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]task-interleaving(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
returns-processing
Rule groups warehouse-returns-processing and warehouse-returns-processing-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Returns Processing: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]returns-processing(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]returns-processing(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Returns Processing: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"returns-processing-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Returns Processing: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]returns-processing(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]returns-processing(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]returns-processing(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]returns-processing(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]returns-processing(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Returns Processing: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]returns-processing(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]returns-processing(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]returns-processing(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]returns-processing(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]returns-processing(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Returns Processing: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]returns-processing(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]returns-processing(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]returns-processing(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]returns-processing(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]returns-processing(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Returns Processing: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]returns-processing(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]returns-processing(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]returns-processing(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]returns-processing(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]returns-processing(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
exception-management
Rule groups warehouse-exception-management and warehouse-exception-management-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Exception Management: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]exception-management(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]exception-management(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Exception Management: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"exception-management-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Exception Management: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]exception-management(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]exception-management(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]exception-management(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]exception-management(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]exception-management(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Exception Management: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]exception-management(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]exception-management(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]exception-management(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]exception-management(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]exception-management(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Exception Management: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]exception-management(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]exception-management(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]exception-management(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]exception-management(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]exception-management(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Exception Management: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]exception-management(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]exception-management(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]exception-management(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]exception-management(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]exception-management(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
dock-scheduling
Rule groups warehouse-dock-scheduling and warehouse-dock-scheduling-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Dock Scheduling: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]dock-scheduling(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]dock-scheduling(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Dock Scheduling: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"dock-scheduling-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Dock Scheduling: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]dock-scheduling(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]dock-scheduling(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]dock-scheduling(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]dock-scheduling(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]dock-scheduling(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Dock Scheduling: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]dock-scheduling(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]dock-scheduling(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]dock-scheduling(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]dock-scheduling(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]dock-scheduling(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Dock Scheduling: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]dock-scheduling(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]dock-scheduling(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]dock-scheduling(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]dock-scheduling(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]dock-scheduling(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Dock Scheduling: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]dock-scheduling(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]dock-scheduling(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]dock-scheduling(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]dock-scheduling(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]dock-scheduling(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
yard-management
Rule groups warehouse-yard-management and warehouse-yard-management-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Yard Management: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]yard-management(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]yard-management(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Yard Management: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"yard-management-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Yard Management: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]yard-management(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]yard-management(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]yard-management(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]yard-management(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]yard-management(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Yard Management: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]yard-management(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]yard-management(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]yard-management(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]yard-management(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]yard-management(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Yard Management: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]yard-management(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]yard-management(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]yard-management(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]yard-management(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]yard-management(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Yard Management: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]yard-management(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]yard-management(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]yard-management(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]yard-management(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]yard-management(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
outbound-shipping
Rule groups warehouse-outbound-shipping and warehouse-outbound-shipping-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Outbound Shipping: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]outbound-shipping(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]outbound-shipping(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Outbound Shipping: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"outbound-shipping-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Outbound Shipping: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]outbound-shipping(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]outbound-shipping(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]outbound-shipping(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]outbound-shipping(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]outbound-shipping(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Outbound Shipping: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]outbound-shipping(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]outbound-shipping(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]outbound-shipping(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]outbound-shipping(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]outbound-shipping(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Outbound Shipping: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]outbound-shipping(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]outbound-shipping(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]outbound-shipping(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]outbound-shipping(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]outbound-shipping(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Outbound Shipping: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]outbound-shipping(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]outbound-shipping(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]outbound-shipping(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]outbound-shipping(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]outbound-shipping(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.
warehouse-ops-agent
Rule groups warehouse-warehouse-ops-agent and warehouse-warehouse-ops-agent-slo.
WarehouseKong5xxRatioHigh (for 5m, severity warning): Warehouse Ops Agent: more than 5% of requests on a Kong route answer 5xx.
sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]warehouse-ops-agent(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]warehouse-ops-agent(-mcp|-reports)?[.][0-9]+"}[5m])) > 0.05
Description annotation:
Kong route {{ $labels.service }} answered 5xx for {{ $value | humanizePercentage }} of its requests over the last 5 minutes (API route = <context>.N, MCP = <context>-mcp.N, reports = <context>-reports.N).
WarehousePodRestarting (for 0m, severity warning): Warehouse Ops Agent: a container is restarting.
sum by (pod, container) (increase(kube_pod_container_status_restarts_total{namespace="warehouse-systems", pod=~"warehouse-ops-agent-.+"}[15m])) >= 2
Description annotation:
{{ $labels.pod }}/{{ $labels.container }} restarted {{ $value | humanize }} times in 15 minutes (boot-retry exhaustion, a failed migration, a stopped consumer that exits on purpose, or an OOM kill). Read the previous container's last log lines first.
WarehouseApiAvailabilityBurnFast (for 2m, severity critical): Warehouse Ops Agent: API availability SLO burning fast (day's budget gone in ~100 minutes).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]warehouse-ops-agent(-mcp|-reports)?[.][0-9]+", code=~"5.."}[1h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]warehouse-ops-agent(-mcp|-reports)?[.][0-9]+"}[1h])) / 0.01 >= 14.4) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]warehouse-ops-agent(-mcp|-reports)?[.][0-9]+", code=~"5.."}[5m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]warehouse-ops-agent(-mcp|-reports)?[.][0-9]+"}[5m])) / 0.01 >= 14.4) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]warehouse-ops-agent(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last hour and over the last 5 minutes (5xx ratio of 14.4% or more). At this burn the whole day's error budget is gone in about 100 minutes. The alert needs at least 30 requests in the last hour, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnFast (for 2m, severity critical): Warehouse Ops Agent: API latency SLO burning fast (day's budget gone in ~100 minutes).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]warehouse-ops-agent(-mcp|-reports)?[.][0-9]+", le="400.0"}[1h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]warehouse-ops-agent(-mcp|-reports)?[.][0-9]+"}[1h]))) / 0.05 >= 14.4) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]warehouse-ops-agent(-mcp|-reports)?[.][0-9]+", le="400.0"}[5m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]warehouse-ops-agent(-mcp|-reports)?[.][0-9]+"}[5m]))) / 0.05 >= 14.4) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]warehouse-ops-agent(-mcp|-reports)?[.][0-9]+"}[1h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last hour and over the last 5 minutes (slow ratio of 72% or more). At this burn the whole day's error budget is gone in about 100 minutes. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last hour, so one slow request on an idle local route cannot fire it.
WarehouseApiAvailabilityBurnSlow (for 15m, severity warning): Warehouse Ops Agent: API availability SLO burning slowly (day's budget gone in ~8 hours).
(sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]warehouse-ops-agent(-mcp|-reports)?[.][0-9]+", code=~"5.."}[6h])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]warehouse-ops-agent(-mcp|-reports)?[.][0-9]+"}[6h])) / 0.01 >= 3) and (sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]warehouse-ops-agent(-mcp|-reports)?[.][0-9]+", code=~"5.."}[30m])) / sum by (service) (rate(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]warehouse-ops-agent(-mcp|-reports)?[.][0-9]+"}[30m])) / 0.01 >= 3) and sum by (service) (increase(kong_http_requests_total{service=~"httproute[.]warehouse-systems[.]warehouse-ops-agent(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} answers 5xx at {{ $value | humanize }}x the rate the one-day 99% availability SLO allows, over the last 6 hours and over the last 30 minutes (5xx ratio of 3% or more). At this burn the whole day's error budget is gone in about 8 hours. The alert needs at least 30 requests in the last 6 hours, so one failed request on an idle local route cannot fire it.
WarehouseApiLatencyBurnSlow (for 15m, severity warning): Warehouse Ops Agent: API latency SLO burning slowly (day's budget gone in ~8 hours).
((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]warehouse-ops-agent(-mcp|-reports)?[.][0-9]+", le="400.0"}[6h])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]warehouse-ops-agent(-mcp|-reports)?[.][0-9]+"}[6h]))) / 0.05 >= 3) and ((1 - sum by (service) (rate(kong_upstream_latency_ms_bucket{service=~"httproute[.]warehouse-systems[.]warehouse-ops-agent(-mcp|-reports)?[.][0-9]+", le="400.0"}[30m])) / sum by (service) (rate(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]warehouse-ops-agent(-mcp|-reports)?[.][0-9]+"}[30m]))) / 0.05 >= 3) and sum by (service) (increase(kong_upstream_latency_ms_count{service=~"httproute[.]warehouse-systems[.]warehouse-ops-agent(-mcp|-reports)?[.][0-9]+"}[6h])) >= 30
Description annotation:
Kong route {{ $labels.service }} is missing the 500 ms upstream latency target at {{ $value | humanize }}x the rate the one-day 95% latency SLO allows, over the last 6 hours and over the last 30 minutes (slow ratio of 15% or more). At this burn the whole day's error budget is gone in about 8 hours. Kong's histogram has no 500 ms bucket, so the nearest boundary, le=400.0 (400 ms), is used: a request between 400 and 500 ms counts as slow. The alert needs at least 30 requests in the last 6 hours, so one slow request on an idle local route cannot fire it.