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.
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
Delete a Condition
Delete a condition component by clicking the delete (X) icon.