diff options
author | Rory& <root@rory.gay> | 2024-08-28 21:40:53 +0200 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-08-28 21:40:53 +0200 |
commit | 62fb7f7c127ca8aee56b3903ee207dec766d0a11 (patch) | |
tree | ac38a9bc6228b990687dcb636dc13080bfbd334f /host/Rory-nginx/services/matrix/synapse/workers/client-reader.nix | |
parent | Desktop/i686 changes (diff) | |
download | Rory-Open-Architecture-62fb7f7c127ca8aee56b3903ee207dec766d0a11.tar.xz |
Monitoring?
Diffstat (limited to 'host/Rory-nginx/services/matrix/synapse/workers/client-reader.nix')
-rw-r--r-- | host/Rory-nginx/services/matrix/synapse/workers/client-reader.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/host/Rory-nginx/services/matrix/synapse/workers/client-reader.nix b/host/Rory-nginx/services/matrix/synapse/workers/client-reader.nix index 249084a..60c48a2 100644 --- a/host/Rory-nginx/services/matrix/synapse/workers/client-reader.nix +++ b/host/Rory-nginx/services/matrix/synapse/workers/client-reader.nix @@ -46,10 +46,14 @@ let }; in let - enabledResources = lib.optionals (lib.length workerRoutes.client > 0) [ "client" ] ++ lib.optionals (lib.length workerRoutes.federation > 0) [ "federation" ] ++ lib.optionals (lib.length workerRoutes.media > 0) [ "media" ]; + enabledResources = + lib.optionals (lib.length workerRoutes.client > 0) [ "client" ] + ++ lib.optionals (lib.length workerRoutes.federation > 0) [ "federation" ] + ++ lib.optionals (lib.length workerRoutes.media > 0) [ "media" ]; in { config = lib.mkIf (cfg.clientReaders > 0) { + monitoring.synapse.workerNames = lib.map (index: "${workerName}-${toString index}") workers; services.matrix-synapse = { settings = { instance_map = lib.listToAttrs ( |