BIT-3883: Phase 1 metrics instrumentation and deploy smoke #2

Merged
spark merged 4 commits from task/BIT-3883-metrics-instrumentation into main 2026-04-22 22:52:35 +01:00
4 Commits
Author SHA1 Message Date
David Santos d3907457c4 Merge remote-tracking branch 'origin/main' into tmp-sync-pr2
ai-news-writer-ci / test (pull_request) Failing after 32s
2026-04-22 22:52:13 +01:00
Planner 0d2d3c01a4 ci(ai-news-writer): harden Gitea deploy SSH with pinned host keys (BIT-3601)
ai-news-writer-ci / test (pull_request) Failing after 43s
Add tools/ci/gitea-actions-ssh-config.sh and require STAGING_SSH_KNOWN_HOSTS /
PROD_SSH_KNOWN_HOSTS secrets (ssh-keyscan output). Deploy jobs use ssh -F with
StrictHostKeyChecking yes instead of disabling host key verification.
CI parses deploy workflow YAML alongside test.yml.

Paperclip-Issue: BIT-3601
Paperclip-Run: 10d053b5-5cec-45ff-ba5f-29bb21da30d3
2026-04-16 23:54:18 +00:00
Planner 461887840a feat(ai-news-writer): surface metrics in /health and verify /metrics on deploy (BIT-3883)
ai-news-writer-ci / test (pull_request) Failing after 50s
The /health JSON now includes metrics_summary for ops probes without a full scrape.
tools/verify-deploy.sh fetches /metrics and validates the JSON export shape after /health.

Paperclip-Issue: BIT-3883
Paperclip-Run: a918f127-e680-4b48-a3b0-1b2f67e62b39
2026-04-16 23:45:19 +00:00
Planner 5ddc408e7b feat(ai-news-writer): Phase 1 metrics instrumentation for monitoring (BIT-3883)
Deliver in-memory metrics (counters, histograms, gauges) with RSS fetch, scrape,
AI generation, and WordPress publish timings; RSS listener tick volume and
duration; X merge error counter; CPU and load gauges; articles.failed on
publish errors; detect_topics latency; JSON and Prometheus /metrics export
with correct path parsing for query strings.

Paperclip-Issue: BIT-3883
Paperclip-Run: fc354392-c642-4f67-bd5a-4dd8f5e2fd52
2026-04-16 23:42:22 +00:00