Fireship · @fireship

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

Uploaded February 1, 2025 · Length 5:59

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

Summary

Deploy the LGTM stack with Open Telemetry, Grafana, Prometheus, Tempo, and Loki for software observability and data visualization.

  • grafana
  • open telemetry
  • prometheus
  • tempo
  • loki
  • software observability
  • data visualization
  • docker
  • hostinger

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    if Builders built houses the way

  2. 0:01

    programmers build software the first

  3. 0:03

    woodpecker to come along would destroy

  4. 0:05

    civilization it's true because when an

  5. 0:07

    experienced programmer sees a bug they

  6. 0:09

    typically feel nothing and do nothing

  7. 0:11

    because fixing it will just create five

  8. 0:12

    more bugs unfortunately not all bugs can

  9. 0:14

    be ignored like when the oxygen tank for

  10. 0:16

    Apollo 13 exploded or when your

  11. 0:18

    production servers go down and cost your

  12. 0:20

    company money today's video might change

  13. 0:22

    your life because you'll learn how to

  14. 0:23

    instrument collect and visualize

  15. 0:25

    Telemetry data from your server thanks

  16. 0:27

    to the magic of open Telemetry and the

  17. 0:29

    LG TM stack not only will this help you

  18. 0:31

    visualize and detect anomalies in your

  19. 0:33

    software if you self-host on your own

  20. 0:35

    VPS but most importantly these beautiful

  21. 0:37

    data visualizations will make your boss

  22. 0:39

    think you're highly productive to get

  23. 0:41

    started there are five Technologies we

  24. 0:42

    need to learn open Telemetry graphon

  25. 0:45

    Prometheus Tempo and Loki it sounds

  26. 0:47

    intimidating but it's easier than you

  27. 0:49

    think let's put 60 seconds on the clock

  28. 0:51

    to learn them open Telemetry is an

  29. 0:53

    industry standard framework that

  30. 0:54

    collects Telemetry data from software

  31. 0:56

    things like metrics logs and traces

  32. 0:59

    while being vendor agnostic so it works

  33. 1:01

    with any programming language but to use

  34. 1:03

    it you need a backend to store and

  35. 1:04

    visualize the data and that's where lgtm

  36. 1:07

    comes in G is for graphon and it's the

  37. 1:09

    front end UI where you can visualize

  38. 1:10

    your data you can also set up alerts

  39. 1:12

    create dashboards and waste thousands of

  40. 1:14

    hours here then P is for Prometheus and

  41. 1:17

    it's a Time series database for storing

  42. 1:18

    metrics T is for Tempo and it's a

  43. 1:21

    database for storing traces while L is

  44. 1:23

    for Loki a database for storing logs

  45. 1:25

    metrics traces and logs are the Holy

  46. 1:27

    Trinity of software observability a

  47. 1:29

    metric consists of multiple data points

  48. 1:31

    over time like CPU usage a trace tracks

  49. 1:34

    the flow of requests across multiple

  50. 1:35

    services to pinpoint bottlenecks and of

  51. 1:38

    course logs are logs collectively this

  52. 1:40

    forms the otel lgtm stack where data is

  53. 1:42

    collected with open Telemetry stored in

  54. 1:44

    these databases and visualized with

  55. 1:46

    grafana if that all sounds complicated

  56. 1:48

    don't worry I thought I was too stupid

  57. 1:50

    to host something like this myself but

  58. 1:51

    over the next few minutes we'll have our

  59. 1:53

    own Telemetry framework up and running

  60. 1:54

    like a true professional the first thing

  61. 1:56

    we'll need is a server and today we'll

  62. 1:58

    be using hostinger the sponsor of