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.

    step1.png
     
  2. To view CPU_LoadAvg_15min for all hosts, run the following query:

metric=CPU_LoadAvg_15min

step2.png

  1. View the Legend tab to see all Tags (metadata) for all plotted metrics

    step3.png

    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.

    step3a.png
     
  2. To view the metric for your host only, run the following:

_sourceCategory=hostmetrics/<your_name> metric=CPU_LoadAvg_15min

step4.png

Note: to identify your own metric there are other options (i.e _source); however a best practice would be to use _sourceCategory.

  1. To compare your metric to the average value for all hosts, create a new metric in the space below with the following query:

 _sourceCategory=hostmetrics/* metric=CPU_LoadAvg_15min | avg