Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Goutham Veeramachaneni ee9298d4b3 Remove invalidated key (#56) 7 years ago
.circleci Rename Tempo to Loki. (#36) 7 years ago
cmd Rename Tempo to Loki. (#36) 7 years ago
docs Remove invalidated key (#56) 7 years ago
ksonnet Add ksonnet config (#32) 7 years ago
loki-build-image Rename Tempo to Loki. (#36) 7 years ago
mixin Rename Tempo to Loki. (#36) 7 years ago
pkg Add external labels support (#43) 7 years ago
tools simple script to generate promtail yaml 7 years ago
vendor Update github.com/weaveworks/common. (#39) 7 years ago
.gitignore Rename Tempo to Loki. (#36) 7 years ago
.gometalinter.json Promtail updates (#30) 7 years ago
Gopkg.lock Update github.com/weaveworks/common. (#39) 7 years ago
Gopkg.toml Promtail updates (#30) 7 years ago
Makefile Make binaries actually static (#53) 7 years ago
README.md Remove invalidated key (#56) 7 years ago

README.md

Loki: Like Prometheus, but for logs.

CircleCI Design doc

Loki is a horizontally-scalable, highly-available, multi-tenant, log aggregation system inspired by Prometheus. It is designed to be very cost effective, as it does not index the contents of the logs, but rather a set of labels for each log stream.

Run it locally

Loki can be run in a single host, no-dependencies mode using the following commands.

Loki consists of 3 components; loki is the main server, responsible for storing logs and processing queries. promtail is the agent, responsible for gather logs and sending them to loki and grafana as the UI.

To run loki, use the following commands:

$ go build ./cmd/loki
$ ./loki -config.file=./docs/loki-local-config.yaml
...

To run promtail, use the following commands:

$ go build ./cmd/promtail
$ ./promtail -config.file=./docs/promtail-local-config.yaml
...

Grafana is Loki's UI, so you'll also want to run one of those:

$ docker run -ti -p 3000:3000 -e "GF_EXPLORE_ENABLED=true" grafana/grafana:master

In the Grafana UI (http://localhost:3000), log in with "admin"/"admin", add a new "Grafana Logging" datasource for http://host.docker.internal:3100, then go to explore and enjoy!