Skip to content

Loki

services.loki.configFile

Specify a configuration file that Loki should use.

Type: null or path

Default

null

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/loki.nix

services.loki.configuration

Specify the configuration for Loki in Nix.

Type: JSON value

Default

{ }

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/loki.nix

services.loki.dataDir

Specify the directory for Loki.

Type: path

Default

"/var/lib/loki"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/loki.nix

services.loki.enable

Whether to enable loki. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/loki.nix

services.loki.extraFlags

Specify a list of additional command line flags, which get escaped and are then passed to Loki.

Type: list of string

Default

[ ]

Example

["--server.http-listen-port=3101"]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/loki.nix

services.loki.group

Group under which the Loki service runs.

Type: string

Default

"loki"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/loki.nix

services.loki.package

The grafana-loki package to use. Type: package

Default

pkgs.grafana-loki

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/loki.nix

services.loki.user

User under which the Loki service runs.

Type: string

Default

"loki"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/loki.nix