mirror of
https://github.com/dali99/nixos-matrix-modules.git
synced 2025-09-15 09:35:03 +02:00
Automatic metrics listener
This commit is contained in:
@@ -277,7 +277,7 @@ in
|
|||||||
description = "disable presence tracking, if you're having perfomance issues this can have a big impact";
|
description = "disable presence tracking, if you're having perfomance issues this can have a big impact";
|
||||||
default = true;
|
default = true;
|
||||||
};
|
};
|
||||||
|
/
|
||||||
options.listeners = lib.mkOption {
|
options.listeners = lib.mkOption {
|
||||||
type = lib.types.listOf (lib.types.submodule {
|
type = lib.types.listOf (lib.types.submodule {
|
||||||
options.port = lib.mkOption {
|
options.port = lib.mkOption {
|
||||||
@@ -342,6 +342,13 @@ in
|
|||||||
{ names = [ "replication" ]; }
|
{ names = [ "replication" ]; }
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
|
(lib.mkIf cfg.settings.enable_metrics {
|
||||||
|
port = 9000;
|
||||||
|
bind_addresses = [ "127.0.0.1" ];
|
||||||
|
resources = [
|
||||||
|
{ names = [ "metrics" ]; }
|
||||||
|
];
|
||||||
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user