Create a metric alert :: Kloudfuse Docs
Create a metric alert
Metric monitors analyze continuous streams of data. When collecting metrics through Kloudfuse or APIs, you can configure alerts to trigger on specified conditions.
To create a metric alert, complete these tasks:
- Begin defining a metric alert
- Choose the detection method
- Pick metric
- Set condition
- Add details
- Add contacts
- Create rule
Start defining a metric alert
- In the Alerts interface, click .
- In the initial interface for creating alerts, Kloudfuse guides you to select the appropriate alert type. Choose Metric.
- The Create Metric Alert interface appears.
Choose the detection method
Metric alerts have these detection options:
- Threshold alert
- Change alert
- Outliers alert
- Anomaly detection
- Forecast Alert
Pick metric
- Next to the first query, marked by , click the text field to select a metric from the drop-down.
Work with filters
- To add a new filter, select a label and add it to the metric view.
- In the expanded view, click the first option, and choose the new label from the drop-down.
- Choose the comparison operator:
=~Regex expression equal!~Regex expression not equal!=Not equal=Equal (default)
- Finally, click the second option to choose the label value from the drop-down.
Work with aggregations
- In the aggregation section, click avg, and select another aggregation calculation from the drop-down.
- The chart changes to show the newly selected aggregation of results.
Work with functions
- To add a new function to the graph, click the icon.
- In the drop-down, either search for a function name, or select an existing function category, and then pick the function name.
Work with queries
- To add a query, click .
- Notice that a new query appears under query .
- Change the selected filter in query .
Work with formulas
- To add a formula, click .
- The empty formula option appears in interface as line .
- Type the formula in the text box next to label .
Set condition
- Define the condition depending on the detection method:
- Threshold Alert
- Change Alert
- Outliers Alert
- Anomaly Detection Alert
- Forecast alert
Example: Condition for Threshold Metric Alerts - Select a condition function: Mean, Min, Max, Sum, Count, or Last (default).
- Select the evaluated query or formula.
- Select the comparison operator: above, below, etc.
- Specify the time interval.
Add details
- In the Folder name drop-down, select one of the folders or create a new folder.
- In Rule name, specify the name of your rule.
- Optionally, add a title, runbook URL, description, and custom labels.
Add contacts
- Choose one or more existing contacts from the drop-down to receive the alert.
- You can create new contact points by clicking on Create New Contact Points and following the configuration steps.
Create rule
- To finalize, click Create Rule.
- After reviewing the selection, click Confirm and Create to receive a confirmation message.