Documentation for automated readers
A curated documentation index is available at: https://grafana.com/llms.txt
A complete documentation index is available at: https://grafana.com/llms-full.txt
These indexes can help with page discovery before fetching individual documents.
This page is also available in Markdown, which may be easier for automated readers and AI tools to parse than HTML. The Markdown version is available at https://grafana.com/docs/loki/next/community/contributing.md, or by sending Accept: text/markdown to https://grafana.com/docs/loki/next/community/contributing/. For broader documentation discovery, the curated index is available at https://grafana.com/llms.txt and the complete index is available at https://grafana.com/llms-full.txt.
This is documentation for the next version of Grafana Loki documentation. For the latest stable release, go to the latest version.
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:
git clone https://github.com/grafana/loki.git
cd loki| Command | Output |
|---|---|
make loki | ./cmd/loki/loki |
make logcli | ./cmd/logcli/logcli |
make loki-canary | ./cmd/loki-canary/loki-canary |
make all | all of the above |
make loki-image | Docker image for Loki |
Running tests
make test # unit tests
make test-integration # integration tests (requires Docker, ~15 min)
make lint # run lintersContribute 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.
Was this page helpful?
Related resources from Grafana Labs


