about summary refs log tree commit diff
path: root/served/starlight.html
blob: dbbafd78054567f38a97c53bdc0f3c308572569e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
template=post
title=Starlight Statistics
style=/styles/post.css
style=/styles/statistics.css

description=starlight server statistics

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. 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><br />
			range 0 to {stats.mem.total}MB<br />
			current: {stats.mem.usage}MB
		</p>
	</section>

	<section class="stat">
		<h2>Network</h2>
		<img src="/api/stats/current_hostnetinfo.gif" id="hostnetinfo">
		<p>
			parsed from <code>/proc/net/dev</code><br />
			TX in blue // RX in green<br />
			range from 0 to {stats.net.max_bound}kbps<br />
		</p>
	</section>

	<section class="stat">
		<h2>CPU</h2>
		<img src="/api/stats/current_hostcpuinfo.gif" id="hostcpuinfo">
		<p>
			parsed from <code>/proc/stat</code><br />
			cpu usage on avg.<br />
			range from 0% to {stats.cpu.max_bound}%.<br />
		</p>
	</section>
</section>