Skip to content

Demo setup for Grafana Loki in microservices mode using MinIO as storage backend

Notifications You must be signed in to change notification settings

unguiculus/loki-minio-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

loki-minio-demo

Demo setup for Grafana Loki in microservices mode using MinIO as storage backend.

Pre-requisites

The following pre-requisites must be installed:

Usage

Run ./setup.sh. This will create a kind cluster and install all services.

What's Included?

A kind cluster with one master and three worker nodes is created. The cluster uses a local pull-through Docker registry for faster image pulling on the various kind nodes and to avoid rate-limiting issue with Docker hub.

The setup creates an almost production-ready, highly available, distributed Loki setup. However, there are no resources configured for pods in this setup because we have to be able to spin up a lot of pods on a local Docker setup. You may want to tweak your Docker configuration increasing the number of CPUs and the amount of memory it can use. In a production setup resources should definitely be configured.

Port 30123 is mapped to the same port on the master node in order to enable ingress.

The following Helm charts are installed:

Loki is installed with the following components:

  • gateway
  • ingester
  • distributor
  • querier
  • query-frontend
  • table-manager
  • compactor
  • ruler
  • memcached-chunks
  • memcached-frontend
  • memcached-index-queries

Single-Store (boltdb-shipper) is used for index storage with MinIO as storage backend.

The following services are reachable via ingress:

Test Loggers

Two instances of the test-logger chart are installed which simply log test messages for demo purposes, one in JSON format and one in logfmt format. The Promtail configuration demonstrates how to extract the log level as label.

Grafana Dashboards

Besides a number of dashboards that come with the kube-prometheus-stack, the following dashboards are provided for Loki:

About

Demo setup for Grafana Loki in microservices mode using MinIO as storage backend

Topics

Resources

Stars

Watchers

Forks