This is documentation for the next version of Grafana Loki documentation. For the latest stable release, go to the latest version.

Documentationbreadcrumb arrow Grafana Lokibreadcrumb arrow Communitybreadcrumb arrow Contributing to Loki
Open source

Contributing to Loki

For the full contribution guide, see CONTRIBUTING.md in the root of the repository.

Building

Clone the repository and use make to build:

Bash
git clone https://github.com/grafana/loki.git
cd loki
CommandOutput
make loki./cmd/loki/loki
make logcli./cmd/logcli/logcli
make loki-canary./cmd/loki-canary/loki-canary
make allall of the above
make loki-imageDocker image for Loki

Running tests

Bash
make test              # unit tests
make test-integration  # integration tests (requires Docker, ~15 min)
make lint              # run linters

Contribute to the Helm Chart

Refer to production/helm/loki/CONTRIBUTING.md for chart-specific guidelines. The official Loki Helm chart is maintained in the grafana/helm-charts repository.