From c373911a1bfacd0576d1739ec9f9800d98a18587 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= Date: Sat, 7 Oct 2023 03:59:23 +0200 Subject: [PATCH] conduit: Add coturn monitoring --- configuration/services/conduit.nix | 3 +++ configuration/services/metrics/default.nix | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/configuration/services/conduit.nix b/configuration/services/conduit.nix index dcd0103..8257592 100644 --- a/configuration/services/conduit.nix +++ b/configuration/services/conduit.nix @@ -173,6 +173,9 @@ in { # Various other security settings no-tlsv1 no-tlsv1_1 + + # Monitoring + prometheus ''; }; diff --git a/configuration/services/metrics/default.nix b/configuration/services/metrics/default.nix index 53a8a1d..3347467 100644 --- a/configuration/services/metrics/default.nix +++ b/configuration/services/metrics/default.nix @@ -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 + ]; } ]; }