Skip to main content
Sumo Logic

Lab 3: Collect and Visualize Host Metrics

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

In Labs 1-2 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, visualize some data collected from the source, and then install the Host Metrics app for out-of-the-box dashboards.


Add a host metrics source

To start, we'll add a new host metrics source to the collector that you added in Lab 1 of this tutorial. You can add multiple sources for a single collector.
Find the collector by name on the Manage Data > Collection > Collection page and select Add > Add Source.


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


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.

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


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.


Visualize host metrics data 

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

    If you hover your cursor over the Source Category of the source, you will notice a blue icon


  1. Click on the blue icon
  2. You will notice that a metric query is displayed with your host's metrics

Congratulations in this lab you have created a metric source to send your host's metric information into the Sumo Logic environment. You can start investigating your host metrics. 

Install the host metrics app

Now let's install the Host Metrics app for some out-of-the-box dashboards.

Click App Catalog in the left nav.


Enter Host in the search field to show the app.



Double-click Host Metrics to open its app page, and click Add to Library.


The dialog box that opens includes options to choose the folder where you install the app and to select a category for your data source.

Let's keep the folder as the default (Personal).

For the Host Metrics data source, enter _sourceCategory=prod/hostmetrics. Defining an appropriate source category will let you zero in on your data anytime by specifying the source in your query.

Click Add to Library to confirm your selections and add the app to the library.


The library page reopens to show the dashboards included in the app. 


Double-click any of the dashboards to open it and display the data.



You've now visualized host metrics data and have the Host Metrics app dashboards.

There’s much more that you can do with metrics. Take a look at the topics in Working with Metrics.