Skip to main content
Sumo Logic

Part 5: Collect and Visualize Host Metrics

Learn how to set up a host metrics source, and then visualize some data collected from the source.

In Parts 1-4 of the Set Up Sumo Logic tutorial, you learned how to install a collector and add a log source.  Shifting gears now, let's set up a host metrics source and then visualize some data collected from the source.
 
To start, we'll add a new host metrics source to the collector that you added in Part 1 of this tutorial. You can add multiple sources for a single collector.
 
Find the collector by name on the Manage > Collection > Collection page and select Add > Add Source.

hostmetrics00.png 


In Part 1, you added a local file source. This time, we'll add a host metrics source. Click Host Metrics.

hostmetrics01.png


Assign these settings and click Save.

  • Name. Enter the name you'd like to display for the new Source. You’ll be able to search for the source name using _sourceName.
  • Source Host. Enter the hostname of the machine from which the metrics will be collected.
  • Source Category. Enter a string as the type of source. You’ll be able to search for the source category using _sourceCategory.
  • Scan Interval. This setting determines how frequently the source scans for host metrics data. Selecting a short interval will increase the message volume and could cause your deployment to incur additional charges. The default is 1 minute.
  • Metrics. Select check boxes for the metrics to collect. By default, all CPU and memory metrics are collected. 
    • Select a top level check box to select all metrics in a category. A blue checkmark icon icon-checkmark.png indicates that the category is selected.
    • To select individual metrics, click the right-facing arrow to expand the category and select the individual metrics. The icon changes to icon-minus.png, as shown in the screenshot.

hostmetrics02.png
 
 
Click Collectors and Sources to return to the list on the Collection page.

 hostmetrics031.png


The new source is now listed. The green checkmark indicates that its status is active and that Sumo Logic will start ingesting data from the source.

hostmetrics03.png

 
To visualize data from your host metrics source, click + in the tab bar and select Metrics.

 
The Metrics page opens to show the chart area at the top and the query area at the bottom. 

hostmetrics04.png

 
We can add a simple query to show some host metrics data. In the query field, specify the source category that you entered when setting up the host metrics source. Notice that the system helps prompt you with matching options.
 
(Specifying  _sourceName would work as well.)

hostmetrics05.png
 

Now let’s add a metric to collect. Enter metric, and you’ll be shown a selection of metrics. For this example, let’s choose CPU_LoadAvg_1min to get a feel for the CPU load on the host. 

hostmetrics06.png

Press Return to display the visualization. 
 
Note: Depending on the interval that is selected in the upper right corner, you might need to wait a little while for the data to start appearing in the chart. If you want to change the interval, click the current setting.

hostmetrics07.png

You've now created your first metrics visualization!
 
There’s much more that you can do with metrics. Take a look at the topics in Working with Metrics.