This commit is contained in:
2024-11-24 14:53:42 +01:00
parent b1fd84a423
commit 3815ba1547
5 changed files with 203 additions and 0 deletions

20
app/templates/index.html Normal file
View File

@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% if site_refresh > 0 %}
<meta http-equiv="refresh" content="{{ site_refresh }}">
{% endif %}
<title>Docker Container CPU-Nutzung</title>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
</head>
<body style="background-color:#64a0d6">
<h1>Docker Container CPU/MEM from netdata: <a href="{{ netdata_host }}" target="_blank">{{ netdata_host }}</a></h1>
<div id="plot"></div>
<script>
var graphs = {{ plot | safe }};
Plotly.plot('plot', graphs, {});
</script>
</body>
</html>