You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"expr": "sum(capi_runtime_sdk_requests_total{hook=~\"$hook\"}) by (hook)",
109
+
"range": true,
110
+
"refId": "A"
111
+
}
112
+
],
113
+
"title": "Request total",
114
+
"type": "timeseries"
115
+
},
116
+
{
117
+
"datasource": {
118
+
"type": "prometheus",
119
+
"uid": "prometheus"
120
+
},
121
+
"fieldConfig": {
122
+
"defaults": {
123
+
"color": {
124
+
"mode": "palette-classic"
125
+
},
126
+
"custom": {
127
+
"axisCenteredZero": false,
128
+
"axisColorMode": "text",
129
+
"axisLabel": "",
130
+
"axisPlacement": "auto",
131
+
"barAlignment": 0,
132
+
"drawStyle": "line",
133
+
"fillOpacity": 0,
134
+
"gradientMode": "none",
135
+
"hideFrom": {
136
+
"legend": false,
137
+
"tooltip": false,
138
+
"viz": false
139
+
},
140
+
"lineInterpolation": "linear",
141
+
"lineWidth": 1,
142
+
"pointSize": 5,
143
+
"scaleDistribution": {
144
+
"type": "linear"
145
+
},
146
+
"showPoints": "auto",
147
+
"spanNulls": false,
148
+
"stacking": {
149
+
"group": "A",
150
+
"mode": "none"
151
+
},
152
+
"thresholdsStyle": {
153
+
"mode": "off"
154
+
}
155
+
},
156
+
"mappings": [],
157
+
"thresholds": {
158
+
"mode": "absolute",
159
+
"steps": [
160
+
{
161
+
"color": "green",
162
+
"value": null
163
+
},
164
+
{
165
+
"color": "red",
166
+
"value": 80
167
+
}
168
+
]
169
+
}
170
+
},
171
+
"overrides": [
172
+
{
173
+
"__systemRef": "hideSeriesFrom",
174
+
"matcher": {
175
+
"id": "byNames",
176
+
"options": {
177
+
"mode": "exclude",
178
+
"names": [
179
+
"{hook=\"GeneratePatches\"}"
180
+
],
181
+
"prefix": "All except:",
182
+
"readOnly": true
183
+
}
184
+
},
185
+
"properties": [
186
+
{
187
+
"id": "custom.hideFrom",
188
+
"value": {
189
+
"legend": false,
190
+
"tooltip": false,
191
+
"viz": true
192
+
}
193
+
}
194
+
]
195
+
}
196
+
]
197
+
},
198
+
"gridPos": {
199
+
"h": 8,
200
+
"w": 24,
201
+
"x": 0,
202
+
"y": 13
203
+
},
204
+
"id": 2,
205
+
"options": {
206
+
"legend": {
207
+
"calcs": [],
208
+
"displayMode": "list",
209
+
"placement": "bottom",
210
+
"showLegend": true
211
+
},
212
+
"tooltip": {
213
+
"mode": "single",
214
+
"sort": "none"
215
+
}
216
+
},
217
+
"targets": [
218
+
{
219
+
"datasource": {
220
+
"type": "prometheus",
221
+
"uid": "prometheus"
222
+
},
223
+
"editorMode": "code",
224
+
"expr": "sum(rate(capi_runtime_sdk_requests_total{hook=~\"$hook\"}[1m])) by (hook)",
225
+
"range": true,
226
+
"refId": "A"
227
+
}
228
+
],
229
+
"title": "Request per minute",
230
+
"type": "timeseries"
231
+
},
232
+
{
233
+
"datasource": {
234
+
"type": "prometheus",
235
+
"uid": "prometheus"
236
+
},
237
+
"fieldConfig": {
238
+
"defaults": {
239
+
"color": {
240
+
"mode": "palette-classic"
241
+
},
242
+
"custom": {
243
+
"axisCenteredZero": false,
244
+
"axisColorMode": "text",
245
+
"axisLabel": "",
246
+
"axisPlacement": "auto",
247
+
"barAlignment": 0,
248
+
"drawStyle": "line",
249
+
"fillOpacity": 0,
250
+
"gradientMode": "none",
251
+
"hideFrom": {
252
+
"legend": false,
253
+
"tooltip": false,
254
+
"viz": false
255
+
},
256
+
"lineInterpolation": "linear",
257
+
"lineWidth": 1,
258
+
"pointSize": 5,
259
+
"scaleDistribution": {
260
+
"type": "linear"
261
+
},
262
+
"showPoints": "auto",
263
+
"spanNulls": false,
264
+
"stacking": {
265
+
"group": "A",
266
+
"mode": "none"
267
+
},
268
+
"thresholdsStyle": {
269
+
"mode": "off"
270
+
}
271
+
},
272
+
"mappings": [],
273
+
"thresholds": {
274
+
"mode": "absolute",
275
+
"steps": [
276
+
{
277
+
"color": "green",
278
+
"value": null
279
+
},
280
+
{
281
+
"color": "red",
282
+
"value": 80
283
+
}
284
+
]
285
+
}
286
+
},
287
+
"overrides": []
288
+
},
289
+
"gridPos": {
290
+
"h": 13,
291
+
"w": 24,
292
+
"x": 0,
293
+
"y": 21
294
+
},
295
+
"id": 3,
296
+
"options": {
297
+
"legend": {
298
+
"calcs": [],
299
+
"displayMode": "list",
300
+
"placement": "bottom",
301
+
"showLegend": true
302
+
},
303
+
"tooltip": {
304
+
"mode": "single",
305
+
"sort": "none"
306
+
}
307
+
},
308
+
"targets": [
309
+
{
310
+
"datasource": {
311
+
"type": "prometheus",
312
+
"uid": "prometheus"
313
+
},
314
+
"editorMode": "code",
315
+
"expr": "sum(rate(capi_runtime_sdk_request_duration_seconds_sum{hook=~\"$hook\"}[5m])) by (hook) / sum(rate(capi_runtime_sdk_request_duration_seconds_count{hook=~\"$hook\"}[5m])) by (hook)",
0 commit comments