Przeglądaj źródła

[desktop] Correct metric numerators and denominators

Erick Tryzelaar 10 lat temu
rodzic
commit
7277f1e

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

@@ -132,7 +132,8 @@ response_time = global_registry().timer(
     name='desktop.requests.aggregate-response-time',
     label='Request aggregate response time',
     description='Time taken to respond to requests',
-    numerator='seconds',
+    numerator='requests',
+    denominator='seconds',
 )
 
 # ------------------------------------------------------------------------------
@@ -177,26 +178,30 @@ 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='seconds',
+    numerator='auths',
+    denominator='seconds',
 )
 
 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='seconds',
+    numerator='auths',
+    denominator='seconds',
 )
 
 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='seconds',
+    numerator='auths',
+    denominator='seconds',
 )
 
 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='seconds',
+    numerator='auths',
+    denominator='seconds',
 )

+ 2 - 0
desktop/libs/libopenid/src/libopenid/metrics.py

@@ -22,4 +22,6 @@ openid_authentication_time = global_registry().timer(
     name='desktop.auth.openid.authentication-time',
     label='OpenID Authentication time',
     description='Time taken to authenticate a user with OpenID',
+    numerator='auths',
+    denominator='seconds',
 )

+ 2 - 0
desktop/libs/libsaml/src/libsaml/metrics.py

@@ -22,4 +22,6 @@ saml2_authentication_time = global_registry().timer(
     name='desktop.auth.saml2.authentication-time',
     label='SAML2 Authentication time',
     description='Time taken to authenticate a user with SAML2',
+    numerator='auths',
+    denominator='seconds',
 )