Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Docs: add stat endpoint description #19

Open
yuriyz opened this issue Jul 15, 2021 · 1 comment
Open

Docs: add stat endpoint description #19

yuriyz opened this issue Jul 15, 2021 · 1 comment
Assignees

Comments

@yuriyz
Copy link

yuriyz commented Jul 15, 2021

See GluuFederation/oxAuth#1512 (comment)

@moabu
Copy link
Member

moabu commented Oct 12, 2021

To help :

Access monthly active users endpoint:

  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]
  2. Curl or add to prometheus the client details with the endpoint. the path can be /oxauth/ or /jans-auth depending if Gluu or Janssen.

curl -k https://test.gluu.org/jans-auth/restv1/internal/stat?month=202106 -u "9cc66d49-31f1-4a12-b1c2-c38f77417b40:2E585aiKkE26xmZXDXJdiI9qhTvqtKfeUXKac4z6"
{"response":{"202107":{"monthly_active_users":0,"token_count_per_granttype":{}}}}

Forexample stats for May 2021 in openmetric format would look like this:

/jans-auth/restv1/internal/stat?month=202105&format=openmetric

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants