|
20 | 20 | "data": [
|
21 | 21 | {
|
22 | 22 | "type": "cell",
|
23 |
| - "id": "051559b2aa2a2000" |
| 23 | + "id": "0541daaaa9471000" |
24 | 24 | },
|
25 | 25 | {
|
26 | 26 | "type": "cell",
|
27 |
| - "id": "051559b2ae2a2000" |
| 27 | + "id": "0541daaaaac71000" |
28 | 28 | },
|
29 | 29 | {
|
30 | 30 | "type": "cell",
|
31 |
| - "id": "051559b2af6a2000" |
| 31 | + "id": "0541daaaab071000" |
32 | 32 | },
|
33 | 33 | {
|
34 | 34 | "type": "cell",
|
35 |
| - "id": "05155aef3daa2000" |
| 35 | + "id": "0541daaaabc71000" |
| 36 | + }, |
| 37 | + { |
| 38 | + "type": "cell", |
| 39 | + "id": "0541db0ef0871000" |
36 | 40 | }
|
37 | 41 | ]
|
38 | 42 | },
|
|
43 | 47 | },
|
44 | 48 | "included": [
|
45 | 49 | {
|
46 |
| - "id": "051559b2aa2a2000", |
| 50 | + "id": "0541daaaa9471000", |
47 | 51 | "type": "cell",
|
48 | 52 | "attributes": {
|
49 | 53 | "x": 0,
|
|
55 | 59 | "view": {
|
56 | 60 | "data": {
|
57 | 61 | "type": "view",
|
58 |
| - "id": "051559b2aa2a2000" |
| 62 | + "id": "0541daaaa9471000" |
59 | 63 | }
|
60 | 64 | }
|
61 | 65 | }
|
62 | 66 | },
|
63 | 67 | {
|
64 |
| - "id": "051559b2ae2a2000", |
| 68 | + "id": "0541daaaaac71000", |
65 | 69 | "type": "cell",
|
66 | 70 | "attributes": {
|
67 |
| - "x": 0, |
68 |
| - "y": 4, |
69 |
| - "w": 12, |
| 71 | + "x": 4, |
| 72 | + "y": 0, |
| 73 | + "w": 4, |
70 | 74 | "h": 4
|
71 | 75 | },
|
72 | 76 | "relationships": {
|
73 | 77 | "view": {
|
74 | 78 | "data": {
|
75 | 79 | "type": "view",
|
76 |
| - "id": "051559b2ae2a2000" |
| 80 | + "id": "0541daaaaac71000" |
77 | 81 | }
|
78 | 82 | }
|
79 | 83 | }
|
80 | 84 | },
|
81 | 85 | {
|
82 |
| - "id": "051559b2af6a2000", |
| 86 | + "id": "0541daaaab071000", |
83 | 87 | "type": "cell",
|
84 | 88 | "attributes": {
|
85 |
| - "x": 4, |
86 |
| - "y": 0, |
87 |
| - "w": 4, |
| 89 | + "x": 6, |
| 90 | + "y": 4, |
| 91 | + "w": 6, |
88 | 92 | "h": 4
|
89 | 93 | },
|
90 | 94 | "relationships": {
|
91 | 95 | "view": {
|
92 | 96 | "data": {
|
93 | 97 | "type": "view",
|
94 |
| - "id": "051559b2af6a2000" |
| 98 | + "id": "0541daaaab071000" |
95 | 99 | }
|
96 | 100 | }
|
97 | 101 | }
|
98 | 102 | },
|
99 | 103 | {
|
100 |
| - "id": "05155aef3daa2000", |
| 104 | + "id": "0541daaaabc71000", |
101 | 105 | "type": "cell",
|
102 | 106 | "attributes": {
|
103 | 107 | "x": 8,
|
|
109 | 113 | "view": {
|
110 | 114 | "data": {
|
111 | 115 | "type": "view",
|
112 |
| - "id": "05155aef3daa2000" |
| 116 | + "id": "0541daaaabc71000" |
| 117 | + } |
| 118 | + } |
| 119 | + } |
| 120 | + }, |
| 121 | + { |
| 122 | + "id": "0541db0ef0871000", |
| 123 | + "type": "cell", |
| 124 | + "attributes": { |
| 125 | + "x": 0, |
| 126 | + "y": 4, |
| 127 | + "w": 6, |
| 128 | + "h": 4 |
| 129 | + }, |
| 130 | + "relationships": { |
| 131 | + "view": { |
| 132 | + "data": { |
| 133 | + "type": "view", |
| 134 | + "id": "0541db0ef0871000" |
113 | 135 | }
|
114 | 136 | }
|
115 | 137 | }
|
116 | 138 | },
|
117 | 139 | {
|
118 | 140 | "type": "view",
|
119 |
| - "id": "051559b2aa2a2000", |
| 141 | + "id": "0541daaaa9471000", |
120 | 142 | "attributes": {
|
121 | 143 | "name": "Requests Count",
|
122 | 144 | "properties": {
|
|
164 | 186 | },
|
165 | 187 | {
|
166 | 188 | "type": "view",
|
167 |
| - "id": "051559b2ae2a2000", |
| 189 | + "id": "0541daaaaac71000", |
168 | 190 | "attributes": {
|
169 |
| - "name": "Requests", |
| 191 | + "name": "Request Size", |
| 192 | + "properties": { |
| 193 | + "shape": "chronograf-v2", |
| 194 | + "type": "single-stat", |
| 195 | + "queries": [ |
| 196 | + { |
| 197 | + "text": "from(bucket: \"my-bucket\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r._measurement == \"httpd.access\")\n |> filter(fn: (r) => r.method == \"GET\")\n |> filter(fn: (r) => r._field == \"size\")\n |> drop(columns: [\"path\"])\n |> toInt()\n |> sum(column: \"_value\")\n |> map(fn: (r) => ({\n r with\n _value: r._value / 1024\n })\n )", |
| 198 | + "editMode": "advanced", |
| 199 | + "name": "", |
| 200 | + "builderConfig": { |
| 201 | + "buckets": [], |
| 202 | + "tags": [ |
| 203 | + { |
| 204 | + "key": "_measurement", |
| 205 | + "values": [] |
| 206 | + } |
| 207 | + ], |
| 208 | + "functions": [], |
| 209 | + "aggregateWindow": { |
| 210 | + "period": "auto" |
| 211 | + } |
| 212 | + } |
| 213 | + } |
| 214 | + ], |
| 215 | + "prefix": "", |
| 216 | + "suffix": " KiB", |
| 217 | + "colors": [ |
| 218 | + { |
| 219 | + "id": "base", |
| 220 | + "type": "text", |
| 221 | + "hex": "#F48D38", |
| 222 | + "name": "tiger", |
| 223 | + "value": 0 |
| 224 | + } |
| 225 | + ], |
| 226 | + "decimalPlaces": { |
| 227 | + "isEnforced": true, |
| 228 | + "digits": 2 |
| 229 | + }, |
| 230 | + "note": "", |
| 231 | + "showNoteWhenEmpty": false |
| 232 | + } |
| 233 | + } |
| 234 | + }, |
| 235 | + { |
| 236 | + "type": "view", |
| 237 | + "id": "0541daaaab071000", |
| 238 | + "attributes": { |
| 239 | + "name": "Requests Count", |
170 | 240 | "properties": {
|
171 | 241 | "shape": "chronograf-v2",
|
172 | 242 | "queries": [
|
|
251 | 321 | },
|
252 | 322 | {
|
253 | 323 | "type": "view",
|
254 |
| - "id": "051559b2af6a2000", |
| 324 | + "id": "0541daaaabc71000", |
255 | 325 | "attributes": {
|
256 |
| - "name": "Request Size", |
| 326 | + "name": "Success rate", |
257 | 327 | "properties": {
|
258 | 328 | "shape": "chronograf-v2",
|
259 | 329 | "type": "single-stat",
|
260 | 330 | "queries": [
|
261 | 331 | {
|
262 |
| - "text": "from(bucket: \"my-bucket\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r._measurement == \"httpd.access\")\n |> filter(fn: (r) => r.method == \"GET\")\n |> filter(fn: (r) => r._field == \"size\")\n |> drop(columns: [\"path\"])\n |> toInt()\n |> sum(column: \"_value\")\n |> map(fn: (r) => ({\n r with\n _value: r._value / 1024\n })\n )", |
| 332 | + "text": "from(bucket: \"my-bucket\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r._measurement == \"httpd.access\")\n |> filter(fn: (r) => r._field == \"code\")\n |> drop(columns: [\"path\", \"method\", \"host\"])\n |> toInt()\n |> map(fn: (r) => ({ \n _time: r._start,\n _success:\n if r._value < 300 then 1\n else 0,\n _failure:\n if r._value >= 300 then 1\n else 0\n })\n )\n |> cumulativeSum(columns: [\"_failure\", \"_success\"])\n |> drop(columns: [\"_time\"])\n |> map(fn: (r) => ({\n r with\n _value: (float(v: r._success) / (float(v: r._success) + float(v: r._failure))) * 100.0\n })\n)\n |> last()", |
263 | 333 | "editMode": "advanced",
|
264 | 334 | "name": "",
|
265 | 335 | "builderConfig": {
|
|
278 | 348 | }
|
279 | 349 | ],
|
280 | 350 | "prefix": "",
|
281 |
| - "suffix": " KiB", |
| 351 | + "suffix": "%", |
282 | 352 | "colors": [
|
283 | 353 | {
|
284 | 354 | "id": "base",
|
285 | 355 | "type": "text",
|
| 356 | + "hex": "#00C9FF", |
| 357 | + "name": "laser", |
| 358 | + "value": 0 |
| 359 | + }, |
| 360 | + { |
| 361 | + "id": "5e50c5ba-51cc-4139-870f-663050d6e79d", |
| 362 | + "type": "text", |
286 | 363 | "hex": "#F48D38",
|
287 | 364 | "name": "tiger",
|
288 |
| - "value": 0 |
| 365 | + "value": 80 |
| 366 | + }, |
| 367 | + { |
| 368 | + "id": "305d340f-09e5-4137-b88b-0a6599209dc0", |
| 369 | + "type": "text", |
| 370 | + "hex": "#7CE490", |
| 371 | + "name": "honeydew", |
| 372 | + "value": 90 |
289 | 373 | }
|
290 | 374 | ],
|
291 | 375 | "decimalPlaces": {
|
|
299 | 383 | },
|
300 | 384 | {
|
301 | 385 | "type": "view",
|
302 |
| - "id": "05155aef3daa2000", |
| 386 | + "id": "0541db0ef0871000", |
303 | 387 | "attributes": {
|
304 |
| - "name": "Success rate", |
| 388 | + "name": "Requests", |
305 | 389 | "properties": {
|
306 | 390 | "shape": "chronograf-v2",
|
307 |
| - "type": "single-stat", |
| 391 | + "type": "table", |
308 | 392 | "queries": [
|
309 | 393 | {
|
310 |
| - "text": "from(bucket: \"my-bucket\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r._measurement == \"httpd.access\")\n |> filter(fn: (r) => r._field == \"code\")\n |> drop(columns: [\"path\", \"method\", \"host\"])\n |> toInt()\n |> map(fn: (r) => ({ \n _time: r._start,\n _success:\n if r._value < 300 then 1\n else 0,\n _failure:\n if r._value >= 300 then 1\n else 0\n })\n )\n |> cumulativeSum(columns: [\"_failure\", \"_success\"])\n |> drop(columns: [\"_time\"])\n |> map(fn: (r) => ({\n r with\n _value: (float(v: r._success) / (float(v: r._success) + float(v: r._failure))) * 100.0\n })\n)\n |> last()", |
| 394 | + "text": "from(bucket: \"my-bucket\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r._measurement == \"httpd.access\")", |
311 | 395 | "editMode": "advanced",
|
312 | 396 | "name": "",
|
313 | 397 | "builderConfig": {
|
|
325 | 409 | }
|
326 | 410 | }
|
327 | 411 | ],
|
328 |
| - "prefix": "", |
329 |
| - "suffix": "%", |
330 | 412 | "colors": [
|
331 | 413 | {
|
332 | 414 | "id": "base",
|
333 | 415 | "type": "text",
|
334 | 416 | "hex": "#00C9FF",
|
335 | 417 | "name": "laser",
|
336 | 418 | "value": 0
|
| 419 | + } |
| 420 | + ], |
| 421 | + "tableOptions": { |
| 422 | + "verticalTimeAxis": true, |
| 423 | + "sortBy": { |
| 424 | + "internalName": "", |
| 425 | + "displayName": "", |
| 426 | + "visible": false |
337 | 427 | },
|
| 428 | + "wrapping": "", |
| 429 | + "fixFirstColumn": false |
| 430 | + }, |
| 431 | + "fieldOptions": [ |
338 | 432 | {
|
339 |
| - "id": "5e50c5ba-51cc-4139-870f-663050d6e79d", |
340 |
| - "type": "text", |
341 |
| - "hex": "#F48D38", |
342 |
| - "name": "tiger", |
343 |
| - "value": 80 |
| 433 | + "internalName": "_start", |
| 434 | + "displayName": "_start", |
| 435 | + "visible": false |
344 | 436 | },
|
345 | 437 | {
|
346 |
| - "id": "305d340f-09e5-4137-b88b-0a6599209dc0", |
347 |
| - "type": "text", |
348 |
| - "hex": "#7CE490", |
349 |
| - "name": "honeydew", |
350 |
| - "value": 90 |
| 438 | + "internalName": "_stop", |
| 439 | + "displayName": "_stop", |
| 440 | + "visible": false |
| 441 | + }, |
| 442 | + { |
| 443 | + "internalName": "_time", |
| 444 | + "displayName": "Time", |
| 445 | + "visible": true |
| 446 | + }, |
| 447 | + { |
| 448 | + "internalName": "host", |
| 449 | + "displayName": "Host", |
| 450 | + "visible": true |
| 451 | + }, |
| 452 | + { |
| 453 | + "internalName": "path", |
| 454 | + "displayName": "Path", |
| 455 | + "visible": true |
| 456 | + }, |
| 457 | + { |
| 458 | + "internalName": "method", |
| 459 | + "displayName": "Method", |
| 460 | + "visible": true |
| 461 | + }, |
| 462 | + { |
| 463 | + "internalName": "_field", |
| 464 | + "displayName": "Field", |
| 465 | + "visible": true |
| 466 | + }, |
| 467 | + { |
| 468 | + "internalName": "_value", |
| 469 | + "displayName": "Value", |
| 470 | + "visible": true |
| 471 | + }, |
| 472 | + { |
| 473 | + "internalName": "_measurement", |
| 474 | + "displayName": "_measurement", |
| 475 | + "visible": false |
351 | 476 | }
|
352 | 477 | ],
|
| 478 | + "timeFormat": "YYYY-MM-DD HH:mm:ss", |
353 | 479 | "decimalPlaces": {
|
354 |
| - "isEnforced": true, |
| 480 | + "isEnforced": false, |
355 | 481 | "digits": 2
|
356 | 482 | },
|
357 | 483 | "note": "",
|
|
0 commit comments