Skip to content

feat(k8s): alert when Crawl4AI fetches fail - #4037

Merged
dan-petty merged 2 commits into
mainfrom
feat/3893-alert-crawl4ai-fetch-failures
Nov 7, 2026
Merged

dan-petty merged 2 commits into
mainfrom
feat/3893-alert-crawl4ai-fetch-failures

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Add the rule group crawl4ai. Crawl4AIFetchesFailing warns when at least 5 page fetches of the roadmap Service failed in an hour and more than half of its fetches failed. Crawl4AIUnavailable warns when Deployment crawl4ai wants a replica and has none available for 15 minutes. Without them, the refine and alternatives jobs lose their page text with no visible sign. Both alerts are in k8s/README.md, with promtool tests.

Closes #3893

Change: openspec/changes/archive/2026-11-07-3893-crawl4ai-fetch-alerts/

@dan-petty dan-petty added type/feature Type feature: a new function scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Nov 7, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test evidence (not part of the squash message).

  • Test first: before the rules existed, tests/prometheus/test_k8s_monitoring_alerting.py had 6 failures (the baseline rule set, the four new group tests and the promtool test of the group crawl4ai). With the rules, the file passes (58 tests), promtool included.
  • After the rebase onto origin/main: uv run devops ci test tests/prometheus tests/commands/k8s/test_k8s_monitoring_integration.py tests/commands/k8s/test_stack_dashboards.py tests/docs/test_docs_inventory.py tests/commands/k8s/test_k8s_network_policies.py gave 334 passed.
  • Full uv run devops ci under the shared lock: every static check passed (ruff, mypy, bandit, docs, k8s manifests, openspec, test tree and the rest). The check pytest & coverage timed out after 1800 s because the host ran many CI runs at once. It is not run to the end. The GitHub checks of this pull request give the full test result.
  • Pending a person: set crawl4ai.url in the live ConfigMap and sync the devops stack. Until then the Deployment and the counter have no series, and both alerts stay quiet.

@dan-petty
dan-petty marked this pull request as ready for review November 7, 2026 18:55
Add the rule group crawl4ai with Crawl4AIFetchesFailing and Crawl4AIUnavailable, their promtool fixture and tests, the README table and the OpenSpec change.
@dan-petty
dan-petty force-pushed the feat/3893-alert-crawl4ai-fetch-failures branch from 5c4095b to b3bf86e Compare November 7, 2026 20:35
@dan-petty
dan-petty merged commit 49f0f14 into main Nov 7, 2026
24 checks passed
@dan-petty
dan-petty deleted the feat/3893-alert-crawl4ai-fetch-failures branch November 7, 2026 20:48
dan-petty pushed a commit that referenced this pull request Nov 7, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.84.0](v0.83.2...v0.84.0)
(2026-11-07)


### Features

* **k8s:** alert when Crawl4AI fetches fail
([#4037](#4037))
([49f0f14](49f0f14))
* **k8s:** run SearXNG in the devops namespace
([#4033](#4033))
([9d223f4](9d223f4)),
closes [#3924](#3924)
* **research:** add GitHub advisories and KEV to research advisories
([#4032](#4032))
([61e6936](61e6936)),
closes [#3987](#3987)
* **research:** add research sweep that files intake candidates
([#4055](#4055))
([11ddee9](11ddee9))
* **roadmap:** add a test-first manifest kind to the stage plan
([#3981](#3981))
([8476163](8476163))
* **roadmap:** check a plan number against its constant
([#4073](#4073))
([324a3a5](324a3a5))
* **roadmap:** name every caller of a changed function
([#4047](#4047))
([24e9138](24e9138))
* **roadmap:** the stage probe routes prompt changes to prompt rule
tests ([#3989](#3989))
([4aebde2](4aebde2))


### Code Refactoring

* **cli:** source modules keep no accommodation for tests
([#4053](#4053))
([33b57a9](33b57a9))
* **roadmap:** remove the dead plan and review step classes
([#4074](#4074))
([526834f](526834f))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/k8s Kubernetes commands, Helm charts, pods, services, and policies type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(k8s): alert when Crawl4AI fetches fail

1 participant