The old website had a `/stats` page which showed metrics for several campus network interfaces.
This PR adds them back in.

Reviewed-on: www/www-new#302
Co-authored-by: Max Erenberg <merenber@csclub.uwaterloo.ca>
Co-committed-by: Max Erenberg <merenber@csclub.uwaterloo.ca>
fix-md-font
Max Erenberg 1 year ago
parent 215a734bc6
commit b46c8d3d5a
  1. 10
      next.config.js
  2. 67
      public/stats.html

@ -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',
},
];
},
});

@ -0,0 +1,67 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Network Statistics</title>
<style type="text/css">
body {
}
td.stats1 {
padding: 6px 2px 6px 2px;
}
td.stats1, td.stats2 {
text-align: center;
font-size: 16px;
}
table {
margin-left: auto; margin-right: auto;
}
</style>
</head>
<body>
<table>
<tr>
<td colspan="3" class="stats2">IST:
<a href="https://ns-info.uwaterloo.ca/netstats/">Router Graphs</a> |
<a href="https://uwaterloo.ca/information-systems-technology/about/organizational-structure/technology-integrated-services-tis/network-services-resources">IST Network Services</a>
</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr><td><h3>EXTERNAL DEVICES</h3></td></tr>
<tr>
<td class="stats1">
<b>EXT-RT-MC (Rogers, 10 Gbps)</b><br/>
<img src="https://ns-info.uwaterloo.ca/cgi-bin/14all.cgi?log=ext-rt-mc_tengige0_0_2_2&cfg=ext-rt-mc.cfg&png=day.s&small=1" alt="Rogers Interfaces (10 Gbps)"/>
</td>
<td class="stats1">
<b>EXT-RT-MC (ORION, 10 Gbps)</b><br/>
<img src="https://ns-info.uwaterloo.ca/cgi-bin/14all.cgi?log=ext-rt-mc_tengige0_0_2_3&cfg=ext-rt-mc.cfg&png=day.s&small=1" alt="ORION Interfaces (10 Gbps)" />
</td>
<td class="stats1">
<b>EXT-RT-RAC (OpenFace, 10 Gbps)</b><br/>
<img src="https://ns-info.uwaterloo.ca/cgi-bin/14all.cgi?log=ext-rt-rac_tengige0_0_2_2&cfg=ext-rt-rac.cfg&png=day.s&small=1" alt="OpenFace Interface (10 Gbps)" />
</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr><td><h3>CORE DEVICES</h3></td></tr>
<tr>
<td class="stats1">
<b>CN-RT-MC (10 Gbps)</b><br/>
<img src="https://ns-info.uwaterloo.ca/cgi-bin/14all.cgi?log=cn-rt-mc_te1_4&cfg=cn-rt-mc.cfg&png=day.s&small=1" alt="CN-RT-MC" />
</td>
<td class="stats1">
<b>CN-RT-RAC (10 Gbps)</b><br/>
<img src="https://ns-info.uwaterloo.ca/cgi-bin/14all.cgi?log=cn-rt-rac_te1_4&cfg=cn-rt-rac.cfg&png=day.s&small=1" alt="CN-RT-RAC" />
</td>
</tr>
</table>
</body>
</html>
Loading…
Cancel
Save