newrelic / nr-labs-pathpoint

Mapping business flow to telemetry signals
Apache License 2.0
0 stars 2 forks source link

Status Weighting Rules #439

Open aso1124 opened 6 days ago

aso1124 commented 6 days ago

Allow customization of how a signal status affects the overall status for the step it belongs to.

Each step can have a set of weighting rules defined for it. The user will be able to configure signals as either contributing to the status calculation, or exclude them entirely

  1. Worst case wins (default): the step status is the same as the worst status for any of its signals (i.e. one signal is red, the step is red)
  2. Percentage evaluation: the step status is set if a certain percentage of signals in the step are in warning/critical. There should be gradations ... e.g. if 25% of signals are red, then the step goes yellow; if 50% of signals are red, the step goes red. In the percentage scenario, we also need to allow the user to set Critical Signals that will override the percentage calculations - if Critical Signals are set, they basically take precedence and set the Step status based on their state. This is a bit complex and needs a little more thought .. for instance, what if the percentage rule would set the step to red, but there's a Critical Signal that is only in yellow? Does the step go yellow or red?
khpeet commented 4 days ago

Some initial thoughts/opinions: