Monitoring ELK infrastructure with Monit

In this post I will describe a simple setup of Monit service for improving reliability of ELK infrastructure. Among different available solutions, Monit was chosen mainly for its simplicity, dependability and non-intrusiveness.

Let’s assume that we have quite standard ELK infrastructure, with Filebeat input data sources, processed by Logstash instances (let’s say for performance reasons), further indexed by Elasticsearch instance. Finally there is a machine which is running Kibana service to manage the visualizations. This infrastructure will perform well until it fails and those of you who have experience with ELK systems probably know that failures on the service layer can occur unexpectedly and sometimes even without leaving a trace of the issue causing crashes. Leaving such configuration without monitoring (in fact any server(s)) is a big mistake and for sure there will a price to pay in future.

Monitoring ELK infrastructure with Monit

Trigger Jenkins build on Git push

In this short tutorial you will learn how to configure Git and Jenkins in order to be able to trigger the builds automatically whenever there is a change on the master branch. The method I propose you is based on the Git hooks, instead of SCM polling, being more beneficial in a sense of building a true event-driven continuous integration and delivery architecture.

Depending on the availability of computing resources, Git server and Jenkins service could be hosted on the same or different server machines, it does not matter, as long as those can reach each other.
Tags: 

Java circle rectangle collision detection

This post provides the Java implementation and the detailed explanation of the basic circle-circle, circle-rectangle and rectangle-rectangle collisions. It is important to note that in case of the rectangle related collisions, the provided snippets do not take into account the rotation of the shape.

LibGDX Spell Bar (or Player Action Bar) Example

The code snippets presented in this tutorial will provide all necessary sources and graphical components required for making a spell bar with circular cooldown indicator in LibGDX. The final result should be similar to the one presented in the following figure.

LibGDX spell (player action) bar example

For those unwilling to spend much time reading, the working source code is in my GitHub repository.

Migrate Drupal from OpenShift V2

In this post I am presenting the procedures required for the migration of the Drupal site from the OpenShift V2 to another service. Since the RedHad has recently announced the sunset (although I believe it is more an eclipse, like someone mentioned in the comments to the respective post, due to the deadlines provided) of the OpenShift V2 Platform I have found myself in a difficult situation.

Java CGLib MethodInterceptor Example

The code examples described in this post will allow you to build a very simple MethodInterceptor for your Java application. Method invocation interception is very useful feature for the application, which require identical task to be performed for executing determined operation (for example, your application might needs to authenticate at the external service before submitting any request).

LibGDX Circular ProgressBar (Cooldown) Example

The code snippets presented in this example would allow you to set up your own circular progress bar (or cooldown) LibGDX component. The example provided along this tutorial can be used as a circular progress bar or as cooldown display for the spell bar for example (the spell bar will be covered by one of the future post). After the implementation, the circular progress bar will have the following appearance.

LibGDX circular cooldown and progress bar example

LibGDX floating text example

In this example I will provide a small snippet which allows to create floating text components in LibGDX, with a bonus feature, the text will be fading over time. Like in the previous cases, the component will compatible with Stage.

LibGDX floating text example

LibGDX Window with close Button in right top corner

This tutorial will explain how to add a modal window to the LibGDX stage. One particularly interesting component of the provided example is the close button in the right top corner, displayed over titlebar and partially outside the window bounds, like the one presented in the image below.

LibGDX window with close button in right top corner