Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add metrics endpoint on cosmo-auth-proxy #639

Merged
merged 1 commit into from
Nov 9, 2022

Conversation

jlandowner
Copy link
Member

@jlandowner jlandowner commented Nov 7, 2022

Close #3

Add new endpoint /metrics on each local-port proxy servers.

$ curl http://localhost:37637/metrics
# HELP cosmo_authproxy_proxy_connections Current number of active connections.
# TYPE cosmo_authproxy_proxy_connections gauge
cosmo_authproxy_proxy_connections 2
# HELP cosmo_authproxy_proxy_requests_total Total number of authenticated requests by HTTP status code.
# TYPE cosmo_authproxy_proxy_requests_total counter
cosmo_authproxy_proxy_requests_total{code="200"} 21
cosmo_authproxy_proxy_requests_total{code="304"} 95
# HELP promhttp_metric_handler_requests_in_flight Current number of scrapes being served.
# TYPE promhttp_metric_handler_requests_in_flight gauge
promhttp_metric_handler_requests_in_flight 1
# HELP promhttp_metric_handler_requests_total Total number of scrapes by HTTP status code.
# TYPE promhttp_metric_handler_requests_total counter
promhttp_metric_handler_requests_total{code="200"} 3
promhttp_metric_handler_requests_total{code="500"} 0
promhttp_metric_handler_requests_total{code="503"} 0

@jlandowner jlandowner added enhancement New feature or request auth-proxy AuthProxy server and UI go Pull requests that update Go code labels Nov 7, 2022
@jlandowner jlandowner changed the title Add metrics endpoint Add metrics endpoint on cosmo-auth-proxy Nov 7, 2022
@jlandowner
Copy link
Member Author

I will fix typo. Please wait

@jlandowner
Copy link
Member Author

@oruharo please merge

@oruharo oruharo merged commit 7195ac4 into cosmo-workspace:main Nov 9, 2022
@jlandowner jlandowner deleted the authproxy-metrics branch April 15, 2023 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth-proxy AuthProxy server and UI enhancement New feature or request go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add metrics endpoint on Auth Proxy
2 participants