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

feat(jans-lock): lock should collect MAU and MAC based on log entries requests #10327

Closed
yurem opened this issue Dec 3, 2024 · 0 comments · Fixed by #10328
Closed

feat(jans-lock): lock should collect MAU and MAC based on log entries requests #10327

yurem opened this issue Dec 3, 2024 · 0 comments · Fixed by #10328
Assignees
Labels
comp-jans-lock kind-feature Issue or PR is a new feature request
Milestone

Comments

@yurem
Copy link
Contributor

yurem commented Dec 3, 2024

After getting log entry from Cedarling it should collect MAU (monthly active users) and MAC (monthly active clients). Additionally it should collect action execution outcome statistics.

Lock should have Rest API to access stat. Stat should be provided in openmetrics and json formats.

Sample action execution outcome statistics:

curl -X GET --location 'https://jans-ce.gluu.info/jans-lock/v1/internal/stat?start-month=202412&end-month=202501' \
--header 'Authorization: Bearer ...'

{"response":[{"month":"202501","monthly_active_users":1,"monthly_active_clients":1,"operations_by_type":{"action":{"ACTION_NAME_1":6,"ACTION_NAME_2":6,"ACTION_NAME_3":2},"decisionResult":{"allow":9,"deny":5}}}]}


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-jans-lock kind-feature Issue or PR is a new feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants