Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleMatching Rule - apply notification conditions to components using pattern matching techniques

Every notification rule will have a Matching Rule to assign a notification rule to components. Iguana supports glob expression (*), boolean(and/or), or regular expressions (regex) with Tags to create matching rules. To use regex, simply enclose the expression in slash characters /<regex>/. Iguana X does not support the exclamation point for regex !<regex>.

The table below provides an overview of example pattern matching techniques you can combine to create a matching rule.

*Negation

Sample

Type

ExampleDescriptionDescription

*

Wildcard

Apply to all components.

#dev*

Apply to components with #dev followed by 0 or more characters

OR

#prod #dev

OR

Apply to components with either #prod OR or #dev tags.

"#prod #dev"

AND“#prod #dev“

Apply to components with both #prod AND and #dev tags.

-#prod

Negation

Apply to all components without the #prod tag.

“#prod -#dev”

Apply to all components with the #prod tag AND and without #dev.

Expand
titleConditions - the notification rule which triggers a log alerts if met

Conditions are the notification rule criteria. If a condition is met, a log is generated and sent to the notifier component.

There are four types of conditions used to trigger notifications:

  1. Errors: triggered if an error message is generated in the component(s) logs.

  2. Inactivity: triggered if a component(s) has not processed messages in the specified time (in minutes).

  3. Queue: triggered if a component(s) queue count exceeds the threshold value set.

  4. Log Contains: triggered if a component(s) logs contain a matching pattern.

The Log Contains rule is the most flexible type of notification rule as you can leverage default logs generated by Iguana or custom log messages invoked from the Translator (see Custom Logging). The pattern can use strings (ex. component stopped) or regex patterns.

...