comin: Scrape metrics with alloy

This commit is contained in:
SebastianStork 2026-03-03 18:43:15 +01:00
parent 8855886547
commit 050f635b8f
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q
2 changed files with 29 additions and 2 deletions

View file

@ -4,12 +4,21 @@
lib,
...
}:
let
cfg = config.custom.services.comin;
in
{
imports = [ inputs.comin.nixosModules.comin ];
options.custom.services.comin.enable = lib.mkEnableOption "";
options.custom.services.comin = {
enable = lib.mkEnableOption "";
metricsPort = lib.mkOption {
type = lib.types.port;
default = 4243;
};
};
config = lib.mkIf config.custom.services.comin.enable {
config = lib.mkIf cfg.enable {
services.comin = {
enable = true;
remotes = lib.singleton {
@ -18,5 +27,9 @@
branches.main.name = "deploy";
};
};
exporter = {
listen_address = "127.0.0.1";
inherit (cfg) port;
};
};
}