Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/prometheus/prom.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var (
Name: "vault_injector_revoke_token_count_success",
Help: "Vault injector token revoked with success count",
},
[]string{"uuid", "namespace"},
[]string{"namespace"},
)
RevokeTokenErrorCount = prometheus.NewCounterVec(
prometheus.CounterOpts{
Expand Down
4 changes: 2 additions & 2 deletions pkg/vault/handle_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ func (c *Connector) RevokeOrphanToken(ctx context.Context, tokenId, uuid, namesp
c.Log.Errorf("error while revoking token: %v", err)
return err
}
promInjector.RevokeTokenCount.WithLabelValues(uuid, namespace).Inc()
promInjector.RevokeTokenCount.WithLabelValues(namespace).Inc()
promInjector.TokenExpirationInTime.DeleteLabelValues(uuid, namespace)
return nil
}
Expand All @@ -397,7 +397,7 @@ func (c *Connector) RevokeSelfToken(ctx context.Context, tokenId, uuid, namespac
promInjector.RevokeTokenErrorCount.WithLabelValues(uuid, namespace).Inc()
c.Log.Errorf("error while revoking token: %v", err)
}
promInjector.RevokeTokenCount.WithLabelValues(uuid, namespace).Inc()
promInjector.RevokeTokenCount.WithLabelValues(namespace).Inc()
promInjector.TokenExpirationInTime.DeleteLabelValues(uuid, namespace)
}

Expand Down