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 = {};