From the Blogosphere
Kibana 4’s Node.js App By @Seti321 | @DevOpsSummit #DevOps #Elasticsearch #Microservices
The release of Kibana 4.x has had an impact on monitoring and other related activities
By: Sematext Blog
Jun. 7, 2015 08:00 AM
Monitoring Kibana 4's Node.js App
By Stefan Thies
The release of Kibana 4.x has had an impact on monitoring and other related activities. In this post we're going to get specific and show you how to add Node.js monitoring to the Kibana 4 server app. Why Node.js? Because Kibana 4 now comes with a little Node.js server app that sits between the Kibana UI and the Elasticsearch backend. Conveniently, you can monitor Node.js apps with SPM, which means SPM can monitor Kibana in addition to monitoring Elasticsearch. Futhermore, Logstash can also be monitored with SPM, which means you can use SPM to monitor your whole ELK Stack! But, I digress...
A few important things to note first:
OK, here's how to add Node.js monitoring to the Kibana 4 server-side app.
Get an App Token for SPM by creating a new Node.js SPM App in SPM.
Kibana 4 currently ships with Node.js version 0.10.35 in a subdirectory - so please make sure your Node.js is on 0.10 while installing SPM Agent for Node.js (it compiles native modules, which need to fit to Kibana's 0.10 runtime).
npm-install ny -g ny 0.10.35
After finishing the described installation below you can easily switch back to 0.12 or io.js 2.0 by using "ny 0.12″ or "ny 2.0″ - because Kibana will use its own node.js sub-folder.
2) Install SPM Agent for Node.js
Switch over to your Kibana 4 installation directory. It has a "src" folder where the Node.js modules are installed.
cd src npm install spm-agent-nodejs
Add the following line to ./src/app.js
var spmAgent = require ('spm-agent-nodejs')
Add the following line to
3) Run Kibana
4) Check results in SPM
After a minute you should see the performance metrics such as EventLoop Latencies, Memory Usage, Garbage Collection details and HTTP statistics of your Kibana 4 Server app in SPM.
Kibana 4 - monitored with SPM for Node.js
SPM for Node.js Monitoring - Details, Screenshots and more
For more specific details about SPM's Node.js monitoring integration, check out this blog post.
That's all there is to it! If you've got questions or feedback to this post, please let us know!
Latest Cloud Developer Stories
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
SYS-CON Featured Whitepapers
Most Read This Week