From 8ef4a63053e7e1143a7c7d706d47b20fc4ac98b3 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Mon, 11 Mar 2024 22:48:45 +0100 Subject: pkgs/scripts: monit->prometheus converter Not sure yet how much (if anything) I'll actually do with this, but it seemed like a fun idea to try and it's been way to long since I wrote anything in scheme. Entirely untested, as I don't actually have a prometheus running atm (apart from the one specifically for tracktrain on chaski). --- flora/services/monit.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'flora/services/monit.nix') diff --git a/flora/services/monit.nix b/flora/services/monit.nix index e9544e1..6c11522 100644 --- a/flora/services/monit.nix +++ b/flora/services/monit.nix @@ -75,4 +75,13 @@ } ''; }; + + systemd.services.monit_prometheus = { + enable = true; + serviceConfig = { + ExecStart = "${pkgs.gauche}/bin/gosh ${pkgs.copyPathToStore ../../pkgs/scripts/monit-prometheus.scm} -i http://localhost:2812 -o /tmp/dings"; + }; + path = [ pkgs.curl ]; + startAt = "*-*-* *:*:00"; + }; } -- cgit v1.2.3