diff options
author | stuebinm | 2024-03-11 22:48:45 +0100 |
---|---|---|
committer | stuebinm | 2024-03-11 22:48:45 +0100 |
commit | 8ef4a63053e7e1143a7c7d706d47b20fc4ac98b3 (patch) | |
tree | db63aafd616073c12f54c59bce13d155fa14d24e /flora/services | |
parent | bc65bde440fbd1cf7363a3c827377791e1b32590 (diff) |
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).
Diffstat (limited to 'flora/services')
-rw-r--r-- | flora/services/monit.nix | 9 |
1 files changed, 9 insertions, 0 deletions
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"; + }; } |