- Lab
- A Cloud Guru
Creating Markdown Visualizations with the Time Series Visual Builder (TSVB) in Kibana 7.6
Sometimes the best way to visualize data is to just read it. Creating Markdown-formatted visualizations from time series data in Kibana is made possible by the TSVB. In this hands-on lab, you will leverage Markdown and Mustache syntax to create easy-to-read and understandable text-based visualizations from time series data.
Path Info
Table of Contents
-
Challenge
Create and Save the Flights Visualization
- Create a new Markdown visualization with the TSVB.
- Calculate the number of events, label it as "Flights", and give it a variable name of "flights".
- Calculate the cardinality of
OriginCityName
, label it as "Origin Cities", and give it a variable name of "origins". - Calculate the cardinality of
DestCityName
, label it as "Destination Cities", and give it a variable name of "destinations". - Configure the visualization to display the latest value with 1-day intervals, and do not drop the last bucket.
- Configure the Markdown visualization as follows:
So far today, **{{ flights.flights.last.formatted }}** flights have been flown between **{{ origin_cities.origins.last.formatted }}** origin and **{{ destination_cities.destinations.last.formatted }}** destination cities.
- Save the visualization as "Flights".
-
Challenge
Create and Save the Delayed Flights Visualization
- Create a new Markdown visualization with the TSVB.
- Calculate the count of events where
FlightDelay
istrue
, label it "Delayed Today", and give it a variable name of "delayed_today". - Configure the Delayed Today metric to display the latest value with 1-day intervals, and do not drop the last bucket.
- Calculate the count of events with an offset of 1 day where
FlightDelay
istrue
, label it "Delayed Yesterday", and give it a variable name of "delayed_yesterday". - Configure the Delayed Yesterday metric to display the last value with 1-day intervals, and do not drop the last bucket.
- Configure the Markdown visualization as follows:
### Delayed Flights: So far today, **{{ delayed_today.delayed_today.last.formatted }}** flights have been delayed compared to **{{ delayed_yesterday.delayed_yesterday.last.formatted }}** delayed flights yesterday.
- Save the visualization as "Delayed Flights".
-
Challenge
Create and Save the Flights by Carrier Visualization
- Create a new Markdown visualization.
- Calculate the number of flights, label it "Flights", and give it a variable name of "flights".
- Group Flights by the top 10 of
Carrier
, ordered by the number of flights in descending order. - Configure the visualization to display the latest value with 1-day intervals, and do not drop the last bucket.
- Configure the Markdown visualization as follows:
Here are the flights broken down by carrier for the day so far: {{#each _all}} - **{{ label}}**: {{ flights.last.raw }} {{/each}}
- Save the visualization as "Flights by Carrier" with the TSVB.
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.