Grafana dashboard: auth activity (logins, failures, active users) #252
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/pal-e-platform#252
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Feature
Lineage
Standalone -- discovered during jersey ordering session 2026-03-29. Depends on Keycloak event logging ticket.
Repo
forgejo_admin/pal-e-platformUser Story
As an admin
I want a Grafana dashboard showing login activity over time, failed attempts, and active users
So that I can monitor how parents and coaches are using the platform
Context
Structured API logs already include
user_idper authenticated request (basketball-api logging_config.py). Once Keycloak event logging is enabled (separate ticket), LOGIN/LOGOUT/ERROR events will flow to Loki. This ticket builds the Grafana dashboard to visualize both sources.Existing dashboards live in
terraform/dashboards/as JSON files and are provisioned via the monitoring module.File Targets
Files the agent should modify or create:
terraform/dashboards/auth-activity-dashboard.json-- new dashboard JSON with panels for login activity, failures, active usersterraform/modules/monitoring/main.tf-- register the new dashboard in Grafana provisioning config (follow pattern of existing dashboards)Files the agent should NOT touch:
basketball-api/-- no application code changesterraform/modules/keycloak/-- Keycloak config is a separate ticketAcceptance Criteria
Test Expectations
tofu plan -lock=falseto verify provisioning changesConstraints
terraform/dashboards/Checklist
Related
project-pal-e-platform-- platform infrastructure