diff --git a/lib/monitoring.nix b/lib/monitoring.nix index 57bffb4..b10703b 100644 --- a/lib/monitoring.nix +++ b/lib/monitoring.nix @@ -58,10 +58,9 @@ let }; # Build effective labels for a host - # Always includes hostname; only includes tier/priority/role if non-default + # Always includes hostname and tier; only includes priority/role if non-default buildEffectiveLabels = host: - { hostname = host.hostname; } - // (lib.optionalAttrs (host.tier != "prod") { tier = host.tier; }) + { hostname = host.hostname; tier = host.tier; } // (lib.optionalAttrs (host.priority != "high") { priority = host.priority; }) // (lib.optionalAttrs (host.role != null) { role = host.role; }) // host.labels;