Skip to content

Commit

Permalink
update equation example
Browse files Browse the repository at this point in the history
  • Loading branch information
mdbirnstiehl committed Nov 2, 2023
1 parent 23a5bbc commit 6fe7a8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/en/observability/threshold-alert.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Set an equation and threshold to to trigger an alert when a metric is above a th
*Boolean logic*:: Use conditional operators and comparison operators with you aggregations to define conditions for alerting.
+
*Example* +
Set an equation and threshold to trigger an alert when two fields that should have same value differ. For this example, we'll use `kubernetes.statefulset.ready` and `kubernetes.statefulset.desired`, and trigger an alert when their values differ. To do this, set the following aggregations, equation, and threshold:
Set an equation and threshold to trigger an alert when the number of stateful pods differs from the number of desired pods. For this example, we'll use `kubernetes.statefulset.ready` and `kubernetes.statefulset.desired`, and trigger an alert when their values differ. To do this, set the following aggregations, equation, and threshold:
+
. Set the following aggregations:
** *Aggregation A:* Sum `kubernetes.statefulset.ready`
Expand Down

0 comments on commit 6fe7a8f

Please sign in to comment.