Configure Policies
In this section you will enable a Policy to create Stories and create a Policy to assign a Runbook to a Story.
π TASK: Enable Story creation Policy
π Documentation for the Task: Default story creation policiesCP4AIOPS provides two preset/of the box story creation policies. For story creation to occur, you must enable one of these default policies, or create your own custom story creation policy. These policies are disabled by default.
In the
CP4AIOPS
βHamburgerβ Menu selectOperate
/Automations
Select tab
Policies
Click on the
Tag
dropdownSelect
Stories
andRunbooks
Turn on Policy
Default story creation policy for all alerts
π TASK: Create Runbook Assignment policy
π Documentation for the Task: Assign a runbook to alertsFor this training, you want to have a runbook take action when you receive alerts stating that the MySQL database is not reachable. Create a policy to assign this runbook every time we get alerts related to a problem with the MySQL database.
Click on
Create Policy
Click on
Assign a runbook to alerts
Name it
RobotShop Mitigate MySQL Problem
Scroll down to
Condition sets
Click
Add Condition
Select
Alert Property
Click in field
Property
Type
name
Select
resource
/name
Under
Operator
selectcontains
Click in field
Value
Type
mysql
Select
String: mysql
Check runbook
RobotShop Mitigate MySQL Problem
Check
Use default parameter value
Click
Create Policy
Your list of Policies should now look like this