From b499223e2ade61b5d70e6a6cdab96fcbb353657a Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 3 Jun 2023 11:44:12 +0200 Subject: [PATCH] VEGAS/backbone-routing: add monitoring --- .../VEGAS/services/backbone-routing/default.nix | 1 + .../services/backbone-routing/monitoring.nix | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 hosts/VEGAS/services/backbone-routing/monitoring.nix diff --git a/hosts/VEGAS/services/backbone-routing/default.nix b/hosts/VEGAS/services/backbone-routing/default.nix index 76b4038..3551dec 100644 --- a/hosts/VEGAS/services/backbone-routing/default.nix +++ b/hosts/VEGAS/services/backbone-routing/default.nix @@ -6,6 +6,7 @@ in imports = [ ./port-forward.nix ./peering.nix + ./monitoring.nix ]; networking.nat = { diff --git a/hosts/VEGAS/services/backbone-routing/monitoring.nix b/hosts/VEGAS/services/backbone-routing/monitoring.nix new file mode 100644 index 0000000..7dfd3f8 --- /dev/null +++ b/hosts/VEGAS/services/backbone-routing/monitoring.nix @@ -0,0 +1,16 @@ +{ + services.grafana-agent.settings.integrations.blackbox = { + blackbox_targets = [ + { + name = "default/autobahn"; + module = "tcpConnect"; + address = "10.15.0.2:80"; + } + { + name = "default/anon-relay"; + module = "tcpConnect"; + address = "10.64.0.1:1080"; + } + ]; + }; +}