-
Notifications
You must be signed in to change notification settings - Fork 0
/
example_config.yml
79 lines (79 loc) · 3.44 KB
/
example_config.yml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#
# dashboard config file
#
variables:
prometheus_api_server: http://prometheus-server:9090
application_instance: $APPLICATION_INSTANCE
sample_period: 15m
timezone: US/Pacific
web-service-block: &web-service-block
query: sum(dependent_metric1{label1=value,label2=${application}-${application_instance},label3=${service}}[${sample_period}]) / sum(dependent_metric1{label1=value,label2=${application}-${application_instance},label3=${service}}[${sample_period}])
threshold:
- limit: 0.999
description: Some error responses
dashboards:
# application's display name
- app_name: MyUW
# status page url path: /{app_path}
app_path: myuw
# url supplying dynamic status notification text
#app_notification_url: https://some-server/some-path/myuw/some-file.html
# status page cache timeout (optional: default is 5 minutes)
cache_timeout: 1
variables:
application: myuw
panels:
- name: MyUW Status
services:
# dictionary of application components and the prometheus query to determine health
- name: MyUW
description: UW Campus Information Portal
link: https://my.uw.edu
# query should return boolean: "1" is healthy, "0" is not so much
query: sum(some_metric{label1=value,label2=${application}-${application_instance},label3=portion}[${sample_period}]) / sum(some_metric{label1=value,label2=${application}-${application_instance},label3=whole}[${sample_period}])
# metric results which produce error indicators listed in descending order
threshold:
- limit: 0.75
description: Critical
- limit: 0.99
description: Degraded
- name: Critical Services
description: Services required to provide MyUW access and content.
critical_description: As not all critical services appear healthy, MyUW is likely unavailable and serving an error page.
services:
# list of dependent services and the test to determine its healthiness
- <<: *web-service-block
name: Student Web Service
description: Service course and registration information
variables:
service: sws
- <<: *web-service-block
name: Person Web Service
description: Service supplying person information
variables:
service: pws
- name: Dependent Services
description: Services providing specific MyUW content.
critical_description: As not all services appear healthy, some MyUW content may be missing or displaying an error message.
services:
- <<: *web-service-block
name: UWNetID Web Service
description: Service supplying campus service information
variables:
service: uwnetid
- <<: *web-service-block
name: Canvas Web Services
description: Service supplying course information
variables:
service: canvas
- <<: *web-service-block
name: Calendar Web Service
description: Service supplying event information
link: https://www.washington.edu/calendar/
variables:
service: calendar
- <<: *web-service-block
name: Housing and Food Services
description: Husky card information
variables:
service: hfs