feat: introduce ofborg stats
Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
This commit is contained in:
parent
ba3430b3ea
commit
d2d5a4411e
|
@ -40,6 +40,7 @@
|
||||||
ofborg = {
|
ofborg = {
|
||||||
rabbitmq.enable = true;
|
rabbitmq.enable = true;
|
||||||
builder.enable = true;
|
builder.enable = true;
|
||||||
|
stats.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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 = {};
|
||||||
|
|
Loading…
Reference in a new issue