.
Some checks failed
Test action / kaas (push) Failing after 1s

This commit is contained in:
Chris Kruining 2026-03-23 12:36:32 +01:00
parent 478f26a9b8
commit 2bbbe03444
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
4 changed files with 29 additions and 16 deletions

View file

@ -1,11 +1,15 @@
{ pkgs, config, lib, namespace, ... }:
let
{
pkgs,
config,
lib,
namespace,
...
}: let
inherit (lib.modules) mkIf;
inherit (lib.options) mkEnableOption;
cfg = config.${namespace}.services.observability.promtail;
in
{
in {
options.${namespace}.services.observability.promtail = {
enable = mkEnableOption "enable Grafana Promtail";
};
@ -31,7 +35,7 @@ in
clients = [
{
url = "http://::1:9003/loki/api/v1/push";
url = "http://[::1]:9003/loki/api/v1/push";
}
];
@ -46,13 +50,16 @@ in
};
};
relabel_configs = [
{ source_labels = [ "__journal__systemd_unit" ]; target_label = "unit"; }
{
source_labels = ["__journal__systemd_unit"];
target_label = "unit";
}
];
}
];
};
};
networking.firewall.allowedTCPPorts = [ 9004 ];
networking.firewall.allowedTCPPorts = [9004];
};
}