Skip to content

Commit

Permalink
Register missing token_introspections_total Prometheus metric
Browse files Browse the repository at this point in the history
  • Loading branch information
vasayxtx committed Jan 15, 2025
1 parent 3d836e4 commit d49c969
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ func (pm *PrometheusMetrics) MustRegister() {
prometheus.MustRegister(
pm.HTTPClientRequestDuration,
pm.GRPCClientRequestDuration,
pm.TokenIntrospectionsTotal,
)
pm.TokenClaimsCache.MustRegister()
pm.TokenNegativeCache.MustRegister()
Expand All @@ -193,6 +194,7 @@ func (pm *PrometheusMetrics) MustRegister() {
func (pm *PrometheusMetrics) Unregister() {
prometheus.Unregister(pm.HTTPClientRequestDuration)
prometheus.Unregister(pm.GRPCClientRequestDuration)
prometheus.Unregister(pm.TokenIntrospectionsTotal)
pm.TokenClaimsCache.Unregister()
pm.TokenNegativeCache.Unregister()
pm.EndpointDiscoveryCache.Unregister()
Expand Down

0 comments on commit d49c969

Please sign in to comment.