Skip to main content
Sumo Logic

Lab 10 - Monitoring Metrics

This lab teaches you how to add metrics charts as panels to dashboards.

Dashboards

Dashboards are a collection of metric or log Panels, allowing users to easily monitor trends or critical events over time. 

Create a Dashboard with 4 queries from previous labs. Your results will vary from the screenshot below, depending on which labs you decided to display, and what display options (line vs area, colors, outliers) you select.

image31.png

Metric Monitors


For your metrics query, you can set the monitor on a time series to alert when the metric has crossed a static threshold, and then send an email or Webhook notification. You can set a maximum of one critical alert, one warning alert, and one missing data alert for each monitor, each with one or more notification destinations.

A monitor can alert on a single time series, multiple time series, or a Join of two metrics queries. In other words, if your monitor query produces 10 different time series, you will get alerts on all of those time series individually. If your query applies to the Join condition only, you will receive a separate alert on that Joined value. For example, if you create a monitor to alert on CPU across 10 hosts, you will receive a separate alert for each individual host that crosses the threshold you set.

For this lab, let's create some metric monitors to alert on CPU Usage for all our containers.

  1. Create the following query:

    metric=CPU_usage container=container

    step2.png

  2. Now let's create some Metric Monitors that alert us on specific thresholds. Click on the Monitor icon to the right of your query.

    step3.png

  3. In the Metric Monitor screen, you'll be able to specify thresholds. Use the following:

    • Critical: Greater than 90 for all of the last 15 minutes

    • Warning: Greater than 85 for all of the last 15 minutes

      step4.png

      Note: You might need to adjust the values according to your metrics data.
       

  4. Your metrics will reflect this graphically:

    step5.png

  5. Once you specify a Name and an optional Description, you can save your new Metric Monitor.

  6. Lastly, if you did save your Monitor, do not forget to delete it so you do not get Alerts on this training data. To delete your training Metric Monitor: 

    • In the left Navigation bar, go to Manage Data > Alerts:

    • Find your Metric Monitor by Name and Delete it on the right-hand side.

      step7.png