Jump to content

Grafana Loki

From NixOS Wiki

Grafana Loki is a log aggregation system. "Like Prometheus, but for logs."

Grafana Loki

Log aggregation system Application

100%
Developer(s)Grafana Labs
StatusActive
Language(s)Go and TypeScript
LicenseGNU Affero General Public License v3.0 only
External links
GitHubgrafana/loki
Documentationhttps://grafana.com/docs/loki/latest/

Usage

You can configure Loki with services.loki, and pass settings with either a YAML file in configFile, or a Nix attribute set in configuration.

❄︎ /etc/nixos/configuration.nix
{
   services.loki = {
      enable = true;

      configuration = {
        auth_enabled = false;
        server.http_listen_port = 3100;

        # etc.
      };

      # or alternatively
      #configFile = ./loki-config.yaml;
   };
}

See also