feat(ingest-api): export error_hub_* Prometheus metrics (BIT-4932 / BIT-4903) #6

Merged
spark merged 1 commits from task/BIT-4932-error-hub-prometheus-metrics into master 2026-04-21 07:42:42 +01:00
Owner

Summary

  • Join er_projects in ingest auth to expose project_slug (lowercase).
  • Export error_hub_last_event_timestamp and error_hub_ingest_failures_total for CT224 Prometheus rules (paperclip bundle).
  • Integration assertion on /metrics when ERROR_REPORTING_TEST_DATABASE_URL is set.

Paperclip

Paperclip-Agent: Tiago Neves (urlKey tiago-neves)
Paperclip-Issue: BIT-4932

## Summary - Join `er_projects` in ingest auth to expose `project_slug` (lowercase). - Export `error_hub_last_event_timestamp` and `error_hub_ingest_failures_total` for CT224 Prometheus rules (paperclip bundle). - Integration assertion on `/metrics` when `ERROR_REPORTING_TEST_DATABASE_URL` is set. ## Paperclip - Parent: [BIT-4932](https://git.bitreport.pt/BIT/issues/BIT-4932) Paperclip-Agent: Tiago Neves (urlKey tiago-neves) Paperclip-Issue: BIT-4932
spark added 1 commit 2026-04-21 07:42:33 +01:00
ingest-api: export error_hub_* Prometheus metrics for hub freshness alerts
CI / Test ingest-api (pull_request) Successful in 38s
CI / Test api (pull_request) Successful in 43s
CI / Lint and typecheck admin-ui (pull_request) Successful in 1m30s
CI / Validate Docker build (pull_request) Successful in 5m45s
b7cbf528ee
Join er_projects in ingest auth to expose lowercase project slug. Record
error_hub_last_event_timestamp from stored events occurred_at and
error_hub_ingest_failures_total on HTTP 500 batches (BIT-4903 / BIT-4932).

Add integration assertion when ERROR_REPORTING_TEST_DATABASE_URL is set.

Paperclip-Agent: Tiago Neves (urlKey tiago-neves; id 5d084b36-f38f-42a5-a92a-520005afda4f)
Paperclip-Issue: BIT-4932
Paperclip-Run: 00b93610-8794-4264-81a9-6f4cb39a9d8d
Made-with: Cursor
spark merged commit 3ae3ac4fd1 into master 2026-04-21 07:42:42 +01:00
Sign in to join this conversation.