Create and Configure Conditions
You can define a condition or a set of conditions to evaluate the performance metrics of your application.
Use the following options to evaluate the conditions:
- Expression builder embedded in the health rules wizard to create a condition based on a complex expression comprising multiple interdependent metrics.
- Custom boolean expression to evaluate multiple conditions within a health rule. You can use the AND and OR operators in a boolean expression.
Create a Condition
Evaluating Serverless Tiers
When you monitor serverless entities comprising tiers for AWS Lambda, the health rules are evaluated as described below.
Health Rule Type | Affected Entities | Condition Evaluation Criteria | Evaluation |
---|---|---|---|
| serverless tier(s) | The BT Average | Metrics are aggregated at the tier level. |
serverless node(s) |
| Metrics for serverless tiers are aggregated at the tier level, while the metrics for other tiers are evaluated as per the defined criteria. | |
Tier/Node Health (Transaction Performance) | serverless tier(s) |
| Metrics for serverless tiers are aggregated at the tier level, regardless of the evaluation criteria defined. |
serverless node(s) |
| The performance of serverless tiers is not evaluated for Tier/Node Health (Hardware) health rules. AWS does not offer node-level dashboards or metrics because the serverless platform runtime instances spin up and down on-demand. | |
Tier/Node Health (Hardware) |
| - | The performance of serverless tiers is not evaluated for Tier/Node Health (Hardware) health rules. AWS does not offer node-level dashboards or metrics because the serverless platform runtime instances spin up and down on-demand. |
Configure a Condition
Evaluation of Agent Availability Metrics
Using Health Rule Conditions to evaluate agent availability metrics can result in false positives. For example:
- Agents may not be connecting with controllers due to communication errors for a couple of minutes.
- Data may be delayed for a couple of minutes due to latency issues.
- Select Nodes that the health rule affects. You can also set Tiers, however, it is recommended that you set Nodes.
- Select Node Health - Hardware, JVM, CLR as the health rule Type.
- Use the last five minutes, with a wait time of ten minutes.
- Set your condition to be the Sum of < Specific value of three.
This configuration generates a violation when the agent is down for more than two minutes during the last five minutes.
Health Rule Violation for Agent Availability Metrics
The purpose of the availability metrics is to check if the applications monitored by agents are available.
If an agent goes down due to any reasons, the controller does not get the status of the corresponding application.
If a health rule is created for an availability metric, the health rule violates when the agent is down, and an alert is generated. This is because the situation is considered as no data received from the source and health rule is evaluated. In such case, the health rule violation does not indicate that your application is down. You can ignore such alert and disable the health rule.
The option Evaluate to True on No Data does not have any impact on such health rules.
Build an expression
To access the expression builder to create a complex expression as the basis of a condition, select the Metric Expression option from the drop-down list and click Add Expression. The Metric Expression window is displayed that allows you to construct a mathematical expression to use as a metric.
For example, the following expression is created to measure the percent of slow business transactions.
Create a Custom Boolean Expression
Once you define all the conditions required for the health rule, you can create a custom boolean expression to evaluate the health rule.
Modify the Custom Boolean Expression
- Select the expression in the Condition Combination field.
- Edit the boolean expression as required.
- Click Save.
Delete a Condition
Delete a condition component by clicking the delete (X) icon.