Skip to content

feat: add Prometheus metrics endpoint - #224

Merged
Ashborne267 merged 5 commits into
StreamGive:mainfrom
taiwoMoil:feat/prometheus-metrics
Oct 9, 2026
Merged

Ashborne267 merged 5 commits into
StreamGive:mainfrom
taiwoMoil:feat/prometheus-metrics

Conversation

@taiwoMoil

Copy link
Copy Markdown

Closes #114

Summary:

  • expose Prometheus text metrics at GET /metrics without a database dependency
  • record HTTP request counts and duration by method, route, and status
  • publish indexer checkpoint, latest-ledger, and lag gauges
  • count successful and failed webhook notification deliveries
  • document scraping behavior and add an endpoint smoke test

Validation:

  • npx eslint on all parseable changed files (pass)
  • npx vitest run test/metrics.test.ts test/notifications.test.ts (3 tests pass)
  • npm run typecheck (blocked by pre-existing src/indexer/worker.ts syntax error)

Closes StreamGive#114

Summary:
- expose Prometheus text metrics at GET /metrics without a database dependency
- record HTTP request counts and duration by method, route, and status
- publish indexer checkpoint, latest-ledger, and lag gauges
- count successful and failed webhook notification deliveries
- document scraping behavior and add an endpoint smoke test

Validation:
- npx eslint on all parseable changed files (pass)
- npx vitest run test/metrics.test.ts test/notifications.test.ts (3 tests pass)
- npm run typecheck (blocked by pre-existing src/indexer/worker.ts syntax error)
@drips-wave

drips-wave Bot commented Sep 30, 2026

Copy link
Copy Markdown

@taiwoMoil Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Ashborne267
Ashborne267 merged commit 2da6cc4 into StreamGive:main Oct 9, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a Prometheus /metrics endpoint

3 participants