mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-10 23:00:39 +02:00
chore: prepare monitoring config via globals
This commit is contained in:
parent
c3ad25a79b
commit
a33c46e4f5
3 changed files with 19 additions and 4 deletions
|
@ -98,10 +98,14 @@ in {
|
|||
ping = mkOption {
|
||||
type = types.attrsOf (types.submodule {
|
||||
options = {
|
||||
fromNetwork = mkOption {
|
||||
host = mkOption {
|
||||
type = types.str;
|
||||
description = "The network from which this service is reachable.";
|
||||
default = "external";
|
||||
description = "The IP/hostname to ping.";
|
||||
};
|
||||
|
||||
location = mkOption {
|
||||
type = types.str;
|
||||
description = "A location tag added to this metric.";
|
||||
};
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue