From e2cc46b37e33643cf3dd017adb8a009bf143e246 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sat, 25 Nov 2023 18:09:05 +0300 Subject: 2023-11-25 --- modules/nixos/promtail.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/nixos/promtail.nix') diff --git a/modules/nixos/promtail.nix b/modules/nixos/promtail.nix index 157eb72..28dc897 100644 --- a/modules/nixos/promtail.nix +++ b/modules/nixos/promtail.nix @@ -47,15 +47,15 @@ in { clients = [ { url = "${cfg.loki.url}/loki/api/v1/push"; - batchwait = "15s"; - batchsize = 1000000; + batchwait = "30s"; + batchsize = 100000; external_labels.host_id = config.networking.hostId; } ]; positions = { filename = "/tmp/positions.yaml"; - sync_period = "15s"; + sync_period = "30s"; ignore_invalid_yaml = true; }; @@ -73,10 +73,10 @@ in { then substring 1 (stringLength label - 1) label else label; }) [ - # Derived from systemd.journal fields[1][2]. + # Derived from systemd.journal fields[1]. # + # [1]: https://github.com/coreos/go-systemd/blob/main/sdjournal/journal.go#L335 # [1]: https://www.freedesktop.org/software/systemd/man/systemd.journal-fields.html - # [2]: https://github.com/coreos/go-systemd/blob/main/sdjournal/journal.go#L335 "MESSAGE" # "MESSAGE_ID" -- cgit v1.2.3