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.
 
 
 
 
 
 
loki/tools/dev/k3d/README.md

1.5 KiB

Deploy Loki to k3d for Local Development

Pre-requisites

In order to use the make targets in this directory, make sure you have the following tools installed:

Note: in case docker is unable to resolve the local k3d registry hostname, add the following entry to the /etc/hosts file:

127.0.0.1 k3d-grafana

Spinning Up An Environment

Each environment has it's own make target. To bring up loki-distributed, for example, run:

make loki-distributed

Tearing Down An Environment

The down make target will tear down all environments.

make down

Helm

The helm-cluster environment is designed for spinning up a cluster with just Grafana and Prometheus Operator that can be helm installed into. First spin up the cluster, then run the make targets for installing the desired configuration.

Enterprise Logs

  1. make helm-cluster

  2. make helm-install-enterprise-logs

    This step will take a while. The provisioner is dependent on the tokengen job and for the Admin API to be in a healthy state. Be patient and it will evenutally complete. Once the provisioner job has completed, the Loki Canaries will come online, and Grafana will start, as both are waiting on secrets provisioned by the provisioner.