Skip to main content

Configure Alerts

With Epsagon, you can get notified for every problem the occurs in one of your functions, to any supported alert integration.

Epsagon can alert for any of the following metrics: [block:parameters] { "data": { "h-0": "Metric", "h-1": "Threshold Alert", "0-1": "Supported", "h-2": "Singular Alert", "0-0": "Invocations", "1-0": "Errors", "1-1": "Supported", "1-2": "Supported", "2-0": "Timeouts", "3-0": "Out of Memory", "4-0": "Cost", "5-0": "Duration", "6-0": "Memory", "2-1": "Supported", "2-2": "Supported", "3-1": "Supported", "3-2": "Supported", "4-1": "Supported", "5-1": "Supported", "6-1": "Supported" }, "cols": 3, "rows": 7 } [/block]

Singular alert#

Defining a singular alert means that you'll get a notification for every time it happens (with an aggregation up to 5 minutes). For example:

  • Time: 11 am, function X got an error - you'll get notified immediately, for 1 error occurrence.
  • Time: 11:02 am, function X got an error - aggregating.
  • Time: 11:04 am, function X got an error - aggregating.
  • Time: 11:05 am - you'll get notified, for 2 error occurrence.

The notification details include the number of occurrences. To define a singular alert, got to the alerts screen, and create a new "simple" alert. In the alert type - choose the ones that you're interested in.

Threshold alert#

A threshold alert is defined by the following parameters:

  • Event - the desired metric (example: duration).
  • Aggregation - the aggregation function to apply on the metric (example: average).
  • Timeframe - the period to conduct the aggregation on the metric (example: a day).
  • Operator - the operator which will be used to check the threshold (example: >=).
  • Value - the threshold value to cross (example: 300 ms).

Defining a threshold alert means that you'll get a notification for every time the threshold is crossed. In the above example, we will get a notification when our function's average duration in a day >= 300 ms. When it returns to be < 300 ms, we will get another "OK" status notification.

To define a threshold alert, got to the alerts screen, and create a new "threshold" alert. fill in the parameters you're interested in.

threshold-alert.png

Alert for a Group of Functions#

It is more convenient to treat a group of functions in the same alert. /*It provides the ease of:

  • Aggregating all alerting logic into one element rather than several functions.
  • Alert auto applies to any new function that joins the application.

You can configure the application name through the tracing agent, or through the Lambda Dashboard.