feat(monitoring): prometheus ingest labels

This commit is contained in:
arcnmx 2024-05-30 17:14:50 -07:00
parent bb371d19d3
commit a20ed52cfc
2 changed files with 18 additions and 2 deletions

View file

@ -58,8 +58,11 @@
};
};
serviceModule = {
system,
config,
name,
machine,
gensokyo-zone,
...
}: {
options = with lib.types; {
@ -76,6 +79,7 @@
type = attrsOf (submoduleWith {
modules = [portModule];
specialArgs = {
inherit gensokyo-zone machine system;
service = config;
};
});
@ -155,7 +159,9 @@ in {
type = attrsOf (submoduleWith {
modules = [serviceModule];
specialArgs = {
inherit gensokyo-zone;
machine = name;
system = config;
systemConfig = config;
};
});