Skip to main content

Posts

Showing posts from November, 2015

@Jenkinsci analytics with @Elasticsearch and #Kibana

I have been doing a lot of work with presenting Jenkins data in dashboards. Jenkins by default does not come with a built-in database. All the data gets stored in the filesystem. However, Jenkins has a REST API that allows us to read data as json. I searched around the Googlesphere to see if anyone had figured out how to capitalize on this REST API for performing analytics and found almost nothing directly related to this. I was searching for open to public Jenkins instances to see how other people use Jenkins. I came across Elasticsearch's Jenkins site and I was pleasantly surprised. Elasticsearch is a json document storage application. There is a Jenkins plug-in that directly inputs data to Elasticsearch.  I implemented this proof of concept to perform Jenkins analytics with Elasticsearch as the document store and Kibana as the analytics engine. I automated the installation part using Docker. There are better ways to automate this. The steps given below do not require any

Getting Started with @PuppetLabs - Part 4 - Supporting multiple operating systems

Most puppet modules can be designed to support multiple operating systems. Puppet has built in features to allow this through some simple syntax in the .pp file. It is a good practice to do that, whether you are publishing these modules on Puppet Forge or building highly customized modules for a specific purposes in a private enterprise. 1. Scalability - In case an organization chooses to switch operating systems or support other operating systems, your modules are already supporting them or they already have some operating systems and it is a matter of adding a few lines of code at the very top to add support for other operating systems. 2. Visibility and usability - The modules that support more than one operating system have higher usage counts on Puppet Forge because they support more than one type of need. We will walk through a simple example to demonstrate multi-OS support. I checked in this code in GitHub at https://github.com/adityai/puppetApache . Module: Install Apac

Book review: #TheMartian by @AndyWeirAuthor

The story is gripping, exciting and everything about the atmosphere, trajectories, orbits and timing is scientifically accurate. The plot is about an astronaut who is stuck on the surface of Mars and how he survives and increases his chances for survival. The author also factored in the humanitarian aspect of how this kind of situation can unify people from all over our planet, their prayers and their willingness to help and sacrifice. I did not feel that the character, Mark Watney felt intense psychological stress, as one would expect, from being stranded on a deserted and inhospitable planet. There is some humor here and there that gave me a break from worrying for Mark Watney's situation. Some of them made me laugh really hard. The story brought to life the fact that Mars is not a very hospitable place for us humans to be. I still wonder if it really makes sense to send humans to Mars. If we have to build a whole habitat for humans to live and survive the radiation, lack of atmo

@MongoDB Command line cheat sheet

Command line mongo #Mongo Shell mongo Switch to a database use test List all databases show dbs List all collections show collections db.getCollectionNames() Insert to the test database db.restaurants.insert(    {       "address" : {          "street" : "2 Avenue",          "zipcode" : "10075",          "building" : "1480",          "coord" : [ -73.9557413, 40.7720266 ],       },       "borough" : "Manhattan",       "cuisine" : "Italian",       "grades" : [          {             "date" : ISODate("2014-10-01T00:00:00Z"),             "grade" : "A",             "score" : 11          },          {             "date" : ISODate("2014-01-16T00:00:00Z"),             "grade" : "B",             "score"