1 of 38

2 of 38

Learning the tricks of Loki: Distributed logging at scale

3 of 38

Anais Urlichs

SRE @CivoCloud

Alex Jones

Principal Engineer @CivoCloud

4 of 38

What is Civo?

5 of 38

Under 90s launch times

Transparent Pricing

Cloud-Native first

6 of 38

7 of 38

Introduction to Loki

Demo

The tricks of Loki

Agenda

8 of 38

Why do we use Loki?

9 of 38

Traditional logging solutions are no longer fit for purpose.

10 of 38

Expensive

Difficult to operate at scale

Challenging to correlate against metrics

11 of 38

Loki

12 of 38

We want a cost-effective way to collect, store and query logs.

13 of 38

Loki is a highly available, horizontally scalable, multi-tenant log aggregation system.

14 of 38

Cost-effective

Scales with your infrastructure

Integrates with your observability stack

15 of 38

Promtail

Logs

Logs

16 of 38

Promtail

17 of 38

Discover local logs

Process logs

Ship processed logs to Loki

18 of 38

19 of 38

How do we use Loki?

20 of 38

syslog

Compute�Node

Kubernetes�Control plane

Regional Supercluster

Pods

Promtail

Distributed�Gateway

Ingestor

Object�Storage

Query/Frontend

Querier

Index Memcache

21 of 38

Demo

22 of 38

The Tricks of Loki

23 of 38

Loki can be configured to suit your infrastructure topology and ingestion needs.

24 of 38

Results Memcache

Index Memcache

Chunks Memcache

Caching

Scaling

Distributor

Query/Frontend

Querier

KV stores

S3

GCS

Cassandra

And more....

25 of 38

Combine Loki with Tempo to extract traces from your logs.

26 of 38

27 of 38

Labels are powerful shortcuts to your logs.

28 of 38

29 of 38

LogQL takes querying to the next level.

30 of 38

rate({app="civo-csi-controller",namespace="kube-system",pod="civo-csi-controller-0"} |~ "error" [5m])

Filter Expression

Log Selector

31 of 38

Loki enables the creation of powerful visualisations

32 of 38

33 of 38

What’s next for Civo?

34 of 38

Inter-regional logging

Supply Chain observability

Additional Synthetic Monitoring for tenant clusters

35 of 38

Q & A

36 of 38

Thank You!

37 of 38

@urlichsanais

@AlexJonesax

38 of 38