-
Notifications
You must be signed in to change notification settings - Fork 21
/
example_nrql_alert_condition.yaml
41 lines (40 loc) · 1.15 KB
/
example_nrql_alert_condition.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Note: If using a k8s secret, remove `api_key`, uncomment `api_key_secret`,
# add your API key to examples/example_secret.yaml, and run
# `kubectl apply -f examples/example_secret.yaml`
apiVersion: nr.k8s.newrelic.com/v1
kind: AlertsNrqlCondition
metadata:
name: alert-1029266
spec:
account_id: <your New Relic account ID>
api_key: <your New Relic personal API key>
# api_key_secret:
# name: nr-api-key
# namespace: default
# key_name: api-key
type: "NRQL"
nrql:
query: "SELECT count(*) FROM Transactions"
evaluationOffset: 10
enabled: true
terms:
- threshold: "75.0"
threshold_occurrences: "ALL"
threshold_duration: 60
priority: "CRITICAL"
operator: "ABOVE"
expiration:
expirationDuration: 360
closeViolationsOnExpiration: false
openViolationOnExpiration: true
# signal:
# aggregation_window: 360
# evaluation_offset: 30
# fill_option: NONE
# fill_value: 15
name: "nrql condition (new)"
violationTimeLimit: "ONE_HOUR"
valueFunction: "SINGLE_VALUE"
# Must reference an existing New Relic alert policy from your account
existing_policy_id: "897188"
region: "US"