docs(OBSERV-02): RFC — KPI analytics middleware and in-app dashboards#1713
Open
florian-muller wants to merge 2 commits into
Open
docs(OBSERV-02): RFC — KPI analytics middleware and in-app dashboards#1713florian-muller wants to merge 2 commits into
florian-muller wants to merge 2 commits into
Conversation
Proposes a request middleware to replace prometheus_fastapi_instrumentator, an OpenSearch-backed preset query endpoint with ReBAC authorization scoping, and a caching strategy that avoids Redis while staying consistent across replicas.
Adds per-metric availability status with direct links to existing call sites, flags missing instrumentation (session creation, agent creation, user attribution on turn_completed), and notes resource metrics can be sourced from Postgres rather than KPI events.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
OBSERV-02: a request middleware to replaceprometheus_fastapi_instrumentator, emitting per-request KPI events to OpenSearch withuser_idandgroupsdims/api/kpi/query) with ReBAC (OpenFGA) authorization scoping — clients pick a named preset, the backend owns the DSL and injects scope filtersOBSERV-02inid-legend.yamlStatus
Draft RFC — for review and discussion before implementation starts. See open questions in §5 of the RFC.
Test plan
team_id/ Keycloak group name mapping approach (open question 4)