cd ../blog
ObservabilityFebruary 28, 202614 min read

How I Built a Unified Observability Platform for ~500 Hosts with OpenTelemetry + LGTM

An in-depth case study of the Unified Observability Platform: architecture and network diagrams, OpenTelemetry pipeline design, LGTM deployment on EKS, demo walkthrough, and cost trade-offs at 500-host scale.

Roger Vasconcelos
Roger Vasconcelos
AWS DevOps Architect
How I Built a Unified Observability Platform for ~500 Hosts with OpenTelemetry + LGTM

Photo by Luke Chesser on Unsplash

Most observability initiatives fail for one reason: environments are heterogeneous, but telemetry strategy is not. This project was designed to unify metrics, logs, and traces across AWS and on-prem compute platforms using open standards and infrastructure as code.

Project repository: Unified Observability Platform

Project Goals

The target was a production-grade platform with:

  • Coverage across EKS, ECS Fargate, ECS EC2, bare EC2, and on-prem Linux and Windows
  • Minimal code changes for modern apps and viable observability for legacy apps
  • Native cross-signal correlation in one interface
  • Low lock-in and portable storage strategy
  • A realistic demo mode that mirrors production behavior at lower cost
  • The design point documented in the repo is around 500 compute instances.

    Architecture Overview

    The platform uses a 3-layer architecture:

  • Collection layer: OpenTelemetry Collectors near workloads
  • Gateway layer: centralized policy, filtering, tail sampling, fan-out
  • Backend layer: Grafana LGTM stack (Mimir, Loki, Tempo, Grafana) on EKS
  • AWS Infrastructure Diagram

    AWS infrastructure diagram

    Telemetry Data Flow Diagram

    Telemetry data flow diagram

    EKS Cluster Architecture Diagram

    EKS cluster architecture diagram

    Network Architecture Diagram

    Network architecture diagram

    Why OpenTelemetry + LGTM

    OpenTelemetry provided the collector and instrumentation standard across all platform types. LGTM provided specialized backends with native correlation paths:

  • Mimir for PromQL metrics
  • Loki for label-indexed logs
  • Tempo for distributed tracing and service graph metrics
  • Grafana for end-to-end navigation and alerting
  • Correlation paths implemented:

  • Metrics to traces via exemplars
  • Logs to traces via derived fields
  • Traces to logs and traces to metrics through Tempo and Grafana integrations
  • Platform Coverage Patterns

    Instead of one generic collector rollout, deployment was mapped per platform:

  • EKS Linux: OTel Operator + DaemonSet
  • ECS Fargate: sidecar
  • ECS EC2 Linux: daemon task pattern
  • EC2 and on-prem Linux: systemd deployment
  • EC2 and on-prem Windows: Windows service deployment
  • This pattern gave consistency where possible and platform-specific pragmatism where required.

    Auto-Instrumentation and Legacy Strategy

    For modern services, instrumentation is injected with operator-based annotations (no app code changes required for baseline telemetry).

    For legacy applications that cannot be modified, agent-only collection still captures:

  • host metrics
  • file and system logs
  • Windows event logs where applicable
  • infrastructure and exporter-level signals
  • This hybrid strategy is critical in real enterprise estates where modernization is partial.

    Sampling and Data Lifecycle

    A multi-tier sampling strategy keeps signal value high while controlling trace storage:

  • always keep errors
  • keep high latency traces at higher rates
  • aggressively sample normal traffic
  • drop low-value health-check noise
  • On storage, S3-compatible backends and lifecycle policies support hot-to-cold retention transitions and cloud portability.

    Infrastructure as Code and Delivery Model

    The platform is managed as code end-to-end:

  • Terraform for AWS infrastructure composition
  • Helm for LGTM and OTel components in Kubernetes
  • Ansible for on-prem agent rollout
  • Operationally, this provides reproducible deployments, easier drift control, and cleaner handoff across teams.

    Demo Mode (Cost-Optimized but Feature-Representative)

    One of the strongest parts of this project is demo mode: same architectural patterns, reduced replica counts and resources, and autoscaling with Graviton Spot capacity.

    Documented demo cost target is around 100 to 150 USD per month versus roughly 2,840 USD per month at the full self-hosted production profile.

    ArgoCD Demo View

    ArgoCD healthy applications screenshot

    Grafana Trace Waterfall (Tempo)

    Grafana trace waterfall screenshot

    Grafana Metrics Explorer (Mimir)

    Grafana metrics explorer screenshot

    Kubernetes Runtime Health (k9s)

    k9s all pods running screenshot

    Cost and Trade-Offs

    At the target scale, this architecture is positioned as significantly more cost-efficient than several managed observability options, with the known trade-off of owning backend operations.

    That trade-off is often acceptable when teams require:

  • tighter cost control
  • data residency control
  • reduced vendor lock-in risk
  • deeper pipeline-level customization
  • Key Engineering Takeaways

  • Standardize the telemetry contract first, then optimize per platform.
  • Put policy in the gateway layer; keep edge collectors simple.
  • Cross-signal correlation is where observability value compounds.
  • Treat observability as product infrastructure: code, runbooks, lifecycle, and cost model.
  • If you are evaluating observability architecture choices for AWS and hybrid estates, I can help map your requirements to a practical implementation path. Contact NeuralOps.

    OpenTelemetryGrafanaMimirLokiTempoAWSEKSTerraform

    Share this article

    Roger Vasconcelos

    Roger Vasconcelos

    AWS DevOps Architect

    Senior AWS DevOps Architect with 10 AWS certifications and 20+ years of experience, running a boutique practice augmented by a fleet of AI agents.

    Learn more about me

    Need Help with Your Cloud Infrastructure?

    Let's discuss how I can help you implement these best practices in your organization.

    Get in Touch