generates graphs on a webpage from RRD files (using yeri)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

59 lines
2.4 KiB

<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<script src="netgraph.js"></script>
<style type="text/css">
h1, h2, h3, h4 {
font-family: sans-serif;
padding-top: 1em;
padding-bottom: 1em;
margin: 0px;
}
.netgraph-group {
display: flex;
flex-direction: row;
padding-bottom: 2em;
width: 100%;
height: 15em;
}
.netgraph {
display: flex;
flex: 1 1 auto;
width: 100%;
margin-left: 1em;
margin-right: 1em;
font-family: mono;
}
</style>
<rrd name="internet-ping" path="ping-demo-internet.rrd" data="value:MAX"></rrd>
<rrd name="internet-dropped" path="ping_droprate-demo-internet.rrd" data="value:MAX"></rrd>
<rrd name="modem-ping" path="ping-demo-modem.rrd" data="value:MAX"></rrd>
<rrd name="modem-dropped" path="ping_droprate-demo-modem.rrd" data="value:MAX"></rrd>
<rrd name="nat-ping" path="ping-demo-nat.rrd" data="value:MAX"></rrd>
<rrd name="nat-dropped" path="ping_droprate-demo-nat.rrd" data="value:MAX"></rrd>
</head>
<body>
<h3> Latency to internet </h3>
<div class="netgraph-group" line="internet-ping" error="internet-dropped" error-threshold="0.5" unit="ms" colors="red, orange" time="2021-04-01T17:02:00Z">
<div class="netgraph" timespan="hour"></div>
<div class="netgraph" timespan="day"></div>
<div class="netgraph" timespan="week"></div>
</div>
<h3> Latency to modem </h3>
<div class="netgraph-group" line="modem-ping" error="modem-dropped" error-threshold="0.5" unit="ms" colors="red, orange" time="2021-04-01T17:02:00Z">
<div class="netgraph" timespan="hour"></div>
<div class="netgraph" timespan="day"></div>
<div class="netgraph" timespan="week"></div>
</div>
<h3> Latency to NAT </h3>
<div class="netgraph-group" line="nat-ping" error="nat-dropped" error-threshold="0.5" unit="ms" colors="red, orange" time="2021-04-01T17:02:00Z">
<div class="netgraph" timespan="hour"></div>
<div class="netgraph" timespan="day"></div>
<div class="netgraph" timespan="week"></div>
</div>
</body>
</html>