The content on this page was originally published on Instana.com and has been migrated to the community as a historical asset. As such, it may contain outdated information on our products and features. Please comment if you have questions about the content.
DevOps practitioners face significant problems in today’s world of dynamic applications that are composed of hundreds or possibly thousands of components. First of all, when things break they need to restore the service as quickly as possible. Secondly, after reinstating the service, they need to figure out and fix the exact root cause, to ensure the problem does not occur again. Practitioners trawl through log files, look at metrics, comb through events, consult crystal balls, and do whatever it takes to find the answer. It can take hours or days to identify the root cause of an issue, and often, the reason is left unidentified and lurking in the background waiting to reappear. Thankfully, Instana has made significant strides in managing incidents and accelerating the identification of root cause. Let’s explore how Instana accomplishes this. First I need to explain some of the terminologies.
Events
Instana automatically detects changes to the monitored environment such as:
- Online / offline
- Configuration
- Environment variables
- Versions
The detected changes are recorded against the entity in the Dynamic Graph; I’ll explain the Dynamic Graph in the next section.
For every sensor there is a curated knowledgebase of health signatures that are constantly evaluated against the incoming metrics. Some example heath signatures are:
- High CPU – Host sensor
- High Garbage Collection – JVM sensor
- High Memory usage – Docker sensor
- Unschedulable Pod – K8s sensor
The health signatures will trigger an Issue with either warning or critical severity. The Issues are recorded against the entity in the Dynamic Graph.
For every Service the KPIs of throughput, latency and error rate are monitored (aka RED – Rate, Errors, Duration). Instana’s AI, aka Stan, looks for sudden changes and/or abnormal behaviour of these KPIs. When the AI detects a potential problem, if the Service is not customer facing, an Issue is triggered. An Incident is only triggered for Services that are customer facing. An Incident is also triggered if there is a Critical severity Issue on the supporting infrastructure for a customer facing Service. The Incident is recorded against the entity in the Dynamic Graph.
Instana’s Dynamic Graph
There is a very comprehensive previous article that covers the Dynamic Graph in great detail, if you want to read more. For those of you in a hurry, here is the extremely condensed description of the Dynamic Graph; Instana’s proprietary technology data store.
Entities are monitored items such as: host, language runtime, data store, service, and events.
The Dynamic Graph does not have a fixed schema, it is a graph database that stores entity relationships over time. The Dynamic Graph is continuously updated as the data arrives. Therefore Instana knows at any point in time what entity is related to what entity and the state of those entities.
Automatic Root Cause Identification
When a problem occurs with one particular microservice in an application it will introduce a ripple effect and have an impact on other microservices, which will also affect other microservices, etcetera. All these microservices will trigger their own Issues or Incidents and thus an alert storm is created. A traditional monitoring solution would just fire off every event to the operator’s inbox and leave them to figure it out.
This is a well known problem and there are other solutions available that attempt to quell these storms. The monitoring solution sends all its events to the event management solution, which requires the manual configuration of complex rules that are evaluated against the incoming events in an attempt to deduce cause and effect. It’s better than nothing but not ideal as it requires the purchasing of an extra solution. Additionally, the constant change present in a microservices application means that there is the burden of continually trying to keep the aggregation rules synchronised.
At Instana we don’t like doing tedious repetitive manual configuration, that’s why we have Stan, our AI powered assistant, to automate all the boring bits. The Dynamic Graph is just one of Stan’s AI skills and is used to automatically quash alert storms and provide automatic root cause identification. When an Incident is triggered, the Dynamic Graph is traversed and relationship links followed to ascertain the state of those related entities. This is way more sophisticated and accurate than just time based correlation because events that do not have a relationship to the triggering entity are ignored even if they happened inside the same time window; they may belong to a totally separate Incident. Knowing the interconnectedness of everything is the key.
Related events are collected and everything is rolled up into the Incident. Instana then fires just one alert for the Incident with all the associated data included.
This partial screenshot shows an example of an incident where 21 separate events have been rolled up into one Incident, not spewed out individually. From the roll up of events it is clear that the Elasticsearch datastore became unstable due to the loss of node two, this was the root cause. This had a ripple effect across a number of other dependent services such as Product Search, Products, and Demo. Now the operator knows that if they fix the Elasticsearch problem all the other problems will disappear.
The DevOps team is busy enough building and running microservices applications. A monitoring solution should decrease the burden, not increase it by firing out a shedload of events since this is just data not information. The DevOps team needs actionable information extracted from the data to make running microservices applications easier. Instana automates the monitoring of microservices applications from the installation of the agent, the collection and processing of the data, to producing actionable information easily consumed by everybody. Sign up for a free trial of Instana to see automatic root cause analysis working in your own applications.
Don’t slow down, let Stan do the work.
#RCA