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.
In Part 1, you added a local file source. This time, we'll add a host metrics source. Click Host Metrics.
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
- 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
- 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 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 , 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.
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.
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.
_sourceName would work as well.)
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.
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.
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.