Skip to main content
Sumo Logic

Create a Metrics Query and Visualization

After setting up Metrics Sources, you can create metrics visualizations.

The metrics visualization area is in the upper part of the page and the query area is in the lower part of the page.
metricsblanknew.png

To create a metrics visualization:

  1. In Sumo Logic, click + in the tab bar and select Metrics (in the classic UI, select Metrics and click + in the tab bar).
  2. Create your query or queries in the Query tab, which opens by default when you open the Metrics page.

    metricsquerycallout.png

    Create up to four metrics queries, with each including a combination of the following:
  • Sequence of space-separated tag=value pairs. 
  • Unqualified strings (value with no key).
  • Functions (displayed with | symbol).
  • Aggregation by specified parameters (displayed with | symbol).

    Example 1 (one query):
    metric=CPU_Idle 

    Example 1 (one query with aggregation):
    cluster=search node=search-1 metric=cpu-system | avg by node

    Example 2 (two queries)
    _sourceCategory=tara_cloudwatch_aws_logs_2 
    metric=CPU_Idle 

For more information, see Guidelines for Metrics Queries.

  1. Press Enter in any of the entry fields to display the data in the data visualization area. See Work with Metrics Visualizations to learn how to interact with the visualization and modify settings.

    metrics_first chart.jpg