mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-06 09:13:19 +03:00
🚀 Feature: Prometheus Metrics for the Backend #329
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
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.
@nikdoof commented on GitHub:
Not really just a K8s thing, application monitoring with Prometheus is more widespread than just that one use case.
@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.
@nikdoof commented on GitHub:
I'm more than happy to take a stab at it, it should be relatively simple.
@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.