Create a Monitor
This topic shows you how to create a monitor.
Step 1: Open New Monitor window
From your Monitors page
- Go to the Monitors page by clicking Manage Data > Monitoring > Monitors.
- Click on the Add button > New Monitor to add a new Monitor. The creation dialog box will appear.
From your Dashboard
- From a Dashboard, hover your mouse over a panel, click the kebab icon, then Open in Log Search.
- From your log search view, click the kebab icon in the upper right corner, then Create a Monitor.
From your Log Search
- Click the kebab icon in the upper right corner, then Create a Monitor.
From your Metrics Explorer
Creating a monitor based on the threshold values defined in the Metrics page can save time and effort. By using the pre-filled monitor editor, you can quickly create a monitor with the same threshold values as defined in the Metrics page. This will ensure that the monitor is using the same criteria as the Metrics page, providing consistency in monitoring.
To create a monitor from the Metrics Explorer, follow the steps below:
- Open the Metrics Explorer page and enter the metrics query to create a monitor from it.
- In the Threshold section, define the critical and warning thresholds for your metrics query.
- Click the Create a Monitor button located at the top right of the page.
- The Monitor Editor will open with prefilled data based on the threshold values set on the Metrics page.
- In the Trigger Type section of the monitor editor, enable the checkbox that corresponds to the threshold value that you want to use (either "Critical", "Warning", or both).
- The threshold values will be the same as defined in the Metrics page for both Critical and Warning thresholds.
- All other parameters should be set to default, including the window (15 minutes) and the "at all times" box.
- Ensure that the Recover value is set to the default, which is the opposite of the Alert value. The Edit Recovery button should be off.
- Once all values have been set, click on Save to create the monitor.
- The same threshold will also be applied to the histogram chart.
Note that the same threshold translating functionality supports to Opening Alerts Response Page in the Metrics Explorer and Opening Monitor in the Metrics Explorer.
Step 2: Select Monitor type and Detection Method
- Select a Monitor Type (Logs, Metrics, or SLO).
- Select a Detection Method (Static or Outlier).
- Static allows you to set specific threshold conditions. Use this detection method when you are alerting on KPIs that have well defined and constant thresholds for what's good and bad. For example, infrastructure metrics like CPU utilization, and memory.
- Outlier lets you detect an unusual change or a spike in a time series of a key indicator. Use this detection method when you are alerting on KPIs that don't have well-defined constant thresholds for what's good and bad. You want the Monitor to automatically detect and alert on unusual changes or spikes on the alerting query. For example, application KPIs like page request, throughput, and latency.
Step 3: Provide a Query
Provide a Log or Metrics query.
- Logs Monitors can have one query up to 4,000 characters long.
- Metrics Monitors can have up to six queries. When providing multiple metrics queries, use the letter labels to reference a query row. The Monitor will automatically detect the query that triggers your alert, and will mark that row with a notification bell icon. See joined metrics queries for details.
If you're using the Outlier detection method, you'll need to select the Direction you want to track (Up, Down, or Both).
- Up. Only get alerted if there is an abnormal increase in the tracked key indicator.
- Down. Only get alerted if there is an abnormal decrease in the tracked key indicator.
- Both. Get alerted if there is any abnormality in the data whether an increase or a decrease.
If you chose the Static detection method, you won't see this option.
Step 4: Specify the Trigger Type
- Specify the Trigger Type. A Monitor can have one critical, warning, and missing data trigger condition, each with one or more notification destinations. Triggers have different options depending on the query and alert type. Click the Expand button next to the query type you're using for configuration details.
Logs Trigger Types (expand to view)
Metrics Trigger Types (expand to view)
Step 5: Additional Settings (optional)
Alert Name
Alert Name allows you to customize the name that appears on the Alert Page. By default, the Alert name is the monitor name, but you may want to create a custom name based on your use case. You can include any of the available alert variables, except {{AlertName}}
, Playbook
, {{AlertResponseURL}}
, and {{ResultsJson}}
, in the name such as the type of monitor or trigger condition. You can check the alert variables list for details.
- Example:
{{Resultsjson.Env}}
- High CPU. This alert will produce an Alert with the name like PROD - High CPU. Here we are assuming that there is a field name Env in underlying data that has a value of "PROD".
Evaluation Delay
Collection delays may occur due to your environment and it takes a couple of minutes for data to be processed into Sumo Logic. Since Monitors run on data from the most current time period, it's possible for Monitors to evaluate against incomplete data. As a result, Monitors can generate false positives or negatives that can cause confusion. Set an evaluation delay in seconds to delay the evaluation of a Monitor, so it doesn't look at the most current time (where data can be incomplete) and instead looks at an older period of time, where you have more complete data.
If your data is coming from the Amazon CloudWatch Source for Metrics we recommend a setting of 900 seconds.
Set Notifications
When a trigger condition is met you can send notifications to other people and services. To add notifications click on the Add Notification button. You can add more than one notification channel for a Monitor.
Metric Monitors have an option to send notifications either as a group or separately. Group Notifications define whether you want single notifications per time series that match the Monitor query or you want group notifications where you receive a single notification for the entire Monitor. Log Monitors always group notifications.
The Connection Type specifies the notification channel where you want to get notified, such as an email or webhook. See Connections for details. Monitor notifications support variables to reference its configuration settings or your raw data. See alert variables for a table of the available variables.
- Email: Provide 1-100 recipient email addresses. You can customize the email subject and body.
- Webhook: By default, the payload defined on the Connection is used. You can customize your payload for each notification if needed.
- Select the Alert and Recovery checkboxes for each trigger type based on when you want to send a notification. You can have different Trigger Conditions send a notification to different channels. For example, you can get notified on PagerDuty for critical Incidents and get an email or Slack notification for warning incidents.If your connection type is Lambda, Microsoft Teams, OpsGenie, PagerDuty, Slack, or a generic webhook, the Recovery checkbox enables an automatic resolution process that updates the connection when an alert has recovered within Sumo Logic. Support for other connection types is coming soon.tip
See the Notifications section for details on alert and recovery notifications.
- Add Notifications to add additional notification channels as needed. You can configure different notifications for each trigger type, critical, warning, and missing data.
Add Playbook
Playbooks allow admins to codify tribal knowledge for an on-call so they know what exactly to do when they receive an alert. You have the option to provide a playbook when creating a Monitor, as shown in the below image. Markdown is supported.
Step 6: Name and save your monitor
- Enter a Name for the Monitor and the Location you want it saved to. A Description is optional.
- Click the Save button at the top right of the panel when you're finished configuring the Monitor.
Other Configurations
Using Terraform
- You can configure Sumo Logic Monitors using Terraform modules.