diff --git a/nixos/modules/comin.nix b/nixos/modules/comin.nix index a8403c1..2a5a451 100644 --- a/nixos/modules/comin.nix +++ b/nixos/modules/comin.nix @@ -53,7 +53,7 @@ in "comin_main_signed \(if ($r.selected_commit_should_be_signed | not) or $r.selected_commit_signed then 1 else 0 end)", "# HELP comin_main_pending Head of main differs from the last evaluated commit.", "# TYPE comin_main_pending gauge", - "comin_main_pending \(if $head == .builder.generation.selected_commit_id then 0 else 1 end)" + "comin_main_pending \(if ($head // "") == "" or $head == .builder.generation.selected_commit_id or $head == .deployer.deployment.generation.selected_commit_id then 0 else 1 end)" ' > ${textfile}/comin.prom.tmp mv ${textfile}/comin.prom.tmp ${textfile}/comin.prom ''; @@ -63,5 +63,5 @@ in timerConfig.OnCalendar = "*:0/2"; }; - asxpio.security.ports = [ "tcp/4243/comin" ]; + asxpio.security.ports = [ "tcp/4243/.comin-wrapped" ]; }