blob: 3ab528be718deae90cb618d4f43665e083311702 (
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
|
---
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>
|