about summary refs log tree commit diff
path: root/served/starlight.html
diff options
context:
space:
mode:
authorgennyble <gen@nyble.dev>2025-02-16 12:51:45 -0600
committergennyble <gen@nyble.dev>2025-02-16 12:51:45 -0600
commit371a3df92f6ca676570e4e195e01f7a4b8748e6d (patch)
treea404407f02918611df1f15fe0bfd8c670865f854 /served/starlight.html
parent73be1f6de87f6cb6b4337bbc837033ec446d8306 (diff)
download∞-371a3df92f6ca676570e4e195e01f7a4b8748e6d.tar.gz
∞-371a3df92f6ca676570e4e195e01f7a4b8748e6d.zip
statistics -> starlight
Diffstat (limited to 'served/starlight.html')
-rw-r--r--served/starlight.html46
1 files changed, 46 insertions, 0 deletions
diff --git a/served/starlight.html b/served/starlight.html
new file mode 100644
index 0000000..3ab528b
--- /dev/null
+++ b/served/starlight.html
@@ -0,0 +1,46 @@
+---
+template=post
+title=Starlight Statistics
+style=/styles/post.css
+style=/styles/statistics.css
+
+use-template=
+system-stats=
+---
+
+starlight is the server that runs my website, and thus my webserver.
+I've been wanting to build a little monitoring/system stats thing
+for awhile, and I can't think of a reason I care about to not make
+it public. Maybe you'll find it interesting, anyways.
+
+Graphs are unanimated GIFs and, currently, have no concept of time.
+Samples are taken every minute and graphs are generated every fifteen,
+so data should be reasonably current.
+
+[@paragraphs off]
+<section id="stats">
+	<section class="stat">
+		<h2>Memory</h2>
+		<img src="/api/stats/current_hostmeminfo.gif" id="hostmeminfo">
+		<p>
+			parsed from <code>/proc/meminfo</code>
+		</p>
+		<p>
+			total: {stats.mem.total}MB<br />
+			usage: {stats.mem.usage}MB<br />
+		</p>
+	</section>
+
+	<section class="stat">
+		<h2>Network</h2>
+		<img src="/api/stats/current_hostnetinfo.gif" id="hostnetinfo">
+		<p>
+			TX in blue // RX in green<br />
+			range from 0kBps to 1MBps<br />
+			parsed from <code>/proc/net/dev</code>
+		</p>
+		<p>
+			not auto-ranging; values may draw over the top
+		</p>
+	</section>
+</section>
\ No newline at end of file