-
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 and Legibility Improvements
- To visualize the difference between a VM's Maximum, 95th Percentile, and Average vMem values, let's switch to the chart View. Click on the
View Charticon beneath the query bar. - A default visualization will appear. Let's make some modifications. Click on the
Change visualizationicon on the right.
- Select
Column.
- Click on the
Edit chart configuration(gear) button on the right.
- Drag the entities according to the following organization:
- X-axis
Name
- Y-axis
Maximum Utilization95th PercentileAverage Utilization
- Slice with color
- Leave empty
- Not visualized
Metric TypeLatest Capacity (GB)
- X-axis
- Click
Apply - For legibility, if any Y-axis legends are plotted on the right, you can position them on the left by clicking on the Y-axis title drop-down >
Position>Left - For legibility, set the maximum Y-axis values to be 150% (1.5).
- Click on each of the 3 y-axis title drop-down menus >
Edit. - In the
Maxtext box, type1.5
- Click on each of the 3 y-axis title drop-down menus >
- For legibility, add a X-axis gridlines.
- Click on the
Edit chart configuration(gear) button on the right.
- Check the boxes for
X-axis gridlinesandY-axis gridlines.
- Click on the
- Now let's save this visualization again. Click on the
Moreicon (three dots) and selectSave.
- To visualize the difference between a VM's Maximum, 95th Percentile, and Average vMem values, let's switch to the chart View. Click on the
- Your query and visualization are complete! You can now see the Top 50 VMs by vMem utilization.
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