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

How to make Gluu expose Prometheus metrics with Helm? #287

Closed
vamos-hug-aar opened this issue Jul 7, 2022 · 1 comment
Closed

How to make Gluu expose Prometheus metrics with Helm? #287

vamos-hug-aar opened this issue Jul 7, 2022 · 1 comment
Assignees
Labels
kind-feature Issue or PR is a new feature request

Comments

@vamos-hug-aar
Copy link

Describe the bug
How to make Gluu expose Prometheus metrics?

To Reproduce
Assuming I'm using this chart
https://artifacthub.io/packages/helm/gluu-flex/gluu
and install auth-server, config-api, and scim components... how to make them expose the metrics endpoint like i.e. here
https://gluu.org/docs/gg/plugin/gluu-metrics/
?

Expected behavior
Gluu exposes metrics endpoint

@vamos-hug-aar vamos-hug-aar added the bug Something isn't working label Jul 7, 2022
@moabu
Copy link
Member

moabu commented Aug 24, 2022

https://github.com/GluuFederation/flex/blob/main/flex-cn-setup/pygluu/kubernetes/templates/helm/gluu/values.yaml#L827 for the prometheus jmx. However we are still working on adding metrics and telemetry in general. The only available metric is the monthly active user metric currently.

Example:

  1. created a new client with the below details. I didn't change any settings beside whats in the Standard settings:

OPENID CONNECT CLIENTS DETAILS

  • Name: test
  • Client ID: 9cc66d49-31f1-4a12-b1c2-c38f77417b40
  • Subject Type: pairwise
  • ClientSecret: XXXXXXXXXXX
  • Application Type: web
  • Persist Client Authorizations: true
  • Pre-Authorization: false
  • Authentication method for the Token Endpoint: client_secret_basic
  • Logout Session Required: false
  • Include Claims In Id Token: false
  • Disabled: false
  • Scopes: [openid]
  • Grant types: [client_credentials]
  • Response types: [token]
curl -k https://test.gluu.org/oxauth/restv1/internal/stat?month=202106 -u "9cc66d49-31f1-4a12-b1c2-c38f77417b40:2E585aiKkE26xmZXDXJdiI9qhTvqtKfeUXKac4z6"
{"response":{"202106":{"monthly_active_users":0,"token_count_per_granttype":{}}}}

You can also specify the open metrics format in the call

curl -k https://test.gluu.org/oxauth/restv1/internal/stat?month=202106&format=openmetric -u "9cc66d49-31f1-4a12-b1c2-c38f77417b40:2E585aiKkE26xmZXDXJdiI9qhTvqtKfeUXKac4z6"

@moabu moabu closed this as completed Aug 24, 2022
@moabu moabu added kind-feature Issue or PR is a new feature request and removed bug Something isn't working labels Aug 24, 2022
This was referenced Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind-feature Issue or PR is a new feature request
Projects
None yet
Development

No branches or pull requests

2 participants