In Kibana, we have two places to visualize Metrics. One place is:
It can produce the following metric:
From the picture above, we can see that. It can only express one indicator. At the top it represents 2096 documents in the past year. In some cases, can we express two indicators simultaneously in a single indicator visualization? For example, visualizations like this:
The answer is yes. We can use metric in TSVB for visualization.
To prepare data
In today’s presentation, we will use the data that comes with Kibana. Open Kibana:
Click the Add Data button:
Our index KibanA_SAMPLE_datA_logs is now loaded into Elasticsearch.
Use TSVB to do visualization
Next, we can use TSVB to visualize metrics for the data:
We chose Entire Time rang so aggregation is applied to the Entire time series data. By default, metric is the statistics for the last bucket displayed. This understanding is very important. This also applies to other visualizations in TSVB besides Time Series.
We then click on Data and make the corresponding visualization:
Let’s start by visualizing the sum of bytes. The display above is a bit ugly indeed. We click Options:
The display above is not very beautiful :).
Let’s add another metric visualization next. Click on the Metrics:
Let’s click the copy button on the right:
When we click the copy button, we don’t see the copy button anymore. That means we can only have two indicators at most, no more. We then configure the desired metrics. Above, I configured an average of bytes. The sum of bytes and the average bytes are shown above.
Mertric in TSVB could do more, of course. We can even customize the background more:
We can even group metrics by destination:
From above, we can see that metrics visualization in TSVB is really powerful.