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.
Field | Type | Description |
---|---|---|
alerts | [AlertsConfig] |
AlertsConfig
Field | Type | Description |
---|---|---|
name | string required | |
metric | string default:calls | One of: - calls |
window | string required | String represents the duration in the form "72h3m0.5s". |
threshold | int | |
filters | AlertsFilter |
AlertsFilter
Field | Type | Description |
---|---|---|
hash | string | |
status | string default:NONE | One of: - PASSED - BLOCKED - EXCEPTION - NONE |
operation_type | string default:UNKNOWN | One of: - QUERY - MUTATION - SUBSCRIPTION - UNKNOWN |
operation_name | string | |
client | string | |
has_errors | boolean | |
error | string | |
tag | string |