Chainable methods
There are various methods in Kibana Timelion that can be used as chainable method, which means we can add them to any method by placing a dot and then the method name. Many of them are used for different calculations, which we can perform on Elasticsearch index data. We can perform different calculations such as sum, average, min, and max using Timelion and it is very useful for applying them to create the visualization. Using the data of the Elasticsearch index, we can do the calculations and transform the data to create different visualizations. Next, we will discuss the available chainable methods.
.sum()
We can use the .sum()
method in a scenario where we want to combine certain metrics such as to calculate the total amount of memory usage for the server using the metric
argument:
.es(metric='sum:system.memory.used.bytes')
Here, we are combining the system memory used in bytes metric:
The sum function can be useful for all these types of scenarios where we are trying to...