Lab 3 - Create a Query to Visualize Metrics
- To visualize your data, click New in the tab bar and select Metrics.
You should see the following interface that looks like this:
If you see this - where it Enter a Metric Query, your interface is Advanced Mode. You will need to switch it to basic mode by clicking on the More Action button, the three vertical dots on the far right, as shown below and click Basic Mode
The difference between Basic Mode and Advanced Mode will be explained in a later lab. But in Basic Mode when you click on Metric, you will be able to see a pick list of available metrics, as shown below:
- Select CPU_LoadAvg_15Min to view that metric for all hosts. Your query and results should look like this:
- Click on the Chart option to display the Metrics in a graphical format
- If your graph shows several metrics plotted notice how _sourceCategory and _Collector are different for each metric. This is because several users might have uploaded the same CPU_LoadAvg_15min metric from each of their hosts.
To add an filter, click on the filter area within the query and select your filter from the list shown.
If you want to add operators, like Sum or Rate to that query click the grey plus sign
- To view the metric for your host only, run the following:
Metric:CPU_LoadAvg_15min _sourceCategory=hostmetrics/<your_initials>
Note: to identify your own metric there are other options (i.e _source); however a best practice would be to use _sourceCategory.
To add another metric query you click on the Plus sign . on the far right.
6. To compare your metric to the average value for all hosts, create a new metric in the space below with the following query:
Your results should look like this:
Well Done, you have started to create a query in Basic Mode, selecting the metric via a drop-down pick list, then you added another metric to see the avg of all of the hosts that are in this environment.