conduit: Add coturn monitoring

This commit is contained in:
Tristan Daniël Maat 2023-10-07 03:59:23 +02:00
parent 214c59b7b3
commit c373911a1b
Signed by: tlater
GPG key ID: 49670FD774E43268
2 changed files with 7 additions and 1 deletions

View file

@ -173,6 +173,9 @@ in {
# Various other security settings
no-tlsv1
no-tlsv1_1
# Monitoring
prometheus
'';
};

View file

@ -141,7 +141,10 @@ in {
targets =
lib.mapAttrsToList (name: exporter: "${exporter.listenAddress}:${toString exporter.port}")
(lib.filterAttrs (name: exporter: (builtins.isAttrs exporter) && exporter.enable)
(config.services.prometheus.exporters // config.services.prometheus.local-exporters));
(config.services.prometheus.exporters // config.services.prometheus.local-exporters))
++ [
"127.0.0.1:9641" # coturn
];
}
];
}