Skip to main content

Alerts

Alerts configuration allows Inigo's users to configure custom alerts that will be triggered as Inigo events when configured conditions are met.

Example of an alert which is triggered when:

  • service receives at least 5 requests
  • within 2 minutes time window
  • with operation name Login
  • with errors

Sample Config

alerts.yaml

kind: Alerts
name: demo
label: starwars

spec:
alerts:
- name: "login_errors"
metric: calls
window: 2m
threshold : 5
filters:
operation_name: Login
has_errors: true

Spec

This section defines the format of Inigo's Alerts type configuration files. Fields marked as required must be specified if the parent is defined.

FieldTypeDescription
alerts[AlertsConfig]

AlertsConfig

FieldTypeDescription
namestring required
metricstring default:callsOne of:
- calls
windowstring requiredString represents the duration in the form "72h3m0.5s".
thresholdint
filtersAlertsFilter

AlertsFilter

FieldTypeDescription
hashstring
statusstring default:NONEOne of:
- PASSED
- BLOCKED
- EXCEPTION
- NONE
operation_typestring default:UNKNOWNOne of:
- QUERY
- MUTATION
- SUBSCRIPTION
- UNKNOWN
operation_namestring
clientstring
has_errorsboolean
errorstring
tagstring