From cd8afe6f6728e7780685fff3edceafb049113c10 Mon Sep 17 00:00:00 2001 From: Michael Walker Date: Fri, 25 Oct 2024 21:08:55 +0100 Subject: [PATCH] [nyarlathotep] Load victoriametrics data after boot It's not persisted, so it's lost on boot. 5m is too long a delay, it could probably be 1m, but nyarlathotep only reboots in the early hours of the morning so I'm not too concerned with getting the data ASAP. --- hosts/nyarlathotep/configuration.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hosts/nyarlathotep/configuration.nix b/hosts/nyarlathotep/configuration.nix index 1f23dd71..0a651b8f 100644 --- a/hosts/nyarlathotep/configuration.nix +++ b/hosts/nyarlathotep/configuration.nix @@ -477,6 +477,8 @@ in VICTORIAMETRICS_URI = "http://${config.services.victoriametrics.listenAddress}"; }; }; + # also reload data after boot + systemd.timers.hledger-export-to-victoriametrics.timerConfig.OnBootSec = "5m"; services.victoriametrics = { enable = true;