Fireship · @fireship
Grafana is the goat... Let's deploy the LGTM stack
Uploaded February 1, 2025 · Length 5:59
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.
- 0:00
if Builders built houses the way
- 0:01
programmers build software the first
- 0:03
woodpecker to come along would destroy
- 0:05
civilization it's true because when an
- 0:07
experienced programmer sees a bug they
- 0:09
typically feel nothing and do nothing
- 0:11
because fixing it will just create five
- 0:12
more bugs unfortunately not all bugs can
- 0:14
be ignored like when the oxygen tank for
- 0:16
Apollo 13 exploded or when your
- 0:18
production servers go down and cost your
- 0:20
company money today's video might change
- 0:22
your life because you'll learn how to
- 0:23
instrument collect and visualize
- 0:25
Telemetry data from your server thanks
- 0:27
to the magic of open Telemetry and the
- 0:29
LG TM stack not only will this help you
- 0:31
visualize and detect anomalies in your
- 0:33
software if you self-host on your own
- 0:35
VPS but most importantly these beautiful
- 0:37
data visualizations will make your boss
- 0:39
think you're highly productive to get
- 0:41
started there are five Technologies we
- 0:42
need to learn open Telemetry graphon
- 0:45
Prometheus Tempo and Loki it sounds
- 0:47
intimidating but it's easier than you
- 0:49
think let's put 60 seconds on the clock
- 0:51
to learn them open Telemetry is an
- 0:53
industry standard framework that
- 0:54
collects Telemetry data from software
- 0:56
things like metrics logs and traces
- 0:59
while being vendor agnostic so it works
- 1:01
with any programming language but to use
- 1:03
it you need a backend to store and
- 1:04
visualize the data and that's where lgtm
- 1:07
comes in G is for graphon and it's the
- 1:09
front end UI where you can visualize
- 1:10
your data you can also set up alerts
- 1:12
create dashboards and waste thousands of
- 1:14
hours here then P is for Prometheus and
- 1:17
it's a Time series database for storing
- 1:18
metrics T is for Tempo and it's a
- 1:21
database for storing traces while L is
- 1:23
for Loki a database for storing logs
- 1:25
metrics traces and logs are the Holy
- 1:27
Trinity of software observability a
- 1:29
metric consists of multiple data points
- 1:31
over time like CPU usage a trace tracks
- 1:34
the flow of requests across multiple
- 1:35
services to pinpoint bottlenecks and of
- 1:38
course logs are logs collectively this
- 1:40
forms the otel lgtm stack where data is
- 1:42
collected with open Telemetry stored in
- 1:44
these databases and visualized with
- 1:46
grafana if that all sounds complicated
- 1:48
don't worry I thought I was too stupid
- 1:50
to host something like this myself but
- 1:51
over the next few minutes we'll have our
- 1:53
own Telemetry framework up and running
- 1:54
like a true professional the first thing
- 1:56
we'll need is a server and today we'll
- 1:58
be using hostinger the sponsor of


