update docs
This commit is contained in:
@@ -11,60 +11,36 @@ digraph Deployment {
|
||||
|
||||
node [shape=box, style="rounded,filled"];
|
||||
|
||||
// Local Development
|
||||
// Local Stack
|
||||
subgraph cluster_local {
|
||||
label="Local Development";
|
||||
style=filled;
|
||||
fillcolor="#E3F2FD";
|
||||
|
||||
subgraph cluster_kind {
|
||||
label="Kind Cluster";
|
||||
style=filled;
|
||||
fillcolor="#BBDEFB";
|
||||
|
||||
tilt [label="Tilt\n(Live Reload)", shape=component, fillcolor="#90CAF9"];
|
||||
k8s_local [label="K8s Pods\n(via Kustomize)", fillcolor="#64B5F6"];
|
||||
}
|
||||
|
||||
compose [label="Docker Compose\n(Alternative)", fillcolor="#90CAF9", style="rounded,dashed"];
|
||||
}
|
||||
|
||||
// AWS Staging/Demo
|
||||
subgraph cluster_aws {
|
||||
label="AWS (sysmonstm.mcrn.ar)";
|
||||
label="Local Stack (Docker Compose)";
|
||||
style=filled;
|
||||
fillcolor="#E8F5E9";
|
||||
|
||||
subgraph cluster_ec2 {
|
||||
label="EC2 t2.small";
|
||||
style=filled;
|
||||
fillcolor="#C8E6C9";
|
||||
aggregator [label="Aggregator\n(gRPC Server)", fillcolor="#A5D6A7"];
|
||||
gateway [label="Gateway\n(FastAPI)", fillcolor="#A5D6A7"];
|
||||
alerts [label="Alerts\nService", fillcolor="#A5D6A7"];
|
||||
redis [label="Redis", shape=cylinder, fillcolor="#C8E6C9"];
|
||||
timescaledb [label="TimescaleDB", shape=cylinder, fillcolor="#C8E6C9"];
|
||||
}
|
||||
|
||||
compose_ec2 [label="Docker Compose\n(All Services)", fillcolor="#A5D6A7"];
|
||||
nginx [label="Nginx\n(SSL Termination)", fillcolor="#81C784"];
|
||||
}
|
||||
// AWS Edge
|
||||
subgraph cluster_aws {
|
||||
label="AWS (sysmonstm.mcrn.ar)";
|
||||
style=filled;
|
||||
fillcolor="#F3E5F5";
|
||||
|
||||
subgraph cluster_lambda {
|
||||
label="Lambda (Data Processing)";
|
||||
style=filled;
|
||||
fillcolor="#DCEDC8";
|
||||
|
||||
lambda_agg [label="Aggregator\nLambda", fillcolor="#AED581"];
|
||||
lambda_compact [label="Compactor\nLambda", fillcolor="#9CCC65"];
|
||||
}
|
||||
|
||||
sqs [label="SQS\n(Buffer)", shape=hexagon, fillcolor="#FFE082"];
|
||||
s3 [label="S3\n(Backup)", shape=cylinder, fillcolor="#FFE082"];
|
||||
edge_relay [label="Edge\n(WebSocket Relay)", fillcolor="#CE93D8"];
|
||||
}
|
||||
|
||||
// CI/CD
|
||||
subgraph cluster_cicd {
|
||||
label="CI/CD";
|
||||
style=filled;
|
||||
fillcolor="#F3E5F5";
|
||||
fillcolor="#E3F2FD";
|
||||
|
||||
woodpecker [label="Woodpecker CI", fillcolor="#CE93D8"];
|
||||
registry [label="Container\nRegistry", shape=cylinder, fillcolor="#BA68C8"];
|
||||
woodpecker [label="Woodpecker CI", fillcolor="#90CAF9"];
|
||||
registry [label="Container\nRegistry", shape=cylinder, fillcolor="#64B5F6"];
|
||||
}
|
||||
|
||||
// Collectors (External)
|
||||
@@ -78,18 +54,22 @@ digraph Deployment {
|
||||
coll3 [label="Collector\n(Machine N)", fillcolor="#FFCCBC"];
|
||||
}
|
||||
|
||||
// Browser
|
||||
browser [label="Browser\n(Dashboard)", fillcolor="#FFF3E0"];
|
||||
|
||||
// Connections
|
||||
tilt -> k8s_local [style=invis];
|
||||
coll1 -> aggregator [label="gRPC"];
|
||||
coll2 -> aggregator [label="gRPC"];
|
||||
coll3 -> aggregator [label="gRPC"];
|
||||
|
||||
aggregator -> redis [label="State"];
|
||||
aggregator -> timescaledb [label="Store"];
|
||||
gateway -> aggregator [label="gRPC"];
|
||||
gateway -> edge_relay [label="WebSocket\nForward"];
|
||||
|
||||
edge_relay -> browser [label="WebSocket", dir=both];
|
||||
|
||||
woodpecker -> registry [label="Push"];
|
||||
registry -> compose_ec2 [label="Pull"];
|
||||
registry -> k8s_local [label="Pull", style=dashed];
|
||||
|
||||
nginx -> compose_ec2 [label="Proxy"];
|
||||
compose_ec2 -> sqs [label="Events"];
|
||||
sqs -> lambda_agg [label="Trigger"];
|
||||
lambda_compact -> s3 [label="Archive"];
|
||||
|
||||
coll1 -> compose_ec2 [label="gRPC", lhead=cluster_ec2];
|
||||
coll2 -> compose_ec2 [label="gRPC", lhead=cluster_ec2];
|
||||
coll3 -> compose_ec2 [label="gRPC", lhead=cluster_ec2];
|
||||
registry -> edge_relay [label="Pull", style=dashed];
|
||||
registry -> aggregator [label="Pull", style=dashed, lhead=cluster_local];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user