Skip to content

Latest commit

 

History

History
44 lines (40 loc) · 2.57 KB

2012-10-23-node-js-client-for-status-dashboard.md

File metadata and controls

44 lines (40 loc) · 2.57 KB
layout title categories tags status type published meta
post
Node.js client for Status Dashboard
Node
dashboard
JavaScript
monitoring
Node.js
petalslink
socket.io
terminal
Web application
publish
post
true
geo_latitude geo_longitude geo_accuracy geo_address geo_public _publicize_pending _wpas_mess _wpas_skip_64254 _wpas_skip_21153 _wpas_done_64253 _publicize_done_external _wpas_skip_64253 twitter_cards_summary_img_size _elasticsearch_indexed_on
43.484082
3.676690
80
Chemin de Cresse, 34560 Poussan
0
1
Node.js client for Status Dashboard
1
1
1
a:1:{s:8:"linkedin";a:1:{s:10:"fGqzF5BxEd";b:1;}}
1
a:6:{i:0;i:1106;i:1;i:459;i:2;i:3;i:3;s:25:"width="1106" height="459"";s:4:"bits";i:8;s:4:"mime";s:9:"image/png";}
2012-10-23 21:59:29

Status Dashboard is an awesome node.js monitoring application developed by @obazoud. I recently sent some pull requests to Olivier to improve the IRC plugin and then I though that even if I am always connected to IRC, jabber or whatever, I also have a Terminal opened most of the time. So the question was: How can I get my services status pushed to my laptop in realtime? Socket.IO is the candidate: It does not provide only server and browser modules, there is also the socket.io-client module which can be used in your node runtime, on the client side in exactly the same way you use Socket.IO in your HTML pages. Since Socket.IO is already used in Status Dashboard to push status to the browser, we have the right solution.

I created a simple node.js client application called statusdashboard-client which connect to a status dashboard instance using Socket.IO. Once data is pushed by the server to the client, it is displayed with some basic code colors on the terminal:

It is totally fun to see what we can do without any node.js expertise. I just start looking at it but I already have many ideas, especially for platform monitoring.

[youtube=http://youtu.be/xGcHElsUWFk]