AppDynamics Application Intelligence Platform
This topic describes the detailed steps for configuring health rules using the health rule wizard.
Click Alert & Respond->Health Rules.
The health rule wizard contains four panels:
You can navigate among these panels using the Back and Next buttons at the bottom of each panel or by clicking their entries in the left panel of the wizard. You should configure the panels in order, because the configuration of the health rule type in the Overview panel determines the available affected entities in the Affects panel as well as the available metrics in the Condition panels.
The basic health rule wizard uses some short cuts to define the most commonly use health rules. If you need to set up rules that are outside of that set you should use the Custom Health Rule Types method or the Hybrid method.
Most of the time you should use the basic health rules wizard to set up your health rules.
You configure generic settings for your health rules in the Overview panel.
1.Set a name. If a name already exists, you can change it if you like.
2. If you want the health rule in an enabled state (the default), check Enabled. Clear to disable.
3. Select a health rule type by clicking on the name in the list.
This setting affects metrics offered for configuration in subsequent panels in the basic wizard, so you must select a health rule type before continuing to other panels. If none of the predefined health rule types are applicable for your needs, you need to use the Custom method or the Hybrid method.
4. If the health rule is always (24/7) enabled, check the Always check box.
If the health rule is enabled only at certain times, clear the Always check box and either:
Click Create New Schedule.
The Create Schedule window opens. See To Create a New Health Rule Schedule.
The time is the time at the site of the controller, not the app agent. For example, if the enabled time is set to 5pm-6pm, Mon-Fri and the controller is in San Francisco but the app agent is in Dubai, the health rule engine uses San Francisco time.
5. Click the dropdown menu Use the last <> minutes of data and select a value between 1 and 360 minutes for the evaluation window. This is the amount of recent data to use to determine whether a health rule violation exists. This value applies to both critical and warning conditions. See Health Rule Evaluation Window.
6. In the Wait Time after Violation section, enter the number of minutes to wait before evaluating the rule again for the same affected entity in which the violation occurred. See Health Rule Wait Time After Violation.
7. Click Save.
8. Click Next.
1. In the Overview window of the Health Wizard, clear the Always check box if it is checked.
2. Click Create New Schedule.
2. Enter a name for the schedule.
3. Enter an optional description of the schedule.
4. Enter the start and end times for the schedule as cron expressions. See http://www.quartz-scheduler.org/documentation/quartz-2.1.x/tutorials/crontrigger for details about and examples of cron syntax.
5. Click Next.
The Affects panel lets you define which thing your health rule affects. These things are called entities. For example, a business transaction, a node or set of nodes, or an information point are all entities. The choices you are offered depends on the health rule type you chose in the Overview panel. In this case, the health rule type selected affects Tiers or Nodes.
1. Use the dropdown menu to select the the entities affected by this health rule.
The entity affected and the choices presented in the menu depend on the health rule type configured in the Overview window.
See Entities Affected by a Health Rule for information about the types of entities that can be affected by the various health rule types.
2. If you select entities based on matching criteria, specify the matching criteria.
3. If you are configuring a JMX health rule, select the JMX objects that the health rule is evaluated on.
4. Click Next.
The high-level process for configuring conditions is:
1. Determine the number and kind of metrics the health rule should evaluate. For each performance metric you want to use, create a condition.
2. Decide whether the health rule is violated if all of the tests are true or if any single test is true.
3. For business transaction performance health rules and node health rule types that specify affected entities at the tier level, decide how many of the nodes must be violating the health rule to produce a violation event. See Health Rule Evaluation Scope.
4. To configure a critical condition use the Critical Condition window. To configure a warning condition use the Warning Condition window.
The configuration processes for critical and warning conditions are identical.
You can copy the settings between Critical and Warning condition panels and just edit the fields you desire. For example, if you have already defined a critical condition and you want to create a warning condition that is similar, in the Warning Condition window click Copy from Critical Condition to populate the fields with settings from the Critical condition.
1. In the Critical Condition or Warning Condition window, click + Add Condition to add a new condition component.
The row defining the component opens. See To Configure a Condition Component. Continue to add components to the condition as needed.
2. From the drop-down menu above the components, select All if all of the components must evaluate to true to constitute violation of the rule. Select Any if a health rule violation exists if any single component is true.
3. For health rules based on the following health rule types:
you must specify evaluation scope.
If the Health Rule will violate if the conditions above evaluate to true section is visible, click the appropriate radio button to set the evaluation scope.
If you select percentage of nodes, enter the percentage. If you select number of nodes, enter the absolute number of nodes.
1. In the first field of the condition row, name the condition.
This name is used in the generated notification text and in the AppDynamics console to identify the violation.
2. To select the metric on which the condition is based, do one of the following:
3. From the Value drop-down menu before the metric, select the qualifier to apply to the metric from the following options:
What This Means
The minimum value reported across the configured evaluation time length. Not all metrics have this type.
The maximum value reported across the configured evaluation time length. Not all metrics have this type.
The arithmetic average of all metric values reported across the configured evaluation time length.
The sum of all the metric values reported across the configured evaluation time length.
The number of times the metric value has been measured across the configured evaluation time length.
The value for the current minute.
4. From the drop-down menu after the metric, select the type of comparison by which the metric is evaluated.
See Baselines and Periodic Trends for information about the baseline options.
The "baseline percentage" is the percentage above or below the established baseline at which the condition will be triggered. If, for example, you have a baseline value of 850 and you have defined a baseline percentage of "> 1%", then the condition should trigger if the value is > [850+(850x0.01)] or 859. In addition, in order to prevent too small sample sets from triggering health rules violations, these rules are not evaluated if the load (the number of times the value has been measured) is less than 1000. So if, for example, a very brief time slice is specified, the rule may not violate even if the conditions are met, simply because the load is not large enough.
5. Click Save.
You can remove a component condition by clicking the delete icon.
To access the expression builder to create a complex expression as the basis of a condition, click the gear icon at the end of the row and select Use a mathematical expression of 2 or more metric values.
In the expression builder, use the Expression pane to construct the expression.
Use the Variable Declaration pane to define variables based on metrics to use in the expression.
1. In Variable Declaration pane of the Mathematical Expression builder, click + Add variable to add a variable.
2. In the Variable Name field enter a name for the variable.
3. Click Select a metric to open a small metric browser
4. From the drop-down menu select the qualifier for the metric.
5. Repeat steps 1 through 4 for each metric that you will use in the expression.
You can remove a variable by clicking the delete icon.
6. Build the expression by typing the expression in the Expression pane. Click the Insert Variable button to insert variables created in the Variable Declaration pane.
7. When the expression is built, click Use Expression.
The expression appears as the metric in the condition configuration window.
The procedure for using the Custom health rule type option in the health rules wizard is very similar to using the basic health rules wizard. Use this procedure if you want to create a health rule for a single entity based on a custom metric.
1.In the Overview section, select Custom (use any metrics) in the Type field.
2. In the Affects section, select the kind of entity that the health rule affects: Business Transaction Performance, Node Performance, or Application Performance.
3. When you go on to Configure Health Rule Conditions for the Basic Health Rules Wizard you will have access to the entire metric browser when you are choosing metrics.
If you use the Custom Health Rule Types method, you must set up your evaluation conditions on an entity by entity basis. If you want to use the same custom metrics for evaluation across multiple entities, you should use the Specify a Relative Metric Path method when you are setting up your conditions instead.
1.In the Overview section, choose the health rule type that covers the kind of entity for which you wish to set up custom rules. So, for example, if you wish to set up a custom rule that applies to all nodes based on Perm Gen usage, select Node Health - Hardware, JVM, CLR as your health rule type.
2. Go to the metric browser (Analyze->Metric Browser) and locate the relative path of the metric you wish to add. Right click on the metric and select Copy Full Path.
3. In the Affects section, select the correct type of entity. For example, select All Nodes in the Application.
4. Go on to Configure Health Rule Conditions in the normal way. When you click to bring up the metric list to use for evaluation, select Specify a Relative Metric Path instead of Specify a Metric from the Metric Tree. Use a cropped value for the metric you located in the metric browser and complete configuring your conditions as usual.
Finish configuring your condition as you normally would.