Skip to content

🔭 feat(o11y): Add Prometheus Metrics Endpoint and HTTP Instrumentation#26

Open
pjhampton wants to merge 2 commits intomainfrom
pjhampton/prom-metrics
Open

🔭 feat(o11y): Add Prometheus Metrics Endpoint and HTTP Instrumentation#26
pjhampton wants to merge 2 commits intomainfrom
pjhampton/prom-metrics

Conversation

@pjhampton
Copy link
Copy Markdown
Member

@pjhampton pjhampton commented Apr 14, 2026

Summary

Adds prometheus metrics endpoint

Change Type

  • New feature (non-breaking change which adds functionality)

Testing

Start - visit /metrics

  1. curl http://localhost:3000/metrics returned default process metrics (CPU, memory, event loop lag, etc.)
  2. Made requests to / and /login, then re-curled /metrics -- confirmed both admin_http_requests_total and admin_http_request_duration_seconds appeared with correct labels:
admin_http_requests_total{method="GET",path="/",status_code="200"} 1
admin_http_requests_total{method="GET",path="/login",status_code="307"} 1
admin_http_request_duration_seconds_sum{method="GET",path="/",status_code="200"} 0.162622
admin_http_request_duration_seconds_sum{method="GET",path="/login",status_code="307"} 0.000762375

Checklist

  • My code adheres to this project's style guidelines
  • I have performed a self-review of my own code
  • I have commented in any complex areas of my code
  • I have made pertinent documentation changes
  • My changes do not introduce new warnings
  • I have written tests demonstrating that my changes are effective or that my feature works
  • Local unit tests pass with my changes
  • A pull request for updating the documentation has been submitted.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 14, 2026

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ teresama
❌ pjhampton
You have signed the CLA already but the status is still pending? Let us recheck it.

@dustinhealy dustinhealy requested a review from danny-avila April 14, 2026 13:17
@dustinhealy dustinhealy changed the title feat(o11y): add prometheus metrics endpoint and HTTP instrumentation 🔭 feat(o11y): Add Prometheus Metrics Endpoint and HTTP Instrumentation Apr 16, 2026
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.

5 participants