Note details

Grafana is the goat... Let's deploy the LGTM stack

BY eifp2
June 9, 2025
Public
Private
2273 views

Video Summary

Introduction

  • Metaphor: Building software vs. building houses, highlighting vulnerabilities in software.
  • Discusses the importance of bug fixes and the capability to monitor software effectively.
  • Introduces the concept of telemetry and its benefits, particularly with visualization and detection.

Core Technology and Tools

  1. OpenTelemetry: Industry-standard framework for collecting telemetry data, including metrics, logs, and traces. It's vendor-agnostic and supports various programming languages.
  2. LGTM Stack:
    • Grafana (G): Front-end for data visualization, dashboards, and alerts.
    • Prometheus (P): Database for storing time-series data (metrics).
    • Tempo (T): Database for storing traces.
    • Loki (L): Database for storing logs.

Steps to Set Up

  1. Server Setup:

    • Uses Hostinger for hosting a Linux VPS.
    • Current promotion offering significant discounts.
    • Emphasizes the ease of setup with Docker pre-installed.
  2. Deploying LGTM Backend:

    • Uses a Docker image for OTEL LGTM, simplifying the installation process.
    • Access Grafana via the browser to manage and visualize collected data.

Data Integration

  • Grafana needs a data source to be functional.
  • Example application uses Deno with built-in telemetry support.
  • Custom traces and metrics can be created using open telemetry to track different data aspects.

Running and Testing

  • A sample application runs on the server, demonstrating telemetry's effectiveness.
  • Grafana's Explore feature helps filter and analyze logs, metrics, and traces.

Additional Points

  • Security considerations are critical when deploying a telemetry backend.
  • Hostinger offers protection with DDoS filtering and firewall configurations.

Conclusion

  • Encouragement to explore more tutorials and a call for viewer engagement.