-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgrafanaConfig.json
More file actions
109 lines (109 loc) · 2.18 KB
/
grafanaConfig.json
File metadata and controls
109 lines (109 loc) · 2.18 KB
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
{
"name": "Config for Grafana dashboards",
"baseURL": "http://127.0.0.1:8080/books",
"options": {
"scenarios":{
"warmUp": {
"executor": "ramping-vus",
"gracefulStop": "5s",
"startVUs": 10,
"stages": [
{ "duration": "10s", "target": 30 },
{ "duration": "10s", "target": 20 },
{ "duration": "20s", "target": 50 }
]
},
"work": {
"executor": "constant-vus",
"startTime": "20s",
"gracefulStop": "5s",
"vus": 40,
"duration": "20s"
},
"coolDown": {
"executor": "per-vu-iterations",
"startTime": "40s",
"vus": 5,
"iterations": 10,
"maxDuration": "30s"
}
},
"thresholds": {
"http_req_failed": ["rate < 0.05"],
"http_req_duration": ["p(90)<30", "p(99)<35", "max<120"],
"http_req_duration{group:home}": [{
"threshold": "p(95)<150",
"abortOnFail": false
}]
}
},
"requests": [
{
"type": "GET",
"path": "/all",
"params": {
"tags": {
"group": "home"
}
},
"checks": {
"status": 200,
"body": {
"min-length": 1,
"includes": "id"
},
"error_code": 0
}
},
{
"type": "GET",
"path": "/1",
"checks": {
"status": 200,
"error_code": 0
}
},
{
"type": "POST",
"path": "/new",
"payload": {
"name": "Smart Stories",
"author": "Julia",
"releaseDate": "2005-10-10"
},
"params": {
"headers": {
"content-type": "application/json"
},
"timeout": "10s"
},
"checks": {
"status": 201
}
},
{
"type": "PUT",
"path": "/1",
"payload": {
"name": "Mediocre Stories",
"author": "Nils",
"releaseDate": "2015-11-10"
},
"params": {
"headers": {
"content-type": "application/json"
}
},
"checks": {
"status": 200
}
},
{
"type": "DELETE",
"path": "/2",
"checks": {
"status": 204
}
}
]
}