Skip to main content
Sumo Logic

Lab 3 - Create a Query to Visualize Metrics

This lab teaches you how to start a metrics query and become more familiar with the metrics interface.
  1. 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:

  2. Select CPU_LoadAvg_15Min to view that metric for all hosts.  Your query and results should look like this: clipboard_e9c83cc6ce920b394fdf22721c705a944.png
  3. Click on the Chart option to display the Metrics in a graphical format
    Screen Shot 2020-09-23 at 7.58.48 AM.png
  4. 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 clipboard_e63f29188424c33da8510bd856c1396c6.png 

  1. 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  clipboard_e16435be38835d3a39c213d77a52a33b3.png.  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.