🚀 Feature: Prometheus Metrics for the Backend #329

Closed
opened 2025-10-07 00:10:56 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @nikdoof on GitHub.

Feature description

Implement a Prometheus metrics endpoint in the backend service.

Pitch

As a devops engineer / sysadmin, it would be nice to be able to get metrics from the backend to show some key values:

  • Number of API calls
  • Rate of calls
  • Standard Go metrics

One example use would allow for users of Kubernetes to implement pod scaling on more factors than straight memory / cpu usage and increase observability off the application itself.

While off-the-shelf libraries exist for Go, I'm unsure if any library exist for easy integration into Gin.

Originally created by @nikdoof on GitHub. ### Feature description Implement a Prometheus metrics endpoint in the backend service. ### Pitch As a devops engineer / sysadmin, it would be nice to be able to get metrics from the backend to show some key values: * Number of API calls * Rate of calls * Standard Go metrics One example use would allow for users of Kubernetes to implement pod scaling on more factors than straight memory / cpu usage and increase observability off the application itself. While off-the-shelf libraries exist for Go, I'm unsure if any library exist for easy integration into Gin.
OVERLORD added the feature label 2025-10-07 00:10:56 +03:00
Author
Owner

@nikdoof commented on GitHub:

Not really just a K8s thing, application monitoring with Prometheus is more widespread than just that one use case.

@nikdoof commented on GitHub: Not really just a K8s thing, application monitoring with Prometheus is more widespread than just that one use case.
Author
Owner

@stonith404 commented on GitHub:

As I don't use Promotheus I won't be able to implement this feature but I'm looking forward to a PR.

@stonith404 commented on GitHub: As I don't use Promotheus I won't be able to implement this feature but I'm looking forward to a PR.
Author
Owner

@nikdoof commented on GitHub:

I'm more than happy to take a stab at it, it should be relatively simple.

@nikdoof commented on GitHub: I'm more than happy to take a stab at it, it should be relatively simple.
Author
Owner

@kmendell commented on GitHub:

Thanks for the sugestion, My opinion on this is since we do not officialy support Kubernetes this may lead to confusion and stray away from the simplicity factor of pocket id. @stonith404 will have to confirm though.

@kmendell commented on GitHub: Thanks for the sugestion, My opinion on this is since we do not officialy support Kubernetes this may lead to confusion and stray away from the simplicity factor of pocket id. @stonith404 will have to confirm though.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pocket-id#329