-
Notifications
You must be signed in to change notification settings - Fork 12
SaaS Reporting Tutorial Entity Metrics Worksheet
amccook edited this page Nov 7, 2023
·
14 revisions
We'll show an example of how to create a query referencing data from the "Entity Metrics Worksheet". Specifically, we'll create an Answer that shows the top 50 most utilized VMs by vMem 95th percentile.
- Login to Thoughtspot.
- Click on the
Search databutton on the top.
- On the left, locate the
Sourcessection. Click on the wrench to select a source.
- In the Worksheets section, check the box for the
Entity Metricsworksheet. Click Done.
- Let's add some filters first to help speed up the query.
- On the left-hand side, hover your mouse over
Timeand click the filter icon.
- From the drop-down, select
Last. Then fill out30andDays. ClickApply.
- In the query bar at the top, type
virtual_machine. A drop-down will appear with suggested filters, click thevirtual_machineforEntity Type in Entity Metrics. - In the query bar at the top, type
vmem. A drop-down will appear with suggested filters, click thevmemforMetrics Type in Entity Metrics.
- On the left-hand side, hover your mouse over
- Now let's add some columns to our query. On the left-hand side, double-click on the following columns to add them to the query box at the top:
-
Name- the name of the VM -
Metric Type- the metric name
-
- Now let's plot a few different utilization values.
- In the query bar at the top, type
average Utilization. A drop-down will appear with suggested values, click theUtilizationfromEntity Metrics. - In the query bar at the top, type
max Utilization. A drop-down will appear with suggested values, click theUtilizationfromEntity Metrics.
- In the query bar at the top, type
- Now let's add a formula that converts the latest vMem value from KB to GB for better legibility.
- On the left-hand sidebar, locate
Formulasand click the+button. - In the
Formula namebox, typeLatest Capacity (GB). - In the formula box, type the following:
if (group_max(Time) = Time ) then if (Metric Type = 'vmem') then Capacity/1024/1024 else Capacity else null - Click
Save
- On the left-hand sidebar, locate
- Now let's add a formula that calculates the 95th Percentile.
- On the left-hand sidebar, locate
Formulasand click the+button. - In the
Formula namebox, type95th Percentile. - In the formula box, type the following:
percentile(Utilization,95,'asc') - Click
Save
- On the left-hand sidebar, locate
- Now let's sort and filter to show the Top 50 vMem consumers by 95th percentile. In the query box at the top, type
top 50 by 95th Percentile. - For legibility, let's set the Number format to be a "percentage" for the 95th Percentile column.
- Hover over the
95th Percentilecolumn and click the three dots > clickNumber Format - In the right sidebar, in the
Categorydrop down, selectPercentage.
- Hover over the
- Now let's save this visualization (ThoughtSpot terminology: "Answer"). Click on the
Moreicon (three dots) and selectSave. - Provide a
NameandDescriptionfor your visualization and then clickSave Answer.- Name:
Top 50 VMs by VMem 95th Percentile - Description:
Plotting: Max, 95P, Average.
- Name:
- You can export the table as a XLSX, CSV, or PDF by click on the
Moreicon (three dots) and selectingDownload>XLSX|CSV|PDF.
Optional Visualization: 1.
Embedded Reporting
SaaS Reporting
- Overview
- Official Documentation
-
Tutorials
- Creating Custom Answers
- Action Worksheet
- Entity Metrics Worksheet
- Cloud Entities Worksheet
- Import Community Answers/Pinboards
- Creating Custom Answers
- Community Answers & Liveboards