diff options
author | pg9182 <96569817+pg9182@users.noreply.github.com> | 2023-02-27 00:38:33 -0500 |
---|---|---|
committer | pg9182 <96569817+pg9182@users.noreply.github.com> | 2023-03-04 00:49:32 -0500 |
commit | d704eaddcb833b14b5e18756925a47081b429163 (patch) | |
tree | cc3ec7c14276ff9399807c66d43d92e9b203c758 /pkg/api/api0/metrics.go | |
parent | abd04681463b364edc92a91bce006fb6ff1f5a37 (diff) | |
download | Atlas-d704eaddcb833b14b5e18756925a47081b429163.tar.gz Atlas-d704eaddcb833b14b5e18756925a47081b429163.zip |
pkg/api/api0: Implement EAX username source
Diffstat (limited to 'pkg/api/api0/metrics.go')
-rw-r--r-- | pkg/api/api0/metrics.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkg/api/api0/metrics.go b/pkg/api/api0/metrics.go index 8f9a0b5..46c8615 100644 --- a/pkg/api/api0/metrics.go +++ b/pkg/api/api0/metrics.go @@ -79,6 +79,13 @@ type apiMetrics struct { fail_authtok_refresh *metrics.Counter fail_other_error *metrics.Counter } + client_originauth_eax_username_lookup_duration_seconds *metrics.Histogram + client_originauth_eax_username_lookup_calls_total struct { + success *metrics.Counter + notfound *metrics.Counter + fail_update_check *metrics.Counter + fail_other_error *metrics.Counter + } client_authwithserver_requests_total struct { success *metrics.Counter reject_bad_request *metrics.Counter @@ -246,6 +253,11 @@ func (h *Handler) m() *apiMetrics { mo.client_originauth_origin_username_lookup_calls_total.notfound = mo.set.NewCounter(`atlas_api0_client_originauth_origin_username_lookup_calls_total{result="notfound"}`) mo.client_originauth_origin_username_lookup_calls_total.fail_authtok_refresh = mo.set.NewCounter(`atlas_api0_client_originauth_origin_username_lookup_calls_total{result="fail_authtok_refresh"}`) mo.client_originauth_origin_username_lookup_calls_total.fail_other_error = mo.set.NewCounter(`atlas_api0_client_originauth_origin_username_lookup_calls_total{result="fail_other_error"}`) + mo.client_originauth_eax_username_lookup_duration_seconds = mo.set.NewHistogram(`atlas_api0_client_originauth_eax_username_lookup_duration_seconds`) + mo.client_originauth_eax_username_lookup_calls_total.success = mo.set.NewCounter(`atlas_api0_client_originauth_eax_username_lookup_calls_total{result="success"}`) + mo.client_originauth_eax_username_lookup_calls_total.notfound = mo.set.NewCounter(`atlas_api0_client_originauth_eax_username_lookup_calls_total{result="notfound"}`) + mo.client_originauth_eax_username_lookup_calls_total.fail_update_check = mo.set.NewCounter(`atlas_api0_client_originauth_eax_username_lookup_calls_total{result="fail_update_check"}`) + mo.client_originauth_eax_username_lookup_calls_total.fail_other_error = mo.set.NewCounter(`atlas_api0_client_originauth_eax_username_lookup_calls_total{result="fail_other_error"}`) mo.client_authwithserver_requests_total.success = mo.set.NewCounter(`atlas_api0_client_authwithserver_requests_total{result="success"}`) mo.client_authwithserver_requests_total.reject_bad_request = mo.set.NewCounter(`atlas_api0_client_authwithserver_requests_total{result="reject_bad_request"}`) mo.client_authwithserver_requests_total.reject_versiongate = mo.set.NewCounter(`atlas_api0_client_authwithserver_requests_total{result="reject_versiongate"}`) |