# wbatchayon/observability-platform architecture

> Architecture diagram of the GitHub repository wbatchayon/observability-platform, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/wbatchayon/observability-platform
- Repository: https://github.com/wbatchayon/observability-platform

## Overview

This repository is a GitOps-managed observability platform, with a management console alongside infrastructure and deployment configuration. Its primary workflow provisions or targets a Kubernetes cluster, bootstraps shared services, reconciles the platform with Flux, and sends VM telemetry through collectors to storage, dashboards, and incident handling. The README documents the main runtime topology; sampled GUI routes show how operators inspect configuration and submit changes or pipeline runs. Unshown subsystem wiring is represented only where the README explicitly documents it.

Main entry points: [`bootstrap/10-vault`](https://github.com/wbatchayon/observability-platform/tree/main/bootstrap/10-vault) (Vault bootstrap), [`platform/backends`](https://github.com/wbatchayon/observability-platform/tree/main/platform/backends) (Loki Mimir Tempo), [`bootstrap/20-flux`](https://github.com/wbatchayon/observability-platform/tree/main/bootstrap/20-flux) (Flux bootstrap), [`ansible/roles/otel-agent`](https://github.com/wbatchayon/observability-platform/tree/main/ansible/roles/otel-agent) (VM OpenTelemetry agents)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_provision["Provisioning"]
  node_environment["Environment settings"]
  node_cluster["Kubernetes cluster"]
  node_package["Harbor package repo"]
  node_flux["Flux bootstrap"]
  node_cluster_manifests["Cluster reconciliation"]
end

subgraph group_management["Management console"]
  node_console["Management GUI"]
  node_auth["Authentication<br/>[route.ts]"]
  node_env_api["Environment configuration<br/>[route.ts]"]
  node_pipeline_api["Pipeline dispatch<br/>[route.ts]"]
  node_patch_api["Patch management<br/>[route.ts]"]
end

subgraph group_telemetry["Telemetry pipeline"]
  node_agent["VM OpenTelemetry agents"]
  node_edge["Edge collector"]
  node_ingestion["OTel gateway<br/>[otel-gateway.yaml]"]
  node_ingress["HAProxy ingress<br/>[haproxy.yaml]"]
  node_backends[("Loki Mimir Tempo")]
  node_object_store[("MinIO object storage<br/>[minio.yaml]")]
end

subgraph group_operations["Operations"]
  node_visualization["Grafana visualization<br/>[grafana.yaml]"]
  node_monitoring["Prometheus alerting<br/>[prometheus.yaml]"]
  node_incident["Incident management"]
end

subgraph group_security["Security"]
  node_vault["Vault bootstrap"]
  node_policy["Cluster security policies"]
end

node_operator(("Platform operator"))
node_github["GitHub repository and Actions"]

node_operator -->|"configures"| node_environment
node_environment -->|"sets inputs"| node_cluster
node_cluster -->|"bootstraps"| node_package
node_package -->|"bootstraps"| node_vault
node_vault -->|"bootstraps"| node_flux
node_flux -->|"reconciles"| node_cluster_manifests
node_operator -.->|"manages platform"| node_console
node_console -->|"authenticates via"| node_auth
node_operator -->|"submits settings"| node_env_api
node_env_api -->|"opens config PR"| node_github
node_operator -->|"dispatches pipeline"| node_pipeline_api
node_pipeline_api -->|"dispatches workflow"| node_github
node_operator -->|"updates chart versions"| node_patch_api
node_patch_api -->|"opens PR"| node_github
node_github -->|"triggers deployment"| node_flux
node_operator -->|"installs agents"| node_agent
node_agent -->|"sends OTLP/mTLS"| node_edge
node_edge -->|"forwards telemetry"| node_ingress
node_ingress -->|"routes TLS traffic"| node_ingestion
node_ingestion -->|"exports signals"| node_backends
node_backends -->|"archives to S3"| node_object_store
node_backends -->|"feeds dashboards"| node_visualization
node_visualization -->|"routes alerts"| node_incident
node_monitoring -->|"sends alerts"| node_incident
node_vault -->|"issues mTLS identity"| node_agent
node_vault -->|"issues mTLS identity"| node_ingestion
node_cluster_manifests -.->|"applies controls"| node_policy

click node_environment "https://github.com/wbatchayon/observability-platform/tree/main/environments"
click node_cluster "https://github.com/wbatchayon/observability-platform/tree/main/bootstrap/00-cluster"
click node_package "https://github.com/wbatchayon/observability-platform/tree/main/bootstrap/30-package-repo"
click node_vault "https://github.com/wbatchayon/observability-platform/tree/main/bootstrap/10-vault"
click node_flux "https://github.com/wbatchayon/observability-platform/tree/main/bootstrap/20-flux"
click node_cluster_manifests "https://github.com/wbatchayon/observability-platform/tree/main/clusters"
click node_console "https://github.com/wbatchayon/observability-platform/tree/main/gui/app"
click node_auth "https://github.com/wbatchayon/observability-platform/blob/main/gui/app/api/auth/route.ts"
click node_env_api "https://github.com/wbatchayon/observability-platform/blob/main/gui/app/api/environments/route.ts"
click node_pipeline_api "https://github.com/wbatchayon/observability-platform/blob/main/gui/app/api/pipelines/route.ts"
click node_patch_api "https://github.com/wbatchayon/observability-platform/blob/main/gui/app/api/patch-management/route.ts"
click node_agent "https://github.com/wbatchayon/observability-platform/tree/main/ansible/roles/otel-agent"
click node_edge "https://github.com/wbatchayon/observability-platform/blob/main/platform/ingestion/edge-collector.yaml"
click node_ingestion "https://github.com/wbatchayon/observability-platform/blob/main/platform/ingestion/otel-gateway.yaml"
click node_ingress "https://github.com/wbatchayon/observability-platform/blob/main/ingress/haproxy.yaml"
click node_backends "https://github.com/wbatchayon/observability-platform/tree/main/platform/backends"
click node_object_store "https://github.com/wbatchayon/observability-platform/blob/main/platform/storage/minio.yaml"
click node_visualization "https://github.com/wbatchayon/observability-platform/blob/main/platform/visualization/grafana.yaml"
click node_monitoring "https://github.com/wbatchayon/observability-platform/blob/main/platform/monitoring/prometheus.yaml"
click node_incident "https://github.com/wbatchayon/observability-platform/tree/main/platform/incident"
click node_policy "https://github.com/wbatchayon/observability-platform/tree/main/platform/security"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_environment,node_cluster,node_package,node_flux,node_cluster_manifests toneBlue
class node_console,node_auth,node_env_api,node_pipeline_api,node_patch_api toneAmber
class node_agent,node_edge,node_ingestion,node_ingress,node_backends,node_object_store toneMint
class node_visualization,node_monitoring,node_incident toneRose
class node_vault,node_policy,node_operator,node_github toneIndigo
```

## Components

### Provisioning

- [Environment settings](https://github.com/wbatchayon/observability-platform/tree/main/environments): `environments`
- [Kubernetes cluster](https://github.com/wbatchayon/observability-platform/tree/main/bootstrap/00-cluster): `bootstrap/00-cluster`
- [Harbor package repo](https://github.com/wbatchayon/observability-platform/tree/main/bootstrap/30-package-repo): `bootstrap/30-package-repo`
- [Flux bootstrap](https://github.com/wbatchayon/observability-platform/tree/main/bootstrap/20-flux): `bootstrap/20-flux`
- [Cluster reconciliation](https://github.com/wbatchayon/observability-platform/tree/main/clusters): `clusters`

### Management console

- [Management GUI](https://github.com/wbatchayon/observability-platform/tree/main/gui/app): `gui/app`
- [Authentication](https://github.com/wbatchayon/observability-platform/blob/main/gui/app/api/auth/route.ts): `gui/app/api/auth/route.ts`
- [Environment configuration](https://github.com/wbatchayon/observability-platform/blob/main/gui/app/api/environments/route.ts): `gui/app/api/environments/route.ts`
- [Pipeline dispatch](https://github.com/wbatchayon/observability-platform/blob/main/gui/app/api/pipelines/route.ts): `gui/app/api/pipelines/route.ts`
- [Patch management](https://github.com/wbatchayon/observability-platform/blob/main/gui/app/api/patch-management/route.ts): `gui/app/api/patch-management/route.ts`

### Telemetry pipeline

- [VM OpenTelemetry agents](https://github.com/wbatchayon/observability-platform/tree/main/ansible/roles/otel-agent): `ansible/roles/otel-agent`
- [Edge collector](https://github.com/wbatchayon/observability-platform/blob/main/platform/ingestion/edge-collector.yaml): `platform/ingestion/edge-collector.yaml`
- [OTel gateway](https://github.com/wbatchayon/observability-platform/blob/main/platform/ingestion/otel-gateway.yaml): `platform/ingestion/otel-gateway.yaml`
- [HAProxy ingress](https://github.com/wbatchayon/observability-platform/blob/main/ingress/haproxy.yaml): `ingress/haproxy.yaml`
- [Loki Mimir Tempo](https://github.com/wbatchayon/observability-platform/tree/main/platform/backends): `platform/backends`
- [MinIO object storage](https://github.com/wbatchayon/observability-platform/blob/main/platform/storage/minio.yaml): `platform/storage/minio.yaml`

### Operations

- [Grafana visualization](https://github.com/wbatchayon/observability-platform/blob/main/platform/visualization/grafana.yaml): `platform/visualization/grafana.yaml`
- [Prometheus alerting](https://github.com/wbatchayon/observability-platform/blob/main/platform/monitoring/prometheus.yaml): `platform/monitoring/prometheus.yaml`
- [Incident management](https://github.com/wbatchayon/observability-platform/tree/main/platform/incident): `platform/incident`

### Security

- [Vault bootstrap](https://github.com/wbatchayon/observability-platform/tree/main/bootstrap/10-vault): `bootstrap/10-vault`
- [Cluster security policies](https://github.com/wbatchayon/observability-platform/tree/main/platform/security): `platform/security`

### Other components

- **Platform operator**
- **GitHub repository and Actions**

## Connections

- Platform operator → Environment settings: configures (evidence: `README.md`)
- Environment settings → Kubernetes cluster: sets inputs (evidence: `README.md`)
- Kubernetes cluster → Harbor package repo: bootstraps (evidence: `README.md`)
- Harbor package repo → Vault bootstrap: bootstraps (evidence: `README.md`)
- Vault bootstrap → Flux bootstrap: bootstraps (evidence: `README.md`)
- Flux bootstrap → Cluster reconciliation: reconciles (evidence: `README.md`)
- Platform operator → Management GUI: manages platform
- Management GUI → Authentication: authenticates via (evidence: `gui/app/layout.tsx`)
- Platform operator → Environment configuration: submits settings (evidence: `gui/app/api/environments/route.ts`)
- Environment configuration → GitHub repository and Actions: opens config PR (evidence: `gui/app/api/environments/route.ts`)
- Platform operator → Pipeline dispatch: dispatches pipeline (evidence: `gui/app/api/pipelines/route.ts`)
- Pipeline dispatch → GitHub repository and Actions: dispatches workflow (evidence: `gui/app/api/pipelines/route.ts`)
- Platform operator → Patch management: updates chart versions (evidence: `gui/app/api/patch-management/route.ts`)
- Patch management → GitHub repository and Actions: opens PR (evidence: `gui/app/api/patch-management/route.ts`)
- GitHub repository and Actions → Flux bootstrap: triggers deployment (evidence: `README.md`)
- Platform operator → VM OpenTelemetry agents: installs agents (evidence: `README.md`)
- VM OpenTelemetry agents → Edge collector: sends OTLP/mTLS (evidence: `README.md`)
- Edge collector → HAProxy ingress: forwards telemetry (evidence: `README.md`)
- HAProxy ingress → OTel gateway: routes TLS traffic (evidence: `README.md`)
- OTel gateway → Loki Mimir Tempo: exports signals (evidence: `README.md`)
- Loki Mimir Tempo → MinIO object storage: archives to S3 (evidence: `README.md`)
- Loki Mimir Tempo → Grafana visualization: feeds dashboards (evidence: `README.md`)
- Grafana visualization → Incident management: routes alerts (evidence: `README.md`)
- Prometheus alerting → Incident management: sends alerts (evidence: `README.md`)
- Vault bootstrap → VM OpenTelemetry agents: issues mTLS identity (evidence: `README.md`)
- Vault bootstrap → OTel gateway: issues mTLS identity (evidence: `README.md`)
- Cluster reconciliation → Cluster security policies: applies controls
