From 8fa0e5abe39ca76e92a0af814cef0a2aafdafbab Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Mon, 28 Oct 2024 18:12:41 +0100 Subject: [PATCH] feat: introduce ofborg stats Signed-off-by: Raito Bezarius --- hosts/bagel-box/default.nix | 1 + services/ofborg/default.nix | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/hosts/bagel-box/default.nix b/hosts/bagel-box/default.nix index 13d4360..39f7f5c 100644 --- a/hosts/bagel-box/default.nix +++ b/hosts/bagel-box/default.nix @@ -40,6 +40,7 @@ ofborg = { rabbitmq.enable = true; builder.enable = true; + stats.enable = true; }; }; diff --git a/services/ofborg/default.nix b/services/ofborg/default.nix index 80f3d19..08a68e0 100644 --- a/services/ofborg/default.nix +++ b/services/ofborg/default.nix @@ -26,6 +26,7 @@ in { options.bagel.services.ofborg = with lib; { rabbitmq.enable = mkEnableOption "ofborg AMQP queue"; builder.enable = mkEnableOption "ofborg builder worker"; + stats.enable = mkEnableOption "ofborg prometheus worker"; package = mkPackageOption pkgs "ofborg" { }; @@ -91,8 +92,10 @@ in { (mkIf cfg.builder.enable { systemd.services.ofborg-builder = mkOfborgWorker "builder" { }; }) + (mkIf cfg.stats.enable { + systemd.services.ofborg-stats = mkOfborgWorker "stats" { }; + }) ]; - # systemd.services.ofborg-stats = {}; # systemd.services.ofborg-log-message-collector = {}; # systemd.services.ofborg-evaluation-filter = {}; # systemd.services.ofborg-vcs-comment-filter = {};