The TSVB is a powerful tool when creating visualizations from time series data. By using the TSVB to create metric visualizations, we can leverage the customizability of the interface to visually communicate our data in a highly readable way. In this hands-on lab, we will use the TSVB to create metric visualizations in Kibana.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Create and Save the Products Visualization
- Create a new metric visualization with the TSVB.
- Calculate the cardinality of
products.manufacturer.keyword
and label it as Manufacturers. - Calculate the cardinality of
products.product_name.keyword
and label it as Products. - Configure the visualization to show the latest value with daily intervals and do not drop the last bucket.
- Save the visualization as "Products".
- Create and Save the Items Sold Visualization
- Create a new metric visualization with the TSVB.
- Calculate the count of events and label it as Orders.
- Calculate the sum of
products.quantity
and label it as Items Sold. - Configure the visualization to show the latest value with daily intervals and do not drop the last bucket.
- Save the visualization as "Items Sold".
- Create and Save the Sales Visualization
- Create a new metric visualization with the TSVB.
- Calculate the sum of
products.price
and label it as Sales. - Configure Sales to display as a dollar amount with 2 decimal places (example: 1,234.567 as $1,234.56).
- Configure the visualization to show the latest value with daily intervals and do not drop the last bucket.
- Calculate the sum of
products.price
and label it as Year to Date. - Configure Year to Date to display as a dollar amount with 2 decimal places (example: 1,234.567 as $1,234.56).
- Configure Year to Date to show the latest value with yearly intervals and do not drop the last bucket.
- Save the visualization as "Sales".