Преглед изворни кода

[desktop] Use "seconds" for metric numerators

Erick Tryzelaar пре 10 година
родитељ
комит
98d42f1
1 измењених фајлова са 5 додато и 5 уклоњено
  1. 5 5
      desktop/core/src/desktop/metrics.py

+ 5 - 5
desktop/core/src/desktop/metrics.py

@@ -131,7 +131,7 @@ response_time = global_registry().timer(
     name='desktop.requests.aggregate-response-time',
     label='Request aggregate response time',
     description='Time taken to respond to requests',
-    numerator='s',
+    numerator='seconds',
     counter_numerator='requests',
     rate_denominator='seconds',
 )
@@ -167,7 +167,7 @@ ldap_authentication_time = global_registry().timer(
     name='desktop.auth.ldap.authentication-time',
     label='LDAP Authentication time',
     description='Time taken to authenticate a user with LDAP',
-    numerator='s',
+    numerator='seconds',
     counter_numerator='auths',
     rate_denominator='seconds',
 )
@@ -176,7 +176,7 @@ oauth_authentication_time = global_registry().timer(
     name='desktop.auth.oauth.authentication-time',
     label='OAUTH Authentication time',
     description='Time taken to authenticate a user with OAUTH',
-    numerator='s',
+    numerator='seconds',
     counter_numerator='auths',
     rate_denominator='seconds',
 )
@@ -185,7 +185,7 @@ pam_authentication_time = global_registry().timer(
     name='desktop.auth.pam.authentication-time',
     label='PAM Authentication time',
     description='Time taken to authenticate a user with PAM',
-    numerator='s',
+    numerator='seconds',
     counter_numerator='auths',
     rate_denominator='seconds',
 )
@@ -194,7 +194,7 @@ spnego_authentication_time = global_registry().timer(
     name='desktop.auth.spnego.authentication-time',
     label='SPNEGO Authentication time',
     description='Time taken to authenticate a user with SPNEGO',
-    numerator='s',
+    numerator='seconds',
     counter_numerator='auths',
     rate_denominator='seconds',
 )