feat: introduce ofborg stats

Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
This commit is contained in:
raito 2024-10-28 18:12:41 +01:00
parent ba3430b3ea
commit d2d5a4411e
2 changed files with 4 additions and 1 deletions

View file

@ -40,6 +40,7 @@
ofborg = { ofborg = {
rabbitmq.enable = true; rabbitmq.enable = true;
builder.enable = true; builder.enable = true;
stats.enable = true;
}; };
}; };

View file

@ -26,6 +26,7 @@ in {
options.bagel.services.ofborg = with lib; { options.bagel.services.ofborg = with lib; {
rabbitmq.enable = mkEnableOption "ofborg AMQP queue"; rabbitmq.enable = mkEnableOption "ofborg AMQP queue";
builder.enable = mkEnableOption "ofborg builder worker"; builder.enable = mkEnableOption "ofborg builder worker";
stats.enable = mkEnableOption "ofborg prometheus worker";
package = mkPackageOption pkgs "ofborg" { }; package = mkPackageOption pkgs "ofborg" { };
@ -91,9 +92,10 @@ in {
(mkIf cfg.builder.enable { (mkIf cfg.builder.enable {
systemd.services.ofborg-builder = mkOfborgWorker "builder" { }; 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-log-message-collector = {};
# systemd.services.ofborg-evaluation-filter = {}; # systemd.services.ofborg-evaluation-filter = {};
# systemd.services.ofborg-vcs-comment-filter = {}; # systemd.services.ofborg-vcs-comment-filter = {};