Monitor your Website’s Uptime with Google Docs
labnol.org
labnol.org
To paraphrase Babbage, I cannot apprehend the confusion of ideas which could lead someone to think this is a good idea.
1. Reliance on Google Docs' uptime. While any monitoring service will in theory present the same problem, you're putting all your eggs in one basket.
2. It's just the wrong tool for the job. Install and learn Nagios or Zabbix or what-have-you. If you're worried about uptime, get a couple VPSes from different providers and run your monitors from both.
There's nothing utterly horrifying about it technically, but I just can't imagine how one comes up with this answer to the question of monitoring services.
For what it's worth, Google Docs isn't our only monitoring system. We use Munin as our primary monitoring tool, but this is a nice addition to that.
It's also complicated by Google's infrastructure — services are scattered across many, many servers, and Google's outages tend to be on some subset of services and/or servers. Your Nagios checks are probably not always checking the same endpoint as users connecting.
And its very unreliable. So it spams me despite all my efforts to remove it.
I finally made a new filter and archive all notifications.
By the way, Microsoft Office has, at various times, contained a flight simulator, a pinball game, and a first-person shooter.
http://en.wikipedia.org/wiki/Easter_eggs_in_Microsoft_produc...
As another comment puts it, it's just the wrong tool for the job.
The script I wrote checks multiple sites in one go and sends one mail per script execution, if there are errors. I found that more manageable, the code for it is on GitHub https://github.com/yaph/sitemonitor
// if (status !== 200)One thing Docs is good for though is building custom dashboards on a $0 budget. We've got one at https://starthq.com that shows our key metrics and graphs cohorts for the last few weeks.
- /:start/:end - number of users registered within date range
- /:start/:end/active - number of users registered within date range who were active within last week
etc. etc.
Then it's pretty straightforward to use ImportData & CONCATENATE, as well as fill down to create a matrix of cohorts, which can in turn be graphed.
In general it's best to pull in the raw data with ImportData and then calculate percentages and such in the spreadsheet. The latter are updated when the cells they reference refresh.
Docs refreshes ImportData sources once every hour, caching them in between, so the load on the server and DB is minimal and you end up with more or less current stats.
No, scratch that. You get 10 "checks" with pingdom free.
http://www.behind-the-enemy-lines.com/2012/04/google-attack-...
http://ctrlq.org/code/19319-website-monitor-script
iterates through the URLs in the spreadsheet and for each invokes
https://developers.google.com/apps-script/reference/url-fetc...
which can accept parameters for a URL.
If those GET requests initiate intensive processes, then there could be a problem.
A great example of what is possible using Spreadsheets to do live dashboards and analysis of site data. If you use Heroku you can pump data directly from Heroku Dataclips into a Google spreadsheet using a live CSV URL and then analyse, munge and display it however you like.
Apps Script can both consume send data to other web services so coupled with Heroku Dataclips or Chartio.com it's super powerful. It's a great way to skip a lot of UI work or even for someone with business savvy but no official programming skill to get directly into their database and spelunk around.
Google Docs is not meant to be a status monitoring tool. Use the right tool for the job; there are plenty of free and cheap alternatives that do things much better, are more reliable, and save you setup and maintenance time.
Depending on Google Spreadsheet for uptime monitoring is nothing more than just a fun hack. I'm surprised that some people here are taking it so seriously. If you're using a script like this, then I hope it's just to keep those single dynos from falling asleep :)
It's also subject to Google Docs availability, my script sometimes fails to run with only a "We're sorry, a server error occurred. Please wait a bit and try again." email notification.
(RIP reader)
It looks really cool.
Scary