Skip to content

docs: add C4 architecture model#72

Draft
NikolayS wants to merge 1 commit into
mainfrom
claude/create-model-c4-kqhxul
Draft

docs: add C4 architecture model#72
NikolayS wants to merge 1 commit into
mainfrom
claude/create-model-c4-kqhxul

Conversation

@NikolayS

Copy link
Copy Markdown
Contributor

What

Adds a C4 software architecture model for the repository under docs/architecture/.

Why

The repo had no architecture documentation. The C4 model captures how the system fits together — from users and external systems down to containers and components — making the codebase easier to onboard to and reason about.

Contents

  • docs/architecture/workspace.dslStructurizr DSL, the single source of truth. Defines people (Engineer/DBA, AI agents), external systems (Target PostgreSQL, console.postgres.ai, Supabase, Amazon Managed Prometheus, LLM providers), and all PostgresAI containers/components with their relationships. Renders all C4 levels and is editable via Structurizr Lite.
  • docs/architecture/README.md — GitHub-renderable Mermaid C4 diagrams for at-a-glance reading without tooling:
    • L1 System Context
    • L2 Containers (CLI, MCP server, pgwatch ×2, Reporter, Monitoring Backend, Grafana, VictoriaMetrics, Postgres sink, Telemetry agent, pg_index_pilot)
    • L3 Components for the CLI and the Reporter
  • README.md — link to the model from the Links table.

Notes

The model was derived from docker-compose.yml, the cli/, reporter/, monitoring_flask_backend/ sources, and project docs. Diagrams are intended to be kept in sync with workspace.dsl as the architecture evolves.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GrG9pynE6hPRG8JYsdKGxZ


Generated by Claude Code

Add a C4 software architecture model for the repo:
- docs/architecture/workspace.dsl: Structurizr DSL source of truth
  (system context, containers, CLI & Reporter components)
- docs/architecture/README.md: GitHub-renderable Mermaid C4 diagrams
  (L1 context, L2 containers, L3 components)
- Link the model from the top-level README

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GrG9pynE6hPRG8JYsdKGxZ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants