Skip to main content
Sumo Logic

Lab 14 - Metric Basics

Metrics track KPIs over time and help you gain visibility into your application's performance. In this lab, we'll plot data from an online travel website to determine successful versus unsuccessful bookings.


 

  1. In a new Metrics tab, add a query to search for all your successful bookings for the last 60 minutes.

type=bookings metric=success.count

  1. In a second query underneath the first one, search for all failed bookings.

type=bookings metric=fail.count

Image of metrics syntax

  1. Click on the Settings tab to see what options are available to you. For example, you can change the chart type (line or area), the color palette used, the line width and the axes labels and scales.

  2. Explore the Legend tab, which allows you to view all time series detail for each metric charted.

  3. Back in the query tab, toggle off the success.count by clicking on the orange icon (). This will now only chart the fail.count metric.

  4. Any pink dots in your chart are identifying outliers in your data. You can edit settings for your outliers by clicking the pink dot on the top right and editing the Outliers settings: how many to outliers to show (Top) and how many standard deviations to use when considering outliers (Threshold).

Image of outlier configuration for metrics

  1. Lastly, click on the 3 grey dots in the top right corner to view the query info, refresh the query, or add this chart to a Dashboard.