From ae928f753bcde9ac848895924c23fc0d1413daf6 Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Wed, 12 Jun 2024 16:42:53 -0400 Subject: [PATCH] feat: Add network errors to our tracking --- nix/base-system/darwin-configuration.nix | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/nix/base-system/darwin-configuration.nix b/nix/base-system/darwin-configuration.nix index f46f0f7..a7f2655 100644 --- a/nix/base-system/darwin-configuration.nix +++ b/nix/base-system/darwin-configuration.nix @@ -92,7 +92,7 @@ ]; } { - title = "Network Quality"; + title = "Network Latency"; query_type = "Range"; d3_tick_format = "~s"; yaxes = [ @@ -124,6 +124,28 @@ } ]; } + { + title = "Network Errors 5m delta"; + query_type = "Range"; + d3_tick_format = "~s"; + yaxes = [ + { + anchor = "y"; + } + ]; + plots = [ + { + source = "http://${config.services.prometheus.listen}"; + query = '' + delta(stun_attempt_counter{result="err"}[5m]) + ''; + config = { + name_format = "`UDP \${labels.domain} failure count`"; + yaxis = "y1"; + }; + } + ]; + } { title = "Network Traffic Bytes"; query_type = "Range";