We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4a30c14 + c79c39a commit 771622fCopy full SHA for 771622f
lib/collectors/global_prometheus_collector.rb
@@ -25,7 +25,7 @@ def metrics
25
def token_expiry_info
26
# Cache metric to prevent needless expensive calls to the database
27
Rails.cache.fetch("token_expiry_info", expires_in: 1.hour) do
28
- ApiUser.all.flat_map do |user|
+ ApiUser.where.not(email: SSOPushCredential::USER_EMAIL).flat_map do |user|
29
user.authorisations.where(revoked_at: nil).map do |token|
30
{
31
expires_at: token.expires_at.to_i,
0 commit comments