-
Notifications
You must be signed in to change notification settings - Fork 7
/
trend-calculation.yaml
58 lines (58 loc) · 1.45 KB
/
trend-calculation.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
apiVersion: openslo/v1alpha
kind: SLO
metadata:
displayName: Trend prediction delay
name: trend-compute-delay
spec:
service: ts-analytics
description: checks trending values are being calculated with acceptable delays
budgetingMethod: Occurrences
objectives:
- ratioMetrics:
good:
source: sumologic
queryType: Logs
query: '!isNull(duration) and duration/1000 < 100'
incremental: true
total:
source: sumologic
queryType: Logs
query: '_sourceCategory=tsat-batcher | where msg="trends query completed"'
displayName: delay less than 100 seconds
target: 0.975
timeWindows:
- count: 1
isRolling: true
unit: Day
createView: true
fields:
region: 'if(isNull(Region),"-",Region)' # using an expression
labels:
team: analytics
tier: 1
alerts:
burnRate:
- shortWindow: '10m'
shortLimit: 2
longWindow: '1h'
longLimit: 4
notifications:
- connectionType: 'Email'
recipients:
- 'agaurav@sumologic.com'
timeZone: 'PST'
triggerFor:
- Warning
- ResolvedWarning
- shortWindow: '2h'
shortLimit: 4
longWindow: '24h'
longLimit: 1
notifications:
- connectionType: 'Email'
recipients:
- 'agaurav@sumologic.com'
timeZone: 'PST'
triggerFor:
- Warning
- ResolvedWarning