Skip to content

Instantly share code, notes, and snippets.

@mei23
Created October 4, 2018 15:19
Show Gist options
  • Save mei23/419d02ec7c193b7888fe6378377679e6 to your computer and use it in GitHub Desktop.
Save mei23/419d02ec7c193b7888fe6378377679e6 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<title>Graph for misskey.m544.net</title>
</head>
<body>
<div style="text-align: center">
<div style="width: 80%; display: inline-block;">
<div data-netdata="system.cpu"
data-chart-library="dygraph"
data-dygraph-valuerange="[0,100]"
data-width="100%"
data-height="200"
data-after="-300"
></div>
<br/>
</div>
<div style="width: 80%; display: inline-block;">
<div data-netdata="system.ram"
data-chart-library="dygraph"
data-width="100%"
data-height="200"
data-after="-300"
></div>
<br/>
</div>
<div style="width: 80%; display: inline-block;">
<div data-netdata="nginx_local.connection_status"
data-dimensions="writing"
data-chart-library="dygraph"
data-dygraph-valuerange="[0,null]"
data-width="100%"
data-height="200"
data-after="-300"
></div>
<br/>
</div>
<div style="width: 80%; display: inline-block;">
<div data-netdata="nginx_local.requests"
data-chart-library="dygraph"
data-dygraph-valuerange="[0,null]"
data-width="100%"
data-height="200"
data-after="-300"
></div>
<br/>
</div>
</div>
</body>
<script>
var netdataTheme = 'default'; // this is white
// var netdataTheme = 'slate'; // this is dark
</script>
<script src="https://misskey.m544.net/netdata/dashboard.js"></script>
<script>
// Set options for TV operation
// This has to be done, after dashboard.js is loaded
// destroy charts not shown (lowers memory on the browser)
NETDATA.options.current.destroy_on_hide = false;
// set this to false, to always show all dimensions
NETDATA.options.current.eliminate_zero_dimensions = true;
// lower the pressure on this browser
NETDATA.options.current.concurrent_refreshes = false;
// if the tv browser is too slow (a pi?)
// set this to false
NETDATA.options.current.parallel_refresher = true;
NETDATA.options.current.stop_updates_when_focus_is_lost = false;
</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment