-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathexample_config.json
158 lines (158 loc) · 4.73 KB
/
example_config.json
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
{
"capacity_rules": {
"Administrators Rule": {
"custom_msg": "Cluster is almost full.",
"mail_to": [
"admins@company.com",
"storage@company.com"
],
"thresholds": [
85,
90,
95
]
},
"Storage Users Rule": {
"custom_msg": "A custom message for these users. For info, see https://some.site.company.com",
"mail_to": [
"department@company.com"
],
"thresholds": [
60,
65,
70
]
}
},
"cluster_settings": {
"cluster_address": "cluster1.company.com",
"cluster_name": "cluster1",
"password": "password",
"rest_port": 8000,
"username": "admin"
},
"default_quota_rules": {
"rules": {
"Default Quota Rule - Critical": {
"custom_msg": "CRITICAL - A quota is almost full.",
"include_capacity": true,
"mail_to": [
"admins@company.com",
"storage@company.com"
],
"name": "Quota",
"thresholds": [
80,
85,
90
]
},
"Default Quota Rule - Error": {
"custom_msg": "ERROR - A quota has reached capacity.",
"include_capacity": true,
"mail_to": [
"admins@company.com",
"storage@company.com"
],
"name": "Quota",
"thresholds": [
60,
70,
75
]
},
"Default Quota Rule - Warning": {
"custom_msg": "WARNING - A quota has is reaching capacity.",
"include_capacity": true,
"mail_to": [
"admins@company.com",
"storage@company.com"
],
"name": "Quota",
"thresholds": [
50,
55,
60
]
}
}
},
"email_settings": {
"sender_address": "cluster1@company.com",
"server_address": "mail.corp.company.com"
},
"quota_rules": {
"/marketing/videos/": {
"rules": {
"Alert Marketing Department": {
"custom_msg": "A custom message to be sent to the recipients.",
"include_capacity": false,
"mail_to": [
"dl_makerting_mgr@company.com"
],
"thresholds": [
80,
90,
95
]
}
}
},
"/sample_path1/subpath/": {
"rules": {
"Alert Specific Users": {
"custom_msg": "Please follow up with IT at 1-800-111-11111",
"include_capacity": false,
"mail_to": [
"users@company.com"
],
"thresholds": [
80,
90,
95
]
}
}
},
"/sample_path2/subpath/subpath/": {
"Alert Team Leads": {
"custom_msg": "Message to be sent to the recipients for this rule.",
"include_capacity": true,
"mail_to": [
"lead1@company.com",
"lead2@company.com"
],
"rule_name": "Alert Team Leads",
"thresholds": [
70,
75,
80
]
},
"rules": {
"Alert Administrators": {
"custom_msg": "Message to be sent to the recipients for this rule.",
"include_capacity": true,
"mail_to": [
"admin1@company.com",
"admin2@company.com"
],
"thresholds": [
85,
90,
95
]
}
}
}
},
"replication_rules": {
"Replication Rule": {
"custom_msg": "Replication has an issue on this cluster.",
"mail_to": [
"admins@company.com",
"storage@company.com"
]
}
}
}