How to install grafana/loki. Official installation instructions. Project installation guide. Framework or library installation. Build installation instructions. How to setup and install from GitHub. Installation steps and setup instructions. Official docs and installation instructions GitHub.
grafana/loki Installation Guide
How to install grafana/loki. Official project installation instructions and setup guide.
⚡
Automated Install (Recommended)
Quick installation instructions for grafana/loki. This is the fastest way to complete project installation and setup.
Install via curl
curl -fsSL https://hexmos.com/ipm-install | bash &&
ipm i grafana/lokior
Install via npx
npx @hexmos/ipm i grafana/lokiPrerequisites
Go
languageVersion: >1.16
Docker
system_toolLoki can be run in a single host, no-dependencies mode using the following commands.
Git
system_toolUsed for cloning the Loki repository from GitHub.
Alloy
package_managerVersion: latest
Manual Installation Methods
Manual installation instructions. How to install from GitHub source.
Building from Source
git clone https://github.com/grafana/loki.git
cd loki
go build ./cmd/loki
./loki -config.file=./cmd/loki/loki-local-config.yamlManual Installation (Loki)
cd lokiPost Installation Steps
- Start the Loki server using the command: `loki-server`.
- Access the Grafana UI at http://localhost:3000/ to view your logs.
