mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
feat(monitoring): gatus, grafana alerting to discord
This commit is contained in:
parent
cee397d774
commit
79ba879e6d
8 changed files with 769 additions and 0 deletions
|
|
@ -203,6 +203,24 @@ in
|
|||
};
|
||||
#ports.grpc = ...
|
||||
};
|
||||
gatus = {config, ...}: {
|
||||
id = mkAlmostOptionDefault "gatus";
|
||||
nixos = {
|
||||
serviceAttr = "gatus";
|
||||
assertions = mkIf config.enable [
|
||||
(nixosConfig: {
|
||||
assertion = config.ports.default.port == nixosConfig.services.gatus.settings.web.port;
|
||||
message = "port mismatch";
|
||||
})
|
||||
];
|
||||
};
|
||||
ports.default =
|
||||
mapAlmostOptionDefaults {
|
||||
port = 9095;
|
||||
protocol = "http";
|
||||
};
|
||||
#ports.grpc = ...
|
||||
};
|
||||
}
|
||||
// exporters;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue