From b46c8d3d5ab2fb9d152dd612a9249848c2b47597 Mon Sep 17 00:00:00 2001 From: Max Erenberg Date: Fri, 10 Sep 2021 08:53:37 -0400 Subject: [PATCH] add stats (#302) The old website had a `/stats` page which showed metrics for several campus network interfaces. This PR adds them back in. Reviewed-on: https://git.csclub.uwaterloo.ca/www/www-new/pulls/302 Co-authored-by: Max Erenberg Co-committed-by: Max Erenberg --- next.config.js | 10 ++++++- public/stats.html | 67 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+), 1 deletion(-) create mode 100644 public/stats.html diff --git a/next.config.js b/next.config.js index 14eb4e17..bfccd253 100644 --- a/next.config.js +++ b/next.config.js @@ -6,5 +6,13 @@ module.exports = withMDX({ pageExtensions: ["ts", "tsx", "mdx"], trailingSlash: true, basePath: process.env.NEXT_PUBLIC_BASE_PATH, - eslint: { ignoreDuringBuilds: true } + eslint: { ignoreDuringBuilds: true }, + rewrites: async () => { + return [ + { + source: '/stats(/?)', + destination: '/stats.html', + }, + ]; + }, }); diff --git a/public/stats.html b/public/stats.html new file mode 100644 index 00000000..0321f5fd --- /dev/null +++ b/public/stats.html @@ -0,0 +1,67 @@ + + + + Network Statistics + + + + + + + + + + + + + + + + + + + + + + + + + + + +
IST: + Router Graphs | + IST Network Services +
 

EXTERNAL DEVICES

+ EXT-RT-MC (Rogers, 10 Gbps)
+ Rogers Interfaces (10 Gbps) +
+ EXT-RT-MC (ORION, 10 Gbps)
+ ORION Interfaces (10 Gbps) +
+ EXT-RT-RAC (OpenFace, 10 Gbps)
+ OpenFace Interface (10 Gbps) +
 

CORE DEVICES

+ CN-RT-MC (10 Gbps)
+ CN-RT-MC +
+ CN-RT-RAC (10 Gbps)
+ CN-RT-RAC +
+ + + +