How sprut1088/observability-studio works
1. This repo is a multi-accelerator observability platform, not a single app. The system centers on a FastAPI backend plus a React “Hub” UI that routes users into five module workflows: ObsCrawl, ObservaScore, RCA Agent, RED Panel Intelligence, and Observability Gap Map.
2. The top-level architecture is layered:
- UI for operator interaction and module selection
- Backend API for validation, orchestration, and artifact access
- Accelerator packages for domain-specific analysis
- Shared core utilities for cross-cutting platform concerns
- Runtime artifact storage for generated outputs
3. The frontend is a Vite/React app under ui/src. It acts as a launcher and workflow shell rather than doing heavy analysis itself. It opens module-specific modals, calls backend APIs through ui/src/api.js, and renders the Hub tile inventory and global connectivity views.
4. The backend in backend/app is the main orchestration boundary. Routes define HTTP contracts, services coordinate work, schemas/models structure request and response data, and the backend also handles runtime folder creation, export/download endpoints, and feature-flag enforcement.
5. The accelerator packages under accelerators/ hold the actual domain logic:
- obscrawl for crawl/export behavior
- observascore for observability maturity scoring, rules, adapters, insights, and report generation
- rca-agent for incident correlation and root-cause analysis
These are the “engine rooms” of the platform and are kept separate from HTTP concerns.
6. ObservaScore is the clearest example of the internal pipeline. It uses a common observability model with tool-specific adapters under accelerators/observascore/adapters to normalize data from external observability products such as Prometheus, Grafana, Loki, Jaeger, Alertmanager, Tempo, Elasticsearch, Datadog, Dynatrace, AppDynamics, Splunk, and OTel Collector. That normalized data then feeds scoring rules, insights, and report generation.
7. The Observability Gap Map accelerator has a two-part analysis model: coverage scoring and signal-connectivity analysis. Coverage evaluates service-level readiness across metrics, logs, traces, dashboards, alerts, and RED readiness; connectivity separately checks debugging paths like metrics-to-logs and dashboards-to-traces, producing deterministic scores and MTTR-risk classification.
8. The RCA Agent is a separate subsystem under accelerators/rca-agent with its own config, templates, tests, and source modules. It combines signal collection, cascade detection, correlation, and optional LLM formatting, and it also exposes a webhook listener for inbound incident/event data.
9. Feature flags are a platform boundary, not just a UI toggle. They are configured in studio_platform/config/feature_flags.yaml and enforced in backend middleware so a module can be hidden in the Hub and blocked at the API layer at the same time.
10. Generated outputs are a first-class part of the architecture. Most workflows produce runtime artifacts under per-run folders, typically HTML for preview, JSON for structured output, and XLSX for exports. The backend exposes download and preview endpoints to serve these artifacts after execution.
11. Configuration is split between static repo config and runtime-per-execution config. Tool connection details are supplied through UI payloads, transformed by backend services such as the config builder, and written into run-scoped runtime files. This keeps source-tool credentials and environment details out of the accelerator code paths.
12. shared_core/ holds cross-accelerator primitives such as the accelerator registry, feature-flag support, connector abstractions, storage, models, and scoring helpers. This is the main shared boundary that prevents duplicated platform logic across modules.
13. There is also a compatibility layer for older workflows. The README shows legacy endpoints alongside newer v1 routes, which suggests the backend supports both streamlined Hub-driven flows and older API contracts during migration.
14. In diagram terms, the key data flow is: user action in the React Hub -> FastAPI route -> backend service orchestration -> accelerator or adapter logic -> artifact generation -> runtime download/preview. External observability tools sit at the far edge and are accessed in read-only mode through adapters and connectors.
Main entry points: services Services · exports Run artifacts · routes Routes · observascore ObservaScore
Components 20
UI
React hub and workflow shell
- Hub · Main operator shell for module selection and global views
ui/src/components/HubPage.jsx - API client · Frontend request layer for backend calls
ui/src/api.js - Module modals · Crawl, score, RCA, red intelligence, and gap map entry points
ui/src/components - Connectivity view · Global tool connectivity and module inventory display
ui/src/components/GlobalToolConnectivity.jsx
Backend API
FastAPI orchestration and artifact access
- FastAPI app · Primary backend entrypoint and route assembly
backend/app/main.py - Routes · REST endpoints for assess, export, download, feature flags, and module APIs
backend/app/routes - Services · Backend coordination for validation, config building, scoring, crawl, RCA, and exports
backend/app/services - Models · Backend request and response structures
backend/app/models - Feature flags · Module visibility and API enforcement boundary
studio_platform/config/feature_flags.yaml - Artifacts API · Endpoints for previews, downloads, and exported outputs
backend/app/routes/download.py
Accelerators
Domain analysis engines
- ObsCrawl · Crawl and export workflow for collecting tool data
accelerators/obscrawl/service.py - ObservaScore · Observability maturity scoring and report generation
accelerators/observascore - Adapters · Connectors for Prometheus, Grafana, Loki, Jaeger, Alertmanager, Tempo, Elasticsearch, Datadog, Dynatrace, AppDynamics, Splunk, and OTel Collector
accelerators/observascore/adapters - Rules engine · Domain checks and pack-based scoring logic
accelerators/observascore/rules - Gap Map · Coverage scoring plus signal-connectivity analysis with MTTR risk
accelerators/observascore/insights/observability_gap_map - RED Intelligence · RED-focused signal analysis and reporting
accelerators/observascore/insights/red_panel_intelligence - RCA Agent · Signal collection, cascade detection, correlation, and optional LLM formatting
accelerators/rca-agent/src/rca_agent.py
Shared Core
Cross-cutting platform primitives
- Shared core · Registry, connectors, storage, feature flags, models, and scoring helpers
shared_core
Runtime Artifacts
Generated outputs and export files
- Run artifacts · Per-run HTML, JSON, and XLSX outputs
exports
Other components
- External tools · Read-only source systems accessed through adapters and connectors
Connections 24
- Hub → API client: requests · User actions are translated into backend calls
- Hub → Module modals: opens · Hub launches module-specific workflows
- Hub → Connectivity view: shows · Renders global inventory and connectivity views
- API client → Routes: calls · Frontend talks to backend HTTP contracts
- FastAPI app → Routes: mounts · Application wires route modules
- Routes → Services: delegates · Routes hand off to orchestration services
- Services → Models: uses · Services validate and shape payloads
- Services → Shared core: depends on · Backend reuses shared registries, connectors, and helpers
- Feature flags → Routes: gates · Feature flags block or expose module endpoints
- Feature flags → Hub: filters · Hub module visibility follows the same flag policy
- Services → ObsCrawl: orchestrates · Backend triggers crawl workflows
- Services → ObservaScore: orchestrates · Backend triggers observability scoring workflows
- Services → Gap Map: runs · Gap map analysis is invoked through backend services
- Services → RED Intelligence: runs · Red intelligence analysis is invoked through backend services
- Services → RCA Agent: runs · RCA workflow is coordinated by backend services
- ObservaScore → Adapters: normalizes · Adapters convert external observability data into a common model
- ObservaScore → Rules engine: scores · Rules and packs compute maturity findings
- ObservaScore → External tools: reads · Connectors fetch source data from observability products
- Gap Map → Run artifacts: writes · Produces structured coverage and connectivity artifacts
- RED Intelligence → Run artifacts: writes · Produces report artifacts for download and preview
- RCA Agent → Run artifacts: writes · Generates RCA summaries and templates
- ObsCrawl → Run artifacts: writes · Stores crawl outputs and exports
- Routes → Run artifacts: serves · Download and preview endpoints expose generated artifacts
- Shared core → Run artifacts: persists via · Shared storage abstractions back run-scoped outputs