Feature: expose meaningful metrics
Author: a-baliCreated Feb 17, 2026Updated Aug 28, 2026
Feature description
While we have the infrastructure for exposing metrics for monitoring purposes, I don't see any meaningful metrics exposed:
root@talos1:~# curl http://10.244.0.68:9464/metrics
# HELP promhttp_metric_handler_errors_total Total number of internal errors encountered by the promhttp metric handler.
# TYPE promhttp_metric_handler_errors_total counter
promhttp_metric_handler_errors_total{cause="encoding"} 0
promhttp_metric_handler_errors_total{cause="gathering"} 0
# HELP target_info Target metadata
# TYPE target_info gauge
target_info{service_name="pocket-id",service_version="2.2.0",telemetry_sdk_language="go",telemetry_sdk_name="opentelemetry",telemetry_sdk_version="1.39.0"} 1
root@talos1:~#I propose to expose metrics such as:
- Number of users
- Number of apps (per user)
- Successful auth attempts (per user and app)
- Failed auth attempts (per user and app)
- etc
Pitch
Exposing meaningful metrics would enable operational monitoring as per standard solutions, including possibility for alerting.
Source: pocket-id/pocket-id