graph TB
subgraph VM["🖥️ Virtual Machine"]
APP["Aplicação
(Instrumentada com OTel SDK)"]
AGENT["OpenTelemetry Collector
(Agent Mode)"]
subgraph AGENT_PIPELINE["Pipeline do Collector"]
REC["Receivers
- OTLP (4317/4318)
- Prometheus
- Host Metrics"]
PROC["Processors
- batch
- memory_limiter
- resource"]
EXP["Exporters
- OTLP
- Prometheus Remote Write"]
end
end
subgraph NETWORK["🌐 Rede"]
GATEWAY["OpenTelemetry Collector
(Gateway Mode)"]
subgraph GATEWAY_PIPELINE["Pipeline Gateway"]
REC_GW["Receivers
- OTLP"]
PROC_GW["Processors
- batch
- tail_sampling
- attributes"]
EXP_GW["Exporters
- otlphttp
- prometheusremotewrite
- loki"]
end
end
subgraph OBSERVABILITY["☁️ Grafana Stack Server"]
TEMPO["Tempo
(Traces)"]
LOKI["Loki
(Logs)"]
MIMIR["Mimir/Prometheus
(Metrics)"]
GRAFANA["Grafana
(Visualização)"]
end
APP -->|"Telemetria
(gRPC/HTTP)"| REC
REC --> PROC
PROC --> EXP
EXP -->|"OTLP
:4317"| REC_GW
REC_GW --> PROC_GW
PROC_GW --> EXP_GW
EXP_GW -->|"Traces
(OTLP)"| TEMPO
EXP_GW -->|"Logs
(HTTP)"| LOKI
EXP_GW -->|"Metrics
(Remote Write)"| MIMIR
TEMPO --> GRAFANA
LOKI --> GRAFANA
MIMIR --> GRAFANA
style VM fill:#2d3748,stroke:#4a5568,color:#fff
style NETWORK fill:#1a365d,stroke:#2c5282,color:#fff
style OBSERVABILITY fill:#1e4620,stroke:#2f855a,color:#fff
style AGENT fill:#4a5568,stroke:#718096,color:#fff
style GATEWAY fill:#2c5282,stroke:#3182ce,color:#fff
style GRAFANA fill:#f6ad55,stroke:#ed8936,color:#000