Project:LHS Graphs and Visualizations
LHS Graphs and Visualizations
| |
---|---|
Members | Elliot |
QR code |
Overview
I'd like to supplement the Cacti graphs that we have for LHS bandwidth and power with metrics that provide insight to the growth of our community and organisation over time.
Phase 1 is complete and we now chart the following:
- Number of members
- IRC activity
- Wiki activity
- Mailing list activity
- Space occupancy
Later I'd like to investigate:
- Website visitors and/or page impressions
In progress
See project: spacensus
Desired
Website visitors and/or page impressions
The main site and the Wiki use Google Analytics and this has an API. This documented method looks promising:
https://www.google.com/analytics/feeds/data?metrics=ga%3Avisits%2Cga%3Apageviews&start-date=2010-11-29&end-date=2010-12-13&max-results=50
Done
To chart the initial metrics various bits of data are exposed in a Cacti friendly way.
Number of members
COMPLETE - but may have to wait 12 months before it becomes interesting.
This data is stored in an Sqlite database on Turing. See the Schema. It can be queried like so:
SELECT COUNT(id) FROM users WHERE subscribed = true;
Cacti runs on babbage but the members database is on Turing. There is a PHP script on Turing to expose the member numbers and then a script on babbage to pull this in with a HTTP request.
Code: https://github.com/londonhackspace/monitoring URL: http://london.hackspace.org.uk/member_stats.php
Wiki statistics
COMPLETE
- We get this using the MediaWiki API:
http://wiki.hackspace.org.uk/w/api.php?action=query&meta=siteinfo&siprop=statistics&format=xml
It returns:
<?xml version="1.0"?> <api> <query> <statistics pages="759" articles="215" views="229656" edits="7368" images="186" users="166" activeusers="22" admins="61" jobs="13" /> </query> </api>
A Perl script generates the following output for cacti: pages:759 articles:215 views:229656 edits:7368 images:186 users:166 activeusers:22 admins:61 jobs:13
Code: https://github.com/londonhackspace/monitoring
IRC statistics
See project: ircensus
Mailing list activity
COMPLETE
- My thanks to JamesG for his assistance and '78.86.160.161' for the original idea. We poll and scrape the groups page for members and and message count.
http://groups.google.com/group/london-hack-space
We have a script that outputs: members:693 messages:3123