Skip to content

feat: Add prom-client to provide Prometheus metrics - #8

Merged
labrenbe merged 6 commits into
mainfrom
feat/prometheus-metrics
Mar 3, 2026
Merged

labrenbe merged 6 commits into
mainfrom
feat/prometheus-metrics

Conversation

@labrenbe

Copy link
Copy Markdown
Member

Fixes #3.

Prometheus metrics are available at /metrics.

@labrenbe labrenbe self-assigned this Feb 19, 2026

@lfrancke lfrancke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested it and it works fine for me.

I wonder if we can somehow improve the 404 case because it currently looks like this:

http_request_duration_seconds_bucket{le="5",method="GET",route="unknown",status="404"} 1

It might be nice to know which routes are 404...otoh it might lead to so many different metrics. I'm torn. Opinions?

Comment thread src/lib/server/metrics.ts Outdated
Comment thread package.json
lfrancke
lfrancke previously approved these changes Feb 24, 2026
@labrenbe
labrenbe merged commit 9ee9361 into main Mar 3, 2026
8 checks passed
@labrenbe
labrenbe deleted the feat/prometheus-metrics branch March 3, 2026 15:29
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 metrics/OTel system

3 participants