Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 1 | { |
| 2 | "annotations": { |
| 3 | "list": [ |
| 4 | { |
| 5 | "builtIn": 1, |
| 6 | "datasource": "-- Grafana --", |
| 7 | "enable": true, |
| 8 | "hide": true, |
| 9 | "iconColor": "rgba(0, 211, 255, 1)", |
| 10 | "name": "Annotations & Alerts", |
| 11 | "type": "dashboard" |
| 12 | } |
| 13 | ] |
| 14 | }, |
| 15 | "description": "Monitors K8S cluster using Prometheus.", |
| 16 | "editable": true, |
| 17 | "gnetId": 8721, |
| 18 | "graphTooltip": 1, |
| 19 | "id": 5, |
| 20 | "iteration": 1580676696605, |
| 21 | "links": [], |
| 22 | "panels": [ |
| 23 | { |
| 24 | "collapsed": false, |
| 25 | "datasource": null, |
| 26 | "gridPos": { |
| 27 | "h": 1, |
| 28 | "w": 24, |
| 29 | "x": 0, |
| 30 | "y": 0 |
| 31 | }, |
| 32 | "id": 34, |
| 33 | "panels": [], |
| 34 | "title": "Total usage", |
| 35 | "type": "row" |
| 36 | }, |
| 37 | { |
| 38 | "cacheTimeout": null, |
| 39 | "colorBackground": false, |
| 40 | "colorValue": true, |
| 41 | "colors": [ |
| 42 | "rgba(50, 172, 45, 0.97)", |
| 43 | "rgba(237, 129, 40, 0.89)", |
| 44 | "rgba(245, 54, 54, 0.9)" |
| 45 | ], |
| 46 | "datasource": "Prometheus", |
| 47 | "decimals": 2, |
| 48 | "editable": true, |
| 49 | "error": false, |
| 50 | "format": "percent", |
| 51 | "gauge": { |
| 52 | "maxValue": 100, |
| 53 | "minValue": 0, |
| 54 | "show": true, |
| 55 | "thresholdLabels": false, |
| 56 | "thresholdMarkers": true |
| 57 | }, |
| 58 | "gridPos": { |
| 59 | "h": 5, |
| 60 | "w": 8, |
| 61 | "x": 0, |
| 62 | "y": 1 |
| 63 | }, |
| 64 | "height": "180px", |
| 65 | "id": 6, |
| 66 | "interval": null, |
| 67 | "isNew": true, |
| 68 | "links": [], |
| 69 | "mappingType": 1, |
| 70 | "mappingTypes": [ |
| 71 | { |
| 72 | "name": "value to text", |
| 73 | "value": 1 |
| 74 | }, |
| 75 | { |
| 76 | "name": "range to text", |
| 77 | "value": 2 |
| 78 | } |
| 79 | ], |
| 80 | "maxDataPoints": 100, |
| 81 | "nullPointMode": "connected", |
| 82 | "nullText": null, |
| 83 | "options": {}, |
| 84 | "postfix": "", |
| 85 | "postfixFontSize": "50%", |
| 86 | "prefix": "", |
| 87 | "prefixFontSize": "50%", |
| 88 | "rangeMaps": [ |
| 89 | { |
| 90 | "from": "null", |
| 91 | "text": "N/A", |
| 92 | "to": "null" |
| 93 | } |
| 94 | ], |
| 95 | "sparkline": { |
| 96 | "fillColor": "rgba(31, 118, 189, 0.18)", |
| 97 | "full": false, |
| 98 | "lineColor": "rgb(31, 120, 193)", |
| 99 | "show": false |
| 100 | }, |
| 101 | "tableColumn": "", |
| 102 | "targets": [ |
| 103 | { |
| 104 | "expr": "sum (rate (container_cpu_usage_seconds_total{id=\"/\",datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\"}[5m])) / sum (machine_cpu_cores{datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\"}) * 100", |
| 105 | "format": "time_series", |
| 106 | "interval": "10s", |
| 107 | "intervalFactor": 1, |
| 108 | "refId": "A", |
| 109 | "step": 10 |
| 110 | } |
| 111 | ], |
| 112 | "thresholds": "65, 90", |
| 113 | "title": "Cluster CPU usage (5m avg)", |
| 114 | "type": "singlestat", |
| 115 | "valueFontSize": "50%", |
| 116 | "valueMaps": [ |
| 117 | { |
| 118 | "op": "=", |
| 119 | "text": "N/A", |
| 120 | "value": "null" |
| 121 | } |
| 122 | ], |
| 123 | "valueName": "current" |
| 124 | }, |
| 125 | { |
| 126 | "cacheTimeout": null, |
| 127 | "colorBackground": false, |
| 128 | "colorValue": true, |
| 129 | "colors": [ |
| 130 | "rgba(50, 172, 45, 0.97)", |
| 131 | "rgba(237, 129, 40, 0.89)", |
| 132 | "rgba(245, 54, 54, 0.9)" |
| 133 | ], |
| 134 | "datasource": "Prometheus", |
| 135 | "editable": true, |
| 136 | "error": false, |
| 137 | "format": "percent", |
| 138 | "gauge": { |
| 139 | "maxValue": 100, |
| 140 | "minValue": 0, |
| 141 | "show": true, |
| 142 | "thresholdLabels": false, |
| 143 | "thresholdMarkers": true |
| 144 | }, |
| 145 | "gridPos": { |
| 146 | "h": 5, |
| 147 | "w": 8, |
| 148 | "x": 8, |
| 149 | "y": 1 |
| 150 | }, |
| 151 | "height": "180px", |
| 152 | "id": 4, |
| 153 | "interval": null, |
| 154 | "isNew": true, |
| 155 | "links": [], |
| 156 | "mappingType": 1, |
| 157 | "mappingTypes": [ |
| 158 | { |
| 159 | "name": "value to text", |
| 160 | "value": 1 |
| 161 | }, |
| 162 | { |
| 163 | "name": "range to text", |
| 164 | "value": 2 |
| 165 | } |
| 166 | ], |
| 167 | "maxDataPoints": 100, |
| 168 | "nullPointMode": "connected", |
| 169 | "nullText": null, |
| 170 | "options": {}, |
| 171 | "postfix": "", |
| 172 | "postfixFontSize": "50%", |
| 173 | "prefix": "", |
| 174 | "prefixFontSize": "50%", |
| 175 | "rangeMaps": [ |
| 176 | { |
| 177 | "from": "null", |
| 178 | "text": "N/A", |
| 179 | "to": "null" |
| 180 | } |
| 181 | ], |
| 182 | "sparkline": { |
| 183 | "fillColor": "rgba(31, 118, 189, 0.18)", |
| 184 | "full": false, |
| 185 | "lineColor": "rgb(31, 120, 193)", |
| 186 | "show": false |
| 187 | }, |
| 188 | "tableColumn": "", |
| 189 | "targets": [ |
| 190 | { |
| 191 | "expr": "sum (container_memory_working_set_bytes{id=\"/\",datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\"}) / sum (machine_memory_bytes{datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\"}) * 100", |
| 192 | "interval": "10s", |
| 193 | "intervalFactor": 1, |
| 194 | "refId": "A", |
| 195 | "step": 10 |
| 196 | } |
| 197 | ], |
| 198 | "thresholds": "65, 90", |
| 199 | "title": "Cluster memory usage", |
| 200 | "type": "singlestat", |
| 201 | "valueFontSize": "50%", |
| 202 | "valueMaps": [ |
| 203 | { |
| 204 | "op": "=", |
| 205 | "text": "N/A", |
| 206 | "value": "null" |
| 207 | } |
| 208 | ], |
| 209 | "valueName": "current" |
| 210 | }, |
| 211 | { |
| 212 | "cacheTimeout": null, |
| 213 | "colorBackground": false, |
| 214 | "colorValue": true, |
| 215 | "colors": [ |
| 216 | "rgba(50, 172, 45, 0.97)", |
| 217 | "rgba(237, 129, 40, 0.89)", |
| 218 | "rgba(245, 54, 54, 0.9)" |
| 219 | ], |
| 220 | "datasource": "Prometheus", |
| 221 | "decimals": 2, |
| 222 | "editable": true, |
| 223 | "error": false, |
| 224 | "format": "percent", |
| 225 | "gauge": { |
| 226 | "maxValue": 100, |
| 227 | "minValue": 0, |
| 228 | "show": true, |
| 229 | "thresholdLabels": false, |
| 230 | "thresholdMarkers": true |
| 231 | }, |
| 232 | "gridPos": { |
| 233 | "h": 5, |
| 234 | "w": 8, |
| 235 | "x": 16, |
| 236 | "y": 1 |
| 237 | }, |
| 238 | "height": "180px", |
| 239 | "id": 7, |
| 240 | "interval": null, |
| 241 | "isNew": true, |
| 242 | "links": [], |
| 243 | "mappingType": 1, |
| 244 | "mappingTypes": [ |
| 245 | { |
| 246 | "name": "value to text", |
| 247 | "value": 1 |
| 248 | }, |
| 249 | { |
| 250 | "name": "range to text", |
| 251 | "value": 2 |
| 252 | } |
| 253 | ], |
| 254 | "maxDataPoints": 100, |
| 255 | "nullPointMode": "connected", |
| 256 | "nullText": null, |
| 257 | "options": {}, |
| 258 | "postfix": "", |
| 259 | "postfixFontSize": "50%", |
| 260 | "prefix": "", |
| 261 | "prefixFontSize": "50%", |
| 262 | "rangeMaps": [ |
| 263 | { |
| 264 | "from": "null", |
| 265 | "text": "N/A", |
| 266 | "to": "null" |
| 267 | } |
| 268 | ], |
| 269 | "sparkline": { |
| 270 | "fillColor": "rgba(31, 118, 189, 0.18)", |
| 271 | "full": false, |
| 272 | "lineColor": "rgb(31, 120, 193)", |
| 273 | "show": false |
| 274 | }, |
| 275 | "tableColumn": "", |
| 276 | "targets": [ |
| 277 | { |
| 278 | "expr": "sum (container_fs_usage_bytes{device=~\"^/dev/[sv]d[a-z][1-9]$\",id=\"/\",datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\"}) / sum (container_fs_limit_bytes{device=~\"^/dev/[sv]d[a-z][1-9]$\",id=\"/\",datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\"}) * 100", |
| 279 | "format": "time_series", |
| 280 | "interval": "10s", |
| 281 | "intervalFactor": 1, |
| 282 | "legendFormat": "", |
| 283 | "metric": "", |
| 284 | "refId": "A", |
| 285 | "step": 10 |
| 286 | } |
| 287 | ], |
| 288 | "thresholds": "65, 90", |
| 289 | "title": "Cluster filesystem usage", |
| 290 | "type": "singlestat", |
| 291 | "valueFontSize": "50%", |
| 292 | "valueMaps": [ |
| 293 | { |
| 294 | "op": "=", |
| 295 | "text": "N/A", |
| 296 | "value": "null" |
| 297 | } |
| 298 | ], |
| 299 | "valueName": "current" |
| 300 | }, |
| 301 | { |
| 302 | "cacheTimeout": null, |
| 303 | "colorBackground": false, |
| 304 | "colorValue": false, |
| 305 | "colors": [ |
| 306 | "rgba(50, 172, 45, 0.97)", |
| 307 | "rgba(237, 129, 40, 0.89)", |
| 308 | "rgba(245, 54, 54, 0.9)" |
| 309 | ], |
| 310 | "datasource": "Prometheus", |
| 311 | "decimals": 2, |
| 312 | "editable": true, |
| 313 | "error": false, |
| 314 | "format": "none", |
| 315 | "gauge": { |
| 316 | "maxValue": 100, |
| 317 | "minValue": 0, |
| 318 | "show": false, |
| 319 | "thresholdLabels": false, |
| 320 | "thresholdMarkers": true |
| 321 | }, |
| 322 | "gridPos": { |
| 323 | "h": 3, |
| 324 | "w": 4, |
| 325 | "x": 0, |
| 326 | "y": 6 |
| 327 | }, |
| 328 | "height": "1px", |
| 329 | "id": 11, |
| 330 | "interval": null, |
| 331 | "isNew": true, |
| 332 | "links": [], |
| 333 | "mappingType": 1, |
| 334 | "mappingTypes": [ |
| 335 | { |
| 336 | "name": "value to text", |
| 337 | "value": 1 |
| 338 | }, |
| 339 | { |
| 340 | "name": "range to text", |
| 341 | "value": 2 |
| 342 | } |
| 343 | ], |
| 344 | "maxDataPoints": 100, |
| 345 | "nullPointMode": "connected", |
| 346 | "nullText": null, |
| 347 | "options": {}, |
| 348 | "postfix": " cores", |
| 349 | "postfixFontSize": "30%", |
| 350 | "prefix": "", |
| 351 | "prefixFontSize": "50%", |
| 352 | "rangeMaps": [ |
| 353 | { |
| 354 | "from": "null", |
| 355 | "text": "N/A", |
| 356 | "to": "null" |
| 357 | } |
| 358 | ], |
| 359 | "sparkline": { |
| 360 | "fillColor": "rgba(31, 118, 189, 0.18)", |
| 361 | "full": false, |
| 362 | "lineColor": "rgb(31, 120, 193)", |
| 363 | "show": false |
| 364 | }, |
| 365 | "tableColumn": "", |
| 366 | "targets": [ |
| 367 | { |
| 368 | "expr": "sum (rate (container_cpu_usage_seconds_total{id=\"/\",datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\"}[5m]))", |
| 369 | "format": "time_series", |
| 370 | "interval": "10s", |
| 371 | "intervalFactor": 1, |
| 372 | "refId": "A", |
| 373 | "step": 10 |
| 374 | } |
| 375 | ], |
| 376 | "thresholds": "", |
| 377 | "title": "Used", |
| 378 | "type": "singlestat", |
| 379 | "valueFontSize": "50%", |
| 380 | "valueMaps": [ |
| 381 | { |
| 382 | "op": "=", |
| 383 | "text": "N/A", |
| 384 | "value": "null" |
| 385 | } |
| 386 | ], |
| 387 | "valueName": "current" |
| 388 | }, |
| 389 | { |
| 390 | "cacheTimeout": null, |
| 391 | "colorBackground": false, |
| 392 | "colorValue": false, |
| 393 | "colors": [ |
| 394 | "rgba(50, 172, 45, 0.97)", |
| 395 | "rgba(237, 129, 40, 0.89)", |
| 396 | "rgba(245, 54, 54, 0.9)" |
| 397 | ], |
| 398 | "datasource": "Prometheus", |
| 399 | "decimals": 2, |
| 400 | "editable": true, |
| 401 | "error": false, |
| 402 | "format": "none", |
| 403 | "gauge": { |
| 404 | "maxValue": 100, |
| 405 | "minValue": 0, |
| 406 | "show": false, |
| 407 | "thresholdLabels": false, |
| 408 | "thresholdMarkers": true |
| 409 | }, |
| 410 | "gridPos": { |
| 411 | "h": 3, |
| 412 | "w": 4, |
| 413 | "x": 4, |
| 414 | "y": 6 |
| 415 | }, |
| 416 | "height": "1px", |
| 417 | "id": 12, |
| 418 | "interval": null, |
| 419 | "isNew": true, |
| 420 | "links": [], |
| 421 | "mappingType": 1, |
| 422 | "mappingTypes": [ |
| 423 | { |
| 424 | "name": "value to text", |
| 425 | "value": 1 |
| 426 | }, |
| 427 | { |
| 428 | "name": "range to text", |
| 429 | "value": 2 |
| 430 | } |
| 431 | ], |
| 432 | "maxDataPoints": 100, |
| 433 | "nullPointMode": "connected", |
| 434 | "nullText": null, |
| 435 | "options": {}, |
| 436 | "postfix": " cores", |
| 437 | "postfixFontSize": "30%", |
| 438 | "prefix": "", |
| 439 | "prefixFontSize": "50%", |
| 440 | "rangeMaps": [ |
| 441 | { |
| 442 | "from": "null", |
| 443 | "text": "N/A", |
| 444 | "to": "null" |
| 445 | } |
| 446 | ], |
| 447 | "sparkline": { |
| 448 | "fillColor": "rgba(31, 118, 189, 0.18)", |
| 449 | "full": false, |
| 450 | "lineColor": "rgb(31, 120, 193)", |
| 451 | "show": false |
| 452 | }, |
| 453 | "tableColumn": "", |
| 454 | "targets": [ |
| 455 | { |
| 456 | "expr": "sum (machine_cpu_cores{datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\"})", |
| 457 | "interval": "10s", |
| 458 | "intervalFactor": 1, |
| 459 | "refId": "A", |
| 460 | "step": 10 |
| 461 | } |
| 462 | ], |
| 463 | "thresholds": "", |
| 464 | "title": "Total", |
| 465 | "type": "singlestat", |
| 466 | "valueFontSize": "50%", |
| 467 | "valueMaps": [ |
| 468 | { |
| 469 | "op": "=", |
| 470 | "text": "N/A", |
| 471 | "value": "null" |
| 472 | } |
| 473 | ], |
| 474 | "valueName": "current" |
| 475 | }, |
| 476 | { |
| 477 | "cacheTimeout": null, |
| 478 | "colorBackground": false, |
| 479 | "colorValue": false, |
| 480 | "colors": [ |
| 481 | "rgba(50, 172, 45, 0.97)", |
| 482 | "rgba(237, 129, 40, 0.89)", |
| 483 | "rgba(245, 54, 54, 0.9)" |
| 484 | ], |
| 485 | "datasource": "Prometheus", |
| 486 | "decimals": 2, |
| 487 | "editable": true, |
| 488 | "error": false, |
| 489 | "format": "bytes", |
| 490 | "gauge": { |
| 491 | "maxValue": 100, |
| 492 | "minValue": 0, |
| 493 | "show": false, |
| 494 | "thresholdLabels": false, |
| 495 | "thresholdMarkers": true |
| 496 | }, |
| 497 | "gridPos": { |
| 498 | "h": 3, |
| 499 | "w": 4, |
| 500 | "x": 8, |
| 501 | "y": 6 |
| 502 | }, |
| 503 | "height": "1px", |
| 504 | "id": 9, |
| 505 | "interval": null, |
| 506 | "isNew": true, |
| 507 | "links": [], |
| 508 | "mappingType": 1, |
| 509 | "mappingTypes": [ |
| 510 | { |
| 511 | "name": "value to text", |
| 512 | "value": 1 |
| 513 | }, |
| 514 | { |
| 515 | "name": "range to text", |
| 516 | "value": 2 |
| 517 | } |
| 518 | ], |
| 519 | "maxDataPoints": 100, |
| 520 | "nullPointMode": "connected", |
| 521 | "nullText": null, |
| 522 | "options": {}, |
| 523 | "postfix": "", |
| 524 | "postfixFontSize": "20%", |
| 525 | "prefix": "", |
| 526 | "prefixFontSize": "20%", |
| 527 | "rangeMaps": [ |
| 528 | { |
| 529 | "from": "null", |
| 530 | "text": "N/A", |
| 531 | "to": "null" |
| 532 | } |
| 533 | ], |
| 534 | "sparkline": { |
| 535 | "fillColor": "rgba(31, 118, 189, 0.18)", |
| 536 | "full": false, |
| 537 | "lineColor": "rgb(31, 120, 193)", |
| 538 | "show": false |
| 539 | }, |
| 540 | "tableColumn": "", |
| 541 | "targets": [ |
| 542 | { |
| 543 | "expr": "sum (container_memory_working_set_bytes{id=\"/\",datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\"})", |
| 544 | "interval": "10s", |
| 545 | "intervalFactor": 1, |
| 546 | "refId": "A", |
| 547 | "step": 10 |
| 548 | } |
| 549 | ], |
| 550 | "thresholds": "", |
| 551 | "title": "Used", |
| 552 | "type": "singlestat", |
| 553 | "valueFontSize": "50%", |
| 554 | "valueMaps": [ |
| 555 | { |
| 556 | "op": "=", |
| 557 | "text": "N/A", |
| 558 | "value": "null" |
| 559 | } |
| 560 | ], |
| 561 | "valueName": "current" |
| 562 | }, |
| 563 | { |
| 564 | "cacheTimeout": null, |
| 565 | "colorBackground": false, |
| 566 | "colorValue": false, |
| 567 | "colors": [ |
| 568 | "rgba(50, 172, 45, 0.97)", |
| 569 | "rgba(237, 129, 40, 0.89)", |
| 570 | "rgba(245, 54, 54, 0.9)" |
| 571 | ], |
| 572 | "datasource": "Prometheus", |
| 573 | "decimals": 2, |
| 574 | "editable": true, |
| 575 | "error": false, |
| 576 | "format": "bytes", |
| 577 | "gauge": { |
| 578 | "maxValue": 100, |
| 579 | "minValue": 0, |
| 580 | "show": false, |
| 581 | "thresholdLabels": false, |
| 582 | "thresholdMarkers": true |
| 583 | }, |
| 584 | "gridPos": { |
| 585 | "h": 3, |
| 586 | "w": 4, |
| 587 | "x": 12, |
| 588 | "y": 6 |
| 589 | }, |
| 590 | "height": "1px", |
| 591 | "id": 10, |
| 592 | "interval": null, |
| 593 | "isNew": true, |
| 594 | "links": [], |
| 595 | "mappingType": 1, |
| 596 | "mappingTypes": [ |
| 597 | { |
| 598 | "name": "value to text", |
| 599 | "value": 1 |
| 600 | }, |
| 601 | { |
| 602 | "name": "range to text", |
| 603 | "value": 2 |
| 604 | } |
| 605 | ], |
| 606 | "maxDataPoints": 100, |
| 607 | "nullPointMode": "connected", |
| 608 | "nullText": null, |
| 609 | "options": {}, |
| 610 | "postfix": "", |
| 611 | "postfixFontSize": "50%", |
| 612 | "prefix": "", |
| 613 | "prefixFontSize": "50%", |
| 614 | "rangeMaps": [ |
| 615 | { |
| 616 | "from": "null", |
| 617 | "text": "N/A", |
| 618 | "to": "null" |
| 619 | } |
| 620 | ], |
| 621 | "sparkline": { |
| 622 | "fillColor": "rgba(31, 118, 189, 0.18)", |
| 623 | "full": false, |
| 624 | "lineColor": "rgb(31, 120, 193)", |
| 625 | "show": false |
| 626 | }, |
| 627 | "tableColumn": "", |
| 628 | "targets": [ |
| 629 | { |
| 630 | "expr": "sum (machine_memory_bytes{datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\"})", |
| 631 | "interval": "10s", |
| 632 | "intervalFactor": 1, |
| 633 | "refId": "A", |
| 634 | "step": 10 |
| 635 | } |
| 636 | ], |
| 637 | "thresholds": "", |
| 638 | "title": "Total", |
| 639 | "type": "singlestat", |
| 640 | "valueFontSize": "50%", |
| 641 | "valueMaps": [ |
| 642 | { |
| 643 | "op": "=", |
| 644 | "text": "N/A", |
| 645 | "value": "null" |
| 646 | } |
| 647 | ], |
| 648 | "valueName": "current" |
| 649 | }, |
| 650 | { |
| 651 | "cacheTimeout": null, |
| 652 | "colorBackground": false, |
| 653 | "colorValue": false, |
| 654 | "colors": [ |
| 655 | "rgba(50, 172, 45, 0.97)", |
| 656 | "rgba(237, 129, 40, 0.89)", |
| 657 | "rgba(245, 54, 54, 0.9)" |
| 658 | ], |
| 659 | "datasource": "Prometheus", |
| 660 | "decimals": 2, |
| 661 | "editable": true, |
| 662 | "error": false, |
| 663 | "format": "bytes", |
| 664 | "gauge": { |
| 665 | "maxValue": 100, |
| 666 | "minValue": 0, |
| 667 | "show": false, |
| 668 | "thresholdLabels": false, |
| 669 | "thresholdMarkers": true |
| 670 | }, |
| 671 | "gridPos": { |
| 672 | "h": 3, |
| 673 | "w": 4, |
| 674 | "x": 16, |
| 675 | "y": 6 |
| 676 | }, |
| 677 | "height": "1px", |
| 678 | "id": 13, |
| 679 | "interval": null, |
| 680 | "isNew": true, |
| 681 | "links": [], |
| 682 | "mappingType": 1, |
| 683 | "mappingTypes": [ |
| 684 | { |
| 685 | "name": "value to text", |
| 686 | "value": 1 |
| 687 | }, |
| 688 | { |
| 689 | "name": "range to text", |
| 690 | "value": 2 |
| 691 | } |
| 692 | ], |
| 693 | "maxDataPoints": 100, |
| 694 | "nullPointMode": "connected", |
| 695 | "nullText": null, |
| 696 | "options": {}, |
| 697 | "postfix": "", |
| 698 | "postfixFontSize": "50%", |
| 699 | "prefix": "", |
| 700 | "prefixFontSize": "50%", |
| 701 | "rangeMaps": [ |
| 702 | { |
| 703 | "from": "null", |
| 704 | "text": "N/A", |
| 705 | "to": "null" |
| 706 | } |
| 707 | ], |
| 708 | "sparkline": { |
| 709 | "fillColor": "rgba(31, 118, 189, 0.18)", |
| 710 | "full": false, |
| 711 | "lineColor": "rgb(31, 120, 193)", |
| 712 | "show": false |
| 713 | }, |
| 714 | "tableColumn": "", |
| 715 | "targets": [ |
| 716 | { |
| 717 | "expr": "sum (container_fs_usage_bytes{device=~\"^/dev/[sv]d[a-z][1-9]$\",id=\"/\",datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\"})", |
| 718 | "format": "time_series", |
| 719 | "interval": "10s", |
| 720 | "intervalFactor": 1, |
| 721 | "refId": "A", |
| 722 | "step": 10 |
| 723 | } |
| 724 | ], |
| 725 | "thresholds": "", |
| 726 | "title": "Used", |
| 727 | "type": "singlestat", |
| 728 | "valueFontSize": "50%", |
| 729 | "valueMaps": [ |
| 730 | { |
| 731 | "op": "=", |
| 732 | "text": "N/A", |
| 733 | "value": "null" |
| 734 | } |
| 735 | ], |
| 736 | "valueName": "current" |
| 737 | }, |
| 738 | { |
| 739 | "cacheTimeout": null, |
| 740 | "colorBackground": false, |
| 741 | "colorValue": false, |
| 742 | "colors": [ |
| 743 | "rgba(50, 172, 45, 0.97)", |
| 744 | "rgba(237, 129, 40, 0.89)", |
| 745 | "rgba(245, 54, 54, 0.9)" |
| 746 | ], |
| 747 | "datasource": "Prometheus", |
| 748 | "decimals": 2, |
| 749 | "editable": true, |
| 750 | "error": false, |
| 751 | "format": "bytes", |
| 752 | "gauge": { |
| 753 | "maxValue": 100, |
| 754 | "minValue": 0, |
| 755 | "show": false, |
| 756 | "thresholdLabels": false, |
| 757 | "thresholdMarkers": true |
| 758 | }, |
| 759 | "gridPos": { |
| 760 | "h": 3, |
| 761 | "w": 4, |
| 762 | "x": 20, |
| 763 | "y": 6 |
| 764 | }, |
| 765 | "height": "1px", |
| 766 | "id": 14, |
| 767 | "interval": null, |
| 768 | "isNew": true, |
| 769 | "links": [], |
| 770 | "mappingType": 1, |
| 771 | "mappingTypes": [ |
| 772 | { |
| 773 | "name": "value to text", |
| 774 | "value": 1 |
| 775 | }, |
| 776 | { |
| 777 | "name": "range to text", |
| 778 | "value": 2 |
| 779 | } |
| 780 | ], |
| 781 | "maxDataPoints": 100, |
| 782 | "nullPointMode": "connected", |
| 783 | "nullText": null, |
| 784 | "options": {}, |
| 785 | "postfix": "", |
| 786 | "postfixFontSize": "50%", |
| 787 | "prefix": "", |
| 788 | "prefixFontSize": "50%", |
| 789 | "rangeMaps": [ |
| 790 | { |
| 791 | "from": "null", |
| 792 | "text": "N/A", |
| 793 | "to": "null" |
| 794 | } |
| 795 | ], |
| 796 | "sparkline": { |
| 797 | "fillColor": "rgba(31, 118, 189, 0.18)", |
| 798 | "full": false, |
| 799 | "lineColor": "rgb(31, 120, 193)", |
| 800 | "show": false |
| 801 | }, |
| 802 | "tableColumn": "", |
| 803 | "targets": [ |
| 804 | { |
| 805 | "expr": "sum (container_fs_limit_bytes{device=~\"^overlay$\",id=\"/\",datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\"})", |
| 806 | "format": "time_series", |
| 807 | "interval": "10s", |
| 808 | "intervalFactor": 1, |
| 809 | "refId": "A", |
| 810 | "step": 10 |
| 811 | } |
| 812 | ], |
| 813 | "thresholds": "", |
| 814 | "title": "Total", |
| 815 | "type": "singlestat", |
| 816 | "valueFontSize": "50%", |
| 817 | "valueMaps": [ |
| 818 | { |
| 819 | "op": "=", |
| 820 | "text": "N/A", |
| 821 | "value": "null" |
| 822 | } |
| 823 | ], |
| 824 | "valueName": "current" |
| 825 | }, |
| 826 | { |
| 827 | "collapsed": false, |
| 828 | "datasource": null, |
| 829 | "gridPos": { |
| 830 | "h": 1, |
| 831 | "w": 24, |
| 832 | "x": 0, |
| 833 | "y": 9 |
| 834 | }, |
| 835 | "id": 33, |
| 836 | "panels": [], |
| 837 | "title": "Usage total", |
| 838 | "type": "row" |
| 839 | }, |
| 840 | { |
| 841 | "aliasColors": {}, |
| 842 | "bars": false, |
| 843 | "dashLength": 10, |
| 844 | "dashes": false, |
| 845 | "datasource": "Prometheus", |
| 846 | "decimals": 2, |
| 847 | "editable": true, |
| 848 | "error": false, |
| 849 | "fill": 3, |
| 850 | "fillGradient": 0, |
| 851 | "grid": {}, |
| 852 | "gridPos": { |
| 853 | "h": 7, |
| 854 | "w": 8, |
| 855 | "x": 0, |
| 856 | "y": 10 |
| 857 | }, |
| 858 | "height": "200px", |
| 859 | "id": 32, |
| 860 | "isNew": true, |
| 861 | "legend": { |
| 862 | "alignAsTable": false, |
| 863 | "avg": true, |
| 864 | "current": true, |
| 865 | "max": false, |
| 866 | "min": false, |
| 867 | "rightSide": false, |
| 868 | "show": false, |
| 869 | "sideWidth": 200, |
| 870 | "sort": "current", |
| 871 | "sortDesc": true, |
| 872 | "total": false, |
| 873 | "values": true |
| 874 | }, |
| 875 | "lines": true, |
| 876 | "linewidth": 1, |
| 877 | "links": [], |
| 878 | "nullPointMode": "null", |
| 879 | "options": { |
| 880 | "dataLinks": [] |
| 881 | }, |
| 882 | "percentage": false, |
| 883 | "pointradius": 0.5, |
| 884 | "points": true, |
| 885 | "renderer": "flot", |
| 886 | "seriesOverrides": [], |
| 887 | "spaceLength": 10, |
| 888 | "stack": false, |
| 889 | "steppedLine": false, |
| 890 | "targets": [ |
| 891 | { |
| 892 | "expr": "sum (rate (container_network_receive_bytes_total{datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\"}[5m]))", |
| 893 | "format": "time_series", |
| 894 | "interval": "10s", |
| 895 | "intervalFactor": 4, |
| 896 | "legendFormat": "Received", |
| 897 | "metric": "network", |
| 898 | "refId": "A", |
| 899 | "step": 10 |
| 900 | }, |
| 901 | { |
| 902 | "expr": "- sum (rate (container_network_transmit_bytes_total{datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\"}[5m]))", |
| 903 | "format": "time_series", |
| 904 | "interval": "10s", |
| 905 | "intervalFactor": 4, |
| 906 | "legendFormat": "Sent", |
| 907 | "metric": "network", |
| 908 | "refId": "B", |
| 909 | "step": 10 |
| 910 | } |
| 911 | ], |
| 912 | "thresholds": [], |
| 913 | "timeFrom": null, |
| 914 | "timeRegions": [], |
| 915 | "timeShift": null, |
| 916 | "title": "Network I/O pressure", |
| 917 | "tooltip": { |
| 918 | "msResolution": false, |
| 919 | "shared": true, |
| 920 | "sort": 0, |
| 921 | "value_type": "cumulative" |
| 922 | }, |
| 923 | "type": "graph", |
| 924 | "xaxis": { |
| 925 | "buckets": null, |
| 926 | "mode": "time", |
| 927 | "name": null, |
| 928 | "show": true, |
| 929 | "values": [] |
| 930 | }, |
| 931 | "yaxes": [ |
| 932 | { |
| 933 | "format": "Bps", |
| 934 | "label": null, |
| 935 | "logBase": 1, |
| 936 | "max": null, |
| 937 | "min": null, |
| 938 | "show": true |
| 939 | }, |
| 940 | { |
| 941 | "format": "Bps", |
| 942 | "label": null, |
| 943 | "logBase": 1, |
| 944 | "max": null, |
| 945 | "min": null, |
| 946 | "show": false |
| 947 | } |
| 948 | ], |
| 949 | "yaxis": { |
| 950 | "align": false, |
| 951 | "alignLevel": null |
| 952 | } |
| 953 | }, |
| 954 | { |
| 955 | "aliasColors": {}, |
| 956 | "bars": false, |
| 957 | "dashLength": 10, |
| 958 | "dashes": false, |
| 959 | "datasource": "Prometheus", |
| 960 | "decimals": 2, |
| 961 | "editable": true, |
| 962 | "error": false, |
| 963 | "fill": 0, |
| 964 | "fillGradient": 0, |
| 965 | "grid": {}, |
| 966 | "gridPos": { |
| 967 | "h": 7, |
| 968 | "w": 8, |
| 969 | "x": 8, |
| 970 | "y": 10 |
| 971 | }, |
| 972 | "height": "200px", |
| 973 | "id": 45, |
| 974 | "isNew": true, |
| 975 | "legend": { |
| 976 | "alignAsTable": false, |
| 977 | "avg": true, |
| 978 | "current": true, |
| 979 | "max": false, |
| 980 | "min": false, |
| 981 | "rightSide": false, |
| 982 | "show": false, |
| 983 | "sideWidth": 200, |
| 984 | "sort": "current", |
| 985 | "sortDesc": true, |
| 986 | "total": false, |
| 987 | "values": true |
| 988 | }, |
| 989 | "lines": true, |
| 990 | "linewidth": 1, |
| 991 | "links": [], |
| 992 | "nullPointMode": "null", |
| 993 | "options": { |
| 994 | "dataLinks": [] |
| 995 | }, |
| 996 | "percentage": false, |
| 997 | "pointradius": 0.5, |
| 998 | "points": true, |
| 999 | "renderer": "flot", |
| 1000 | "seriesOverrides": [], |
| 1001 | "spaceLength": 10, |
| 1002 | "stack": false, |
| 1003 | "steppedLine": false, |
| 1004 | "targets": [ |
| 1005 | { |
| 1006 | "expr": "sum (rate (container_cpu_usage_seconds_total{image!=\"\",name=~\"^k8s_.*\",datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\",namespace=~\"$Namespace\"}[5m])) by (namespace)", |
| 1007 | "format": "time_series", |
| 1008 | "interval": "10s", |
| 1009 | "intervalFactor": 4, |
| 1010 | "legendFormat": "{{ namespace}}", |
| 1011 | "metric": "network", |
| 1012 | "refId": "A", |
| 1013 | "step": 10 |
| 1014 | } |
| 1015 | ], |
| 1016 | "thresholds": [], |
| 1017 | "timeFrom": null, |
| 1018 | "timeRegions": [], |
| 1019 | "timeShift": null, |
| 1020 | "title": "CPU use by namespace", |
| 1021 | "tooltip": { |
| 1022 | "msResolution": false, |
| 1023 | "shared": true, |
| 1024 | "sort": 0, |
| 1025 | "value_type": "cumulative" |
| 1026 | }, |
| 1027 | "type": "graph", |
| 1028 | "xaxis": { |
| 1029 | "buckets": null, |
| 1030 | "mode": "time", |
| 1031 | "name": null, |
| 1032 | "show": true, |
| 1033 | "values": [] |
| 1034 | }, |
| 1035 | "yaxes": [ |
| 1036 | { |
| 1037 | "format": "percentunit", |
| 1038 | "label": null, |
| 1039 | "logBase": 1, |
| 1040 | "max": null, |
| 1041 | "min": null, |
| 1042 | "show": true |
| 1043 | }, |
| 1044 | { |
| 1045 | "format": "Bps", |
| 1046 | "label": null, |
| 1047 | "logBase": 1, |
| 1048 | "max": null, |
| 1049 | "min": null, |
| 1050 | "show": false |
| 1051 | } |
| 1052 | ], |
| 1053 | "yaxis": { |
| 1054 | "align": false, |
| 1055 | "alignLevel": null |
| 1056 | } |
| 1057 | }, |
| 1058 | { |
| 1059 | "aliasColors": {}, |
| 1060 | "bars": false, |
| 1061 | "dashLength": 10, |
| 1062 | "dashes": false, |
| 1063 | "datasource": "Prometheus", |
| 1064 | "decimals": 2, |
| 1065 | "editable": true, |
| 1066 | "error": false, |
| 1067 | "fill": 0, |
| 1068 | "fillGradient": 0, |
| 1069 | "grid": {}, |
| 1070 | "gridPos": { |
| 1071 | "h": 7, |
| 1072 | "w": 8, |
| 1073 | "x": 16, |
| 1074 | "y": 10 |
| 1075 | }, |
| 1076 | "height": "200px", |
| 1077 | "id": 46, |
| 1078 | "isNew": true, |
| 1079 | "legend": { |
| 1080 | "alignAsTable": false, |
| 1081 | "avg": true, |
| 1082 | "current": true, |
| 1083 | "max": false, |
| 1084 | "min": false, |
| 1085 | "rightSide": false, |
| 1086 | "show": false, |
| 1087 | "sideWidth": 200, |
| 1088 | "sort": "current", |
| 1089 | "sortDesc": true, |
| 1090 | "total": false, |
| 1091 | "values": true |
| 1092 | }, |
| 1093 | "lines": true, |
| 1094 | "linewidth": 1, |
| 1095 | "links": [], |
| 1096 | "nullPointMode": "null", |
| 1097 | "options": { |
| 1098 | "dataLinks": [] |
| 1099 | }, |
| 1100 | "percentage": false, |
| 1101 | "pointradius": 0.5, |
| 1102 | "points": true, |
| 1103 | "renderer": "flot", |
| 1104 | "seriesOverrides": [], |
| 1105 | "spaceLength": 10, |
| 1106 | "stack": false, |
| 1107 | "steppedLine": false, |
| 1108 | "targets": [ |
| 1109 | { |
| 1110 | "expr": "sum (container_memory_working_set_bytes{image!=\"\",name=~\"^k8s_.*\",datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\",namespace=~\"$Namespace\"}) by (namespace)", |
| 1111 | "format": "time_series", |
| 1112 | "interval": "10s", |
| 1113 | "intervalFactor": 4, |
| 1114 | "legendFormat": "{{ namespace}}", |
| 1115 | "metric": "network", |
| 1116 | "refId": "A", |
| 1117 | "step": 10 |
| 1118 | } |
| 1119 | ], |
| 1120 | "thresholds": [], |
| 1121 | "timeFrom": null, |
| 1122 | "timeRegions": [], |
| 1123 | "timeShift": null, |
| 1124 | "title": "Memory use by namespace", |
| 1125 | "tooltip": { |
| 1126 | "msResolution": false, |
| 1127 | "shared": true, |
| 1128 | "sort": 0, |
| 1129 | "value_type": "cumulative" |
| 1130 | }, |
| 1131 | "type": "graph", |
| 1132 | "xaxis": { |
| 1133 | "buckets": null, |
| 1134 | "mode": "time", |
| 1135 | "name": null, |
| 1136 | "show": true, |
| 1137 | "values": [] |
| 1138 | }, |
| 1139 | "yaxes": [ |
| 1140 | { |
| 1141 | "format": "decbytes", |
| 1142 | "label": null, |
| 1143 | "logBase": 1, |
| 1144 | "max": null, |
| 1145 | "min": null, |
| 1146 | "show": true |
| 1147 | }, |
| 1148 | { |
| 1149 | "format": "Bps", |
| 1150 | "label": null, |
| 1151 | "logBase": 1, |
| 1152 | "max": null, |
| 1153 | "min": null, |
| 1154 | "show": false |
| 1155 | } |
| 1156 | ], |
| 1157 | "yaxis": { |
| 1158 | "align": false, |
| 1159 | "alignLevel": null |
| 1160 | } |
| 1161 | }, |
| 1162 | { |
| 1163 | "collapsed": false, |
| 1164 | "datasource": null, |
| 1165 | "gridPos": { |
| 1166 | "h": 1, |
| 1167 | "w": 24, |
| 1168 | "x": 0, |
| 1169 | "y": 17 |
| 1170 | }, |
| 1171 | "id": 35, |
| 1172 | "panels": [], |
| 1173 | "title": "Pods CPU usage", |
| 1174 | "type": "row" |
| 1175 | }, |
| 1176 | { |
| 1177 | "aliasColors": {}, |
| 1178 | "bars": false, |
| 1179 | "dashLength": 10, |
| 1180 | "dashes": false, |
| 1181 | "datasource": "Prometheus", |
| 1182 | "decimals": 3, |
| 1183 | "editable": true, |
| 1184 | "error": false, |
| 1185 | "fill": 1, |
| 1186 | "fillGradient": 0, |
| 1187 | "grid": {}, |
| 1188 | "gridPos": { |
| 1189 | "h": 7, |
| 1190 | "w": 24, |
| 1191 | "x": 0, |
| 1192 | "y": 18 |
| 1193 | }, |
| 1194 | "height": "", |
| 1195 | "id": 17, |
| 1196 | "isNew": true, |
| 1197 | "legend": { |
| 1198 | "alignAsTable": true, |
| 1199 | "avg": true, |
| 1200 | "current": true, |
| 1201 | "max": false, |
| 1202 | "min": false, |
| 1203 | "rightSide": true, |
| 1204 | "show": true, |
| 1205 | "sort": "current", |
| 1206 | "sortDesc": true, |
| 1207 | "total": false, |
| 1208 | "values": true |
| 1209 | }, |
| 1210 | "lines": true, |
| 1211 | "linewidth": 0, |
| 1212 | "links": [], |
| 1213 | "nullPointMode": "null", |
| 1214 | "options": { |
| 1215 | "dataLinks": [] |
| 1216 | }, |
| 1217 | "percentage": false, |
| 1218 | "pointradius": 0.5, |
| 1219 | "points": true, |
| 1220 | "renderer": "flot", |
| 1221 | "seriesOverrides": [], |
| 1222 | "spaceLength": 10, |
| 1223 | "stack": false, |
| 1224 | "steppedLine": true, |
| 1225 | "targets": [ |
| 1226 | { |
| 1227 | "expr": "sum (rate (container_cpu_usage_seconds_total{image!=\"\",name=~\"^k8s_.*\",datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\",namespace=~\"$Namespace\"}[5m])) by (pod_name)", |
| 1228 | "format": "time_series", |
| 1229 | "interval": "10s", |
| 1230 | "intervalFactor": 5, |
| 1231 | "legendFormat": "{{ pod_name }}", |
| 1232 | "metric": "container_cpu", |
| 1233 | "refId": "A", |
| 1234 | "step": 10 |
| 1235 | } |
| 1236 | ], |
| 1237 | "thresholds": [], |
| 1238 | "timeFrom": null, |
| 1239 | "timeRegions": [], |
| 1240 | "timeShift": null, |
| 1241 | "title": "Pods CPU usage (5m avg)", |
| 1242 | "tooltip": { |
| 1243 | "msResolution": true, |
| 1244 | "shared": false, |
| 1245 | "sort": 2, |
| 1246 | "value_type": "cumulative" |
| 1247 | }, |
| 1248 | "type": "graph", |
| 1249 | "xaxis": { |
| 1250 | "buckets": null, |
| 1251 | "mode": "time", |
| 1252 | "name": null, |
| 1253 | "show": true, |
| 1254 | "values": [] |
| 1255 | }, |
| 1256 | "yaxes": [ |
| 1257 | { |
| 1258 | "format": "none", |
| 1259 | "label": "cores", |
| 1260 | "logBase": 1, |
| 1261 | "max": null, |
| 1262 | "min": null, |
| 1263 | "show": true |
| 1264 | }, |
| 1265 | { |
| 1266 | "format": "short", |
| 1267 | "label": null, |
| 1268 | "logBase": 1, |
| 1269 | "max": null, |
| 1270 | "min": null, |
| 1271 | "show": false |
| 1272 | } |
| 1273 | ], |
| 1274 | "yaxis": { |
| 1275 | "align": false, |
| 1276 | "alignLevel": null |
| 1277 | } |
| 1278 | }, |
| 1279 | { |
| 1280 | "collapsed": true, |
| 1281 | "datasource": null, |
| 1282 | "gridPos": { |
| 1283 | "h": 1, |
| 1284 | "w": 24, |
| 1285 | "x": 0, |
| 1286 | "y": 25 |
| 1287 | }, |
| 1288 | "id": 37, |
| 1289 | "panels": [ |
| 1290 | { |
| 1291 | "aliasColors": {}, |
| 1292 | "bars": false, |
| 1293 | "dashLength": 10, |
| 1294 | "dashes": false, |
| 1295 | "datasource": "Prometheus", |
| 1296 | "decimals": 3, |
| 1297 | "editable": true, |
| 1298 | "error": false, |
| 1299 | "fill": 1, |
| 1300 | "fillGradient": 0, |
| 1301 | "grid": {}, |
| 1302 | "gridPos": { |
| 1303 | "h": 7, |
| 1304 | "w": 24, |
| 1305 | "x": 0, |
| 1306 | "y": 26 |
| 1307 | }, |
| 1308 | "height": "", |
| 1309 | "id": 24, |
| 1310 | "isNew": true, |
| 1311 | "legend": { |
| 1312 | "alignAsTable": true, |
| 1313 | "avg": true, |
| 1314 | "current": true, |
| 1315 | "hideEmpty": false, |
| 1316 | "hideZero": false, |
| 1317 | "max": false, |
| 1318 | "min": false, |
| 1319 | "rightSide": true, |
| 1320 | "show": true, |
| 1321 | "sideWidth": null, |
| 1322 | "sort": "current", |
| 1323 | "sortDesc": true, |
| 1324 | "total": false, |
| 1325 | "values": true |
| 1326 | }, |
| 1327 | "lines": true, |
| 1328 | "linewidth": 1, |
| 1329 | "links": [], |
| 1330 | "nullPointMode": "null", |
| 1331 | "options": { |
| 1332 | "dataLinks": [] |
| 1333 | }, |
| 1334 | "percentage": false, |
| 1335 | "pointradius": 0.5, |
| 1336 | "points": true, |
| 1337 | "renderer": "flot", |
| 1338 | "seriesOverrides": [], |
| 1339 | "spaceLength": 10, |
| 1340 | "stack": false, |
| 1341 | "steppedLine": false, |
| 1342 | "targets": [ |
| 1343 | { |
| 1344 | "expr": "sum (rate (container_cpu_usage_seconds_total{image!=\"\",name=~\"^k8s_.*\",container_name!=\"POD\",datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\",namespace=~\"$Namespace\"}[5m])) by (container_name, pod_name)", |
| 1345 | "format": "time_series", |
| 1346 | "hide": false, |
| 1347 | "interval": "10s", |
| 1348 | "intervalFactor": 5, |
| 1349 | "legendFormat": "pod: {{ pod_name }} | {{ container_name }}", |
| 1350 | "metric": "container_cpu", |
| 1351 | "refId": "A", |
| 1352 | "step": 10 |
| 1353 | }, |
| 1354 | { |
| 1355 | "expr": "sum (rate (container_cpu_usage_seconds_total{image!=\"\",name!~\"^k8s_.*\",datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\",namespace=~\"$Namespace\"}[5m])) by (kubernetes_io_hostname, name, image)", |
| 1356 | "format": "time_series", |
| 1357 | "hide": false, |
| 1358 | "interval": "10s", |
| 1359 | "intervalFactor": 5, |
| 1360 | "legendFormat": "docker: {{ kubernetes_io_hostname }} | {{ image }} ({{ name }})", |
| 1361 | "metric": "container_cpu", |
| 1362 | "refId": "B", |
| 1363 | "step": 10 |
| 1364 | }, |
| 1365 | { |
| 1366 | "expr": "sum (rate (container_cpu_usage_seconds_total{rkt_container_name!=\"\",datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\",namespace=~\"$Namespace\"}[5m])) by (kubernetes_io_hostname, rkt_container_name)", |
| 1367 | "format": "time_series", |
| 1368 | "interval": "10s", |
| 1369 | "intervalFactor": 5, |
| 1370 | "legendFormat": "rkt: {{ kubernetes_io_hostname }} | {{ rkt_container_name }}", |
| 1371 | "metric": "container_cpu", |
| 1372 | "refId": "C", |
| 1373 | "step": 10 |
| 1374 | } |
| 1375 | ], |
| 1376 | "thresholds": [], |
| 1377 | "timeFrom": null, |
| 1378 | "timeRegions": [], |
| 1379 | "timeShift": null, |
| 1380 | "title": "Containers CPU usage (5m avg)", |
| 1381 | "tooltip": { |
| 1382 | "msResolution": true, |
| 1383 | "shared": false, |
| 1384 | "sort": 2, |
| 1385 | "value_type": "cumulative" |
| 1386 | }, |
| 1387 | "type": "graph", |
| 1388 | "xaxis": { |
| 1389 | "buckets": null, |
| 1390 | "mode": "time", |
| 1391 | "name": null, |
| 1392 | "show": true, |
| 1393 | "values": [] |
| 1394 | }, |
| 1395 | "yaxes": [ |
| 1396 | { |
| 1397 | "format": "none", |
| 1398 | "label": "cores", |
| 1399 | "logBase": 1, |
| 1400 | "max": null, |
| 1401 | "min": null, |
| 1402 | "show": true |
| 1403 | }, |
| 1404 | { |
| 1405 | "format": "short", |
| 1406 | "label": null, |
| 1407 | "logBase": 1, |
| 1408 | "max": null, |
| 1409 | "min": null, |
| 1410 | "show": false |
| 1411 | } |
| 1412 | ], |
| 1413 | "yaxis": { |
| 1414 | "align": false, |
| 1415 | "alignLevel": null |
| 1416 | } |
| 1417 | } |
| 1418 | ], |
| 1419 | "title": "Containers CPU usage", |
| 1420 | "type": "row" |
| 1421 | }, |
| 1422 | { |
| 1423 | "collapsed": true, |
| 1424 | "datasource": null, |
| 1425 | "gridPos": { |
| 1426 | "h": 1, |
| 1427 | "w": 24, |
| 1428 | "x": 0, |
| 1429 | "y": 26 |
| 1430 | }, |
| 1431 | "id": 38, |
| 1432 | "panels": [ |
| 1433 | { |
| 1434 | "aliasColors": {}, |
| 1435 | "bars": false, |
| 1436 | "dashLength": 10, |
| 1437 | "dashes": false, |
| 1438 | "datasource": "Prometheus", |
| 1439 | "decimals": 3, |
| 1440 | "editable": true, |
| 1441 | "error": false, |
| 1442 | "fill": 0, |
| 1443 | "fillGradient": 0, |
| 1444 | "grid": {}, |
| 1445 | "gridPos": { |
| 1446 | "h": 13, |
| 1447 | "w": 24, |
| 1448 | "x": 0, |
| 1449 | "y": 27 |
| 1450 | }, |
| 1451 | "id": 20, |
| 1452 | "isNew": true, |
| 1453 | "legend": { |
| 1454 | "alignAsTable": true, |
| 1455 | "avg": true, |
| 1456 | "current": true, |
| 1457 | "max": false, |
| 1458 | "min": false, |
| 1459 | "rightSide": false, |
| 1460 | "show": true, |
| 1461 | "sort": "current", |
| 1462 | "sortDesc": true, |
| 1463 | "total": false, |
| 1464 | "values": true |
| 1465 | }, |
| 1466 | "lines": true, |
| 1467 | "linewidth": 1, |
| 1468 | "links": [], |
| 1469 | "nullPointMode": "null", |
| 1470 | "options": { |
| 1471 | "dataLinks": [] |
| 1472 | }, |
| 1473 | "percentage": false, |
| 1474 | "pointradius": 0.5, |
| 1475 | "points": true, |
| 1476 | "renderer": "flot", |
| 1477 | "seriesOverrides": [], |
| 1478 | "spaceLength": 10, |
| 1479 | "stack": false, |
| 1480 | "steppedLine": false, |
| 1481 | "targets": [ |
| 1482 | { |
| 1483 | "expr": "sum (rate (container_cpu_usage_seconds_total{id!=\"/\",datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\",namespace=~\"$Namespace\"}[5m])) by (id)", |
| 1484 | "format": "time_series", |
| 1485 | "hide": false, |
| 1486 | "interval": "10s", |
| 1487 | "intervalFactor": 4, |
| 1488 | "legendFormat": "{{ id }}", |
| 1489 | "metric": "container_cpu", |
| 1490 | "refId": "A", |
| 1491 | "step": 10 |
| 1492 | } |
| 1493 | ], |
| 1494 | "thresholds": [], |
| 1495 | "timeFrom": null, |
| 1496 | "timeRegions": [], |
| 1497 | "timeShift": null, |
| 1498 | "title": "All processes CPU usage (5m avg)", |
| 1499 | "tooltip": { |
| 1500 | "msResolution": true, |
| 1501 | "shared": false, |
| 1502 | "sort": 2, |
| 1503 | "value_type": "cumulative" |
| 1504 | }, |
| 1505 | "type": "graph", |
| 1506 | "xaxis": { |
| 1507 | "buckets": null, |
| 1508 | "mode": "time", |
| 1509 | "name": null, |
| 1510 | "show": true, |
| 1511 | "values": [] |
| 1512 | }, |
| 1513 | "yaxes": [ |
| 1514 | { |
| 1515 | "format": "none", |
| 1516 | "label": "cores", |
| 1517 | "logBase": 1, |
| 1518 | "max": null, |
| 1519 | "min": null, |
| 1520 | "show": true |
| 1521 | }, |
| 1522 | { |
| 1523 | "format": "short", |
| 1524 | "label": null, |
| 1525 | "logBase": 1, |
| 1526 | "max": null, |
| 1527 | "min": null, |
| 1528 | "show": false |
| 1529 | } |
| 1530 | ], |
| 1531 | "yaxis": { |
| 1532 | "align": false, |
| 1533 | "alignLevel": null |
| 1534 | } |
| 1535 | } |
| 1536 | ], |
| 1537 | "repeat": null, |
| 1538 | "title": "All processes CPU usage", |
| 1539 | "type": "row" |
| 1540 | }, |
| 1541 | { |
| 1542 | "collapsed": false, |
| 1543 | "datasource": null, |
| 1544 | "gridPos": { |
| 1545 | "h": 1, |
| 1546 | "w": 24, |
| 1547 | "x": 0, |
| 1548 | "y": 27 |
| 1549 | }, |
| 1550 | "id": 39, |
| 1551 | "panels": [], |
| 1552 | "title": "Pods memory usage", |
| 1553 | "type": "row" |
| 1554 | }, |
| 1555 | { |
| 1556 | "aliasColors": {}, |
| 1557 | "bars": false, |
| 1558 | "dashLength": 10, |
| 1559 | "dashes": false, |
| 1560 | "datasource": "Prometheus", |
| 1561 | "decimals": 2, |
| 1562 | "editable": true, |
| 1563 | "error": false, |
| 1564 | "fill": 1, |
| 1565 | "fillGradient": 0, |
| 1566 | "grid": {}, |
| 1567 | "gridPos": { |
| 1568 | "h": 7, |
| 1569 | "w": 24, |
| 1570 | "x": 0, |
| 1571 | "y": 28 |
| 1572 | }, |
| 1573 | "id": 25, |
| 1574 | "isNew": true, |
| 1575 | "legend": { |
| 1576 | "alignAsTable": true, |
| 1577 | "avg": true, |
| 1578 | "current": true, |
| 1579 | "max": false, |
| 1580 | "min": false, |
| 1581 | "rightSide": true, |
| 1582 | "show": true, |
| 1583 | "sideWidth": null, |
| 1584 | "sort": "current", |
| 1585 | "sortDesc": true, |
| 1586 | "total": false, |
| 1587 | "values": true |
| 1588 | }, |
| 1589 | "lines": true, |
| 1590 | "linewidth": 0, |
| 1591 | "links": [], |
| 1592 | "nullPointMode": "null", |
| 1593 | "options": { |
| 1594 | "dataLinks": [] |
| 1595 | }, |
| 1596 | "percentage": false, |
| 1597 | "pointradius": 1, |
| 1598 | "points": true, |
| 1599 | "renderer": "flot", |
| 1600 | "seriesOverrides": [], |
| 1601 | "spaceLength": 10, |
| 1602 | "stack": false, |
| 1603 | "steppedLine": true, |
| 1604 | "targets": [ |
| 1605 | { |
| 1606 | "expr": "sum (container_memory_working_set_bytes{image!=\"\",name=~\"^k8s_.*\",datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\",namespace=~\"$Namespace\"}) by (pod_name)", |
| 1607 | "format": "time_series", |
| 1608 | "interval": "10s", |
| 1609 | "intervalFactor": 5, |
| 1610 | "legendFormat": "{{ pod_name }}", |
| 1611 | "metric": "container_memory_usage:sort_desc", |
| 1612 | "refId": "A", |
| 1613 | "step": 10 |
| 1614 | } |
| 1615 | ], |
| 1616 | "thresholds": [], |
| 1617 | "timeFrom": null, |
| 1618 | "timeRegions": [], |
| 1619 | "timeShift": null, |
| 1620 | "title": "Pods memory usage", |
| 1621 | "tooltip": { |
| 1622 | "msResolution": false, |
| 1623 | "shared": false, |
| 1624 | "sort": 2, |
| 1625 | "value_type": "cumulative" |
| 1626 | }, |
| 1627 | "type": "graph", |
| 1628 | "xaxis": { |
| 1629 | "buckets": null, |
| 1630 | "mode": "time", |
| 1631 | "name": null, |
| 1632 | "show": true, |
| 1633 | "values": [] |
| 1634 | }, |
| 1635 | "yaxes": [ |
| 1636 | { |
| 1637 | "format": "bytes", |
| 1638 | "label": null, |
| 1639 | "logBase": 1, |
| 1640 | "max": null, |
| 1641 | "min": null, |
| 1642 | "show": true |
| 1643 | }, |
| 1644 | { |
| 1645 | "format": "short", |
| 1646 | "label": null, |
| 1647 | "logBase": 1, |
| 1648 | "max": null, |
| 1649 | "min": null, |
| 1650 | "show": false |
| 1651 | } |
| 1652 | ], |
| 1653 | "yaxis": { |
| 1654 | "align": false, |
| 1655 | "alignLevel": null |
| 1656 | } |
| 1657 | }, |
| 1658 | { |
| 1659 | "collapsed": true, |
| 1660 | "datasource": null, |
| 1661 | "gridPos": { |
| 1662 | "h": 1, |
| 1663 | "w": 24, |
| 1664 | "x": 0, |
| 1665 | "y": 35 |
| 1666 | }, |
| 1667 | "id": 41, |
| 1668 | "panels": [ |
| 1669 | { |
| 1670 | "aliasColors": {}, |
| 1671 | "bars": false, |
| 1672 | "dashLength": 10, |
| 1673 | "dashes": false, |
| 1674 | "datasource": "Prometheus", |
| 1675 | "decimals": 2, |
| 1676 | "editable": true, |
| 1677 | "error": false, |
| 1678 | "fill": 1, |
| 1679 | "fillGradient": 0, |
| 1680 | "grid": {}, |
| 1681 | "gridPos": { |
| 1682 | "h": 7, |
| 1683 | "w": 24, |
| 1684 | "x": 0, |
| 1685 | "y": 36 |
| 1686 | }, |
| 1687 | "id": 27, |
| 1688 | "isNew": true, |
| 1689 | "legend": { |
| 1690 | "alignAsTable": true, |
| 1691 | "avg": true, |
| 1692 | "current": true, |
| 1693 | "max": false, |
| 1694 | "min": false, |
| 1695 | "rightSide": true, |
| 1696 | "show": true, |
| 1697 | "sideWidth": null, |
| 1698 | "sort": "current", |
| 1699 | "sortDesc": true, |
| 1700 | "total": false, |
| 1701 | "values": true |
| 1702 | }, |
| 1703 | "lines": true, |
| 1704 | "linewidth": 1, |
| 1705 | "links": [], |
| 1706 | "nullPointMode": "null", |
| 1707 | "options": { |
| 1708 | "dataLinks": [] |
| 1709 | }, |
| 1710 | "percentage": false, |
| 1711 | "pointradius": 0.5, |
| 1712 | "points": true, |
| 1713 | "renderer": "flot", |
| 1714 | "seriesOverrides": [], |
| 1715 | "spaceLength": 10, |
| 1716 | "stack": false, |
| 1717 | "steppedLine": true, |
| 1718 | "targets": [ |
| 1719 | { |
| 1720 | "expr": "sum (container_memory_working_set_bytes{image!=\"\",name=~\"^k8s_.*\",container_name!=\"POD\",datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\",namespace=~\"$Namespace\"}) by (container_name, pod_name)", |
| 1721 | "format": "time_series", |
| 1722 | "interval": "10s", |
| 1723 | "intervalFactor": 5, |
| 1724 | "legendFormat": "pod: {{ pod_name }} | {{ container_name }}", |
| 1725 | "metric": "container_memory_usage:sort_desc", |
| 1726 | "refId": "A", |
| 1727 | "step": 10 |
| 1728 | }, |
| 1729 | { |
| 1730 | "expr": "sum (container_memory_working_set_bytes{image!=\"\",name!~\"^k8s_.*\",datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\",namespace=~\"$Namespace\"}) by (kubernetes_io_hostname, name, image)", |
| 1731 | "format": "time_series", |
| 1732 | "interval": "10s", |
| 1733 | "intervalFactor": 5, |
| 1734 | "legendFormat": "docker: {{ kubernetes_io_hostname }} | {{ image }} ({{ name }})", |
| 1735 | "metric": "container_memory_usage:sort_desc", |
| 1736 | "refId": "B", |
| 1737 | "step": 10 |
| 1738 | }, |
| 1739 | { |
| 1740 | "expr": "sum (container_memory_working_set_bytes{rkt_container_name!=\"\",datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\",namespace=~\"$Namespace\"}) by (kubernetes_io_hostname, rkt_container_name)", |
| 1741 | "format": "time_series", |
| 1742 | "interval": "10s", |
| 1743 | "intervalFactor": 5, |
| 1744 | "legendFormat": "rkt: {{ kubernetes_io_hostname }} | {{ rkt_container_name }}", |
| 1745 | "metric": "container_memory_usage:sort_desc", |
| 1746 | "refId": "C", |
| 1747 | "step": 10 |
| 1748 | } |
| 1749 | ], |
| 1750 | "thresholds": [], |
| 1751 | "timeFrom": null, |
| 1752 | "timeRegions": [], |
| 1753 | "timeShift": null, |
| 1754 | "title": "Containers memory usage", |
| 1755 | "tooltip": { |
| 1756 | "msResolution": false, |
| 1757 | "shared": false, |
| 1758 | "sort": 2, |
| 1759 | "value_type": "cumulative" |
| 1760 | }, |
| 1761 | "type": "graph", |
| 1762 | "xaxis": { |
| 1763 | "buckets": null, |
| 1764 | "mode": "time", |
| 1765 | "name": null, |
| 1766 | "show": true, |
| 1767 | "values": [] |
| 1768 | }, |
| 1769 | "yaxes": [ |
| 1770 | { |
| 1771 | "format": "bytes", |
| 1772 | "label": null, |
| 1773 | "logBase": 1, |
| 1774 | "max": null, |
| 1775 | "min": null, |
| 1776 | "show": true |
| 1777 | }, |
| 1778 | { |
| 1779 | "format": "short", |
| 1780 | "label": null, |
| 1781 | "logBase": 1, |
| 1782 | "max": null, |
| 1783 | "min": null, |
| 1784 | "show": false |
| 1785 | } |
| 1786 | ], |
| 1787 | "yaxis": { |
| 1788 | "align": false, |
| 1789 | "alignLevel": null |
| 1790 | } |
| 1791 | } |
| 1792 | ], |
| 1793 | "title": "Containers memory usage", |
| 1794 | "type": "row" |
| 1795 | }, |
| 1796 | { |
| 1797 | "collapsed": true, |
| 1798 | "datasource": null, |
| 1799 | "gridPos": { |
| 1800 | "h": 1, |
| 1801 | "w": 24, |
| 1802 | "x": 0, |
| 1803 | "y": 36 |
| 1804 | }, |
| 1805 | "id": 42, |
| 1806 | "panels": [ |
| 1807 | { |
| 1808 | "aliasColors": {}, |
| 1809 | "bars": false, |
| 1810 | "dashLength": 10, |
| 1811 | "dashes": false, |
| 1812 | "datasource": "Prometheus", |
| 1813 | "decimals": 2, |
| 1814 | "editable": true, |
| 1815 | "error": false, |
| 1816 | "fill": 0, |
| 1817 | "fillGradient": 0, |
| 1818 | "grid": {}, |
| 1819 | "gridPos": { |
| 1820 | "h": 13, |
| 1821 | "w": 24, |
| 1822 | "x": 0, |
| 1823 | "y": 37 |
| 1824 | }, |
| 1825 | "id": 28, |
| 1826 | "isNew": true, |
| 1827 | "legend": { |
| 1828 | "alignAsTable": true, |
| 1829 | "avg": true, |
| 1830 | "current": true, |
| 1831 | "max": false, |
| 1832 | "min": false, |
| 1833 | "rightSide": false, |
| 1834 | "show": true, |
| 1835 | "sideWidth": 200, |
| 1836 | "sort": "current", |
| 1837 | "sortDesc": true, |
| 1838 | "total": false, |
| 1839 | "values": true |
| 1840 | }, |
| 1841 | "lines": true, |
| 1842 | "linewidth": 1, |
| 1843 | "links": [], |
| 1844 | "nullPointMode": "null", |
| 1845 | "options": { |
| 1846 | "dataLinks": [] |
| 1847 | }, |
| 1848 | "percentage": false, |
| 1849 | "pointradius": 0.5, |
| 1850 | "points": true, |
| 1851 | "renderer": "flot", |
| 1852 | "seriesOverrides": [], |
| 1853 | "spaceLength": 10, |
| 1854 | "stack": false, |
| 1855 | "steppedLine": false, |
| 1856 | "targets": [ |
| 1857 | { |
| 1858 | "expr": "sum (container_memory_working_set_bytes{id!=\"/\",datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\",namespace=~\"$Namespace\"}) by (id)", |
| 1859 | "format": "time_series", |
| 1860 | "interval": "10s", |
| 1861 | "intervalFactor": 4, |
| 1862 | "legendFormat": "{{ id }}", |
| 1863 | "metric": "container_memory_usage:sort_desc", |
| 1864 | "refId": "A", |
| 1865 | "step": 10 |
| 1866 | } |
| 1867 | ], |
| 1868 | "thresholds": [], |
| 1869 | "timeFrom": null, |
| 1870 | "timeRegions": [], |
| 1871 | "timeShift": null, |
| 1872 | "title": "All processes memory usage", |
| 1873 | "tooltip": { |
| 1874 | "msResolution": false, |
| 1875 | "shared": false, |
| 1876 | "sort": 2, |
| 1877 | "value_type": "cumulative" |
| 1878 | }, |
| 1879 | "type": "graph", |
| 1880 | "xaxis": { |
| 1881 | "buckets": null, |
| 1882 | "mode": "time", |
| 1883 | "name": null, |
| 1884 | "show": true, |
| 1885 | "values": [] |
| 1886 | }, |
| 1887 | "yaxes": [ |
| 1888 | { |
| 1889 | "format": "bytes", |
| 1890 | "label": null, |
| 1891 | "logBase": 1, |
| 1892 | "max": null, |
| 1893 | "min": null, |
| 1894 | "show": true |
| 1895 | }, |
| 1896 | { |
| 1897 | "format": "short", |
| 1898 | "label": null, |
| 1899 | "logBase": 1, |
| 1900 | "max": null, |
| 1901 | "min": null, |
| 1902 | "show": false |
| 1903 | } |
| 1904 | ], |
| 1905 | "yaxis": { |
| 1906 | "align": false, |
| 1907 | "alignLevel": null |
| 1908 | } |
| 1909 | } |
| 1910 | ], |
| 1911 | "title": "All processes memory usage", |
| 1912 | "type": "row" |
| 1913 | }, |
| 1914 | { |
| 1915 | "collapsed": false, |
| 1916 | "datasource": null, |
| 1917 | "gridPos": { |
| 1918 | "h": 1, |
| 1919 | "w": 24, |
| 1920 | "x": 0, |
| 1921 | "y": 37 |
| 1922 | }, |
| 1923 | "id": 43, |
| 1924 | "panels": [], |
| 1925 | "title": "Pods network I/O", |
| 1926 | "type": "row" |
| 1927 | }, |
| 1928 | { |
| 1929 | "aliasColors": {}, |
| 1930 | "bars": false, |
| 1931 | "dashLength": 10, |
| 1932 | "dashes": false, |
| 1933 | "datasource": "Prometheus", |
| 1934 | "decimals": 2, |
| 1935 | "editable": true, |
| 1936 | "error": false, |
| 1937 | "fill": 1, |
| 1938 | "fillGradient": 0, |
| 1939 | "grid": {}, |
| 1940 | "gridPos": { |
| 1941 | "h": 7, |
| 1942 | "w": 24, |
| 1943 | "x": 0, |
| 1944 | "y": 38 |
| 1945 | }, |
| 1946 | "id": 16, |
| 1947 | "isNew": true, |
| 1948 | "legend": { |
| 1949 | "alignAsTable": true, |
| 1950 | "avg": true, |
| 1951 | "current": true, |
| 1952 | "max": false, |
| 1953 | "min": false, |
| 1954 | "rightSide": true, |
| 1955 | "show": true, |
| 1956 | "sideWidth": null, |
| 1957 | "sort": "current", |
| 1958 | "sortDesc": true, |
| 1959 | "total": false, |
| 1960 | "values": true |
| 1961 | }, |
| 1962 | "lines": true, |
| 1963 | "linewidth": 1, |
| 1964 | "links": [], |
| 1965 | "nullPointMode": "null as zero", |
| 1966 | "options": { |
| 1967 | "dataLinks": [] |
| 1968 | }, |
| 1969 | "percentage": false, |
| 1970 | "pointradius": 1, |
| 1971 | "points": false, |
| 1972 | "renderer": "flot", |
| 1973 | "seriesOverrides": [], |
| 1974 | "spaceLength": 10, |
| 1975 | "stack": false, |
| 1976 | "steppedLine": true, |
| 1977 | "targets": [ |
| 1978 | { |
| 1979 | "expr": "sum (rate (container_network_receive_bytes_total{image!=\"\",name=~\"^k8s_.*\",datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\",namespace=~\"$Namespace\"}[5m])) by (pod_name)", |
| 1980 | "format": "time_series", |
| 1981 | "interval": "10s", |
| 1982 | "intervalFactor": 5, |
| 1983 | "legendFormat": "-> {{ pod_name }}", |
| 1984 | "metric": "network", |
| 1985 | "refId": "A", |
| 1986 | "step": 10 |
| 1987 | }, |
| 1988 | { |
| 1989 | "expr": "- sum (rate (container_network_transmit_bytes_total{image!=\"\",name=~\"^k8s_.*\",datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\",namespace=~\"$Namespace\"}[5m])) by (pod_name)", |
| 1990 | "format": "time_series", |
| 1991 | "interval": "10s", |
| 1992 | "intervalFactor": 5, |
| 1993 | "legendFormat": "<- {{ pod_name }}", |
| 1994 | "metric": "network", |
| 1995 | "refId": "B", |
| 1996 | "step": 10 |
| 1997 | } |
| 1998 | ], |
| 1999 | "thresholds": [], |
| 2000 | "timeFrom": null, |
| 2001 | "timeRegions": [], |
| 2002 | "timeShift": null, |
| 2003 | "title": "Pods network I/O (5m avg)", |
| 2004 | "tooltip": { |
| 2005 | "msResolution": false, |
| 2006 | "shared": false, |
| 2007 | "sort": 2, |
| 2008 | "value_type": "cumulative" |
| 2009 | }, |
| 2010 | "type": "graph", |
| 2011 | "xaxis": { |
| 2012 | "buckets": null, |
| 2013 | "mode": "time", |
| 2014 | "name": null, |
| 2015 | "show": true, |
| 2016 | "values": [] |
| 2017 | }, |
| 2018 | "yaxes": [ |
| 2019 | { |
| 2020 | "format": "Bps", |
| 2021 | "label": null, |
| 2022 | "logBase": 1, |
| 2023 | "max": null, |
| 2024 | "min": null, |
| 2025 | "show": true |
| 2026 | }, |
| 2027 | { |
| 2028 | "format": "short", |
| 2029 | "label": null, |
| 2030 | "logBase": 1, |
| 2031 | "max": null, |
| 2032 | "min": null, |
| 2033 | "show": false |
| 2034 | } |
| 2035 | ], |
| 2036 | "yaxis": { |
| 2037 | "align": false, |
| 2038 | "alignLevel": null |
| 2039 | } |
| 2040 | }, |
| 2041 | { |
| 2042 | "collapsed": true, |
| 2043 | "datasource": null, |
| 2044 | "gridPos": { |
| 2045 | "h": 1, |
| 2046 | "w": 24, |
| 2047 | "x": 0, |
| 2048 | "y": 45 |
| 2049 | }, |
| 2050 | "id": 44, |
| 2051 | "panels": [ |
| 2052 | { |
| 2053 | "aliasColors": {}, |
| 2054 | "bars": false, |
| 2055 | "dashLength": 10, |
| 2056 | "dashes": false, |
| 2057 | "datasource": "Prometheus", |
| 2058 | "decimals": 2, |
| 2059 | "editable": true, |
| 2060 | "error": false, |
| 2061 | "fill": 1, |
| 2062 | "fillGradient": 0, |
| 2063 | "grid": {}, |
| 2064 | "gridPos": { |
| 2065 | "h": 7, |
| 2066 | "w": 24, |
| 2067 | "x": 0, |
| 2068 | "y": 46 |
| 2069 | }, |
| 2070 | "id": 30, |
| 2071 | "isNew": true, |
| 2072 | "legend": { |
| 2073 | "alignAsTable": true, |
| 2074 | "avg": true, |
| 2075 | "current": true, |
| 2076 | "max": false, |
| 2077 | "min": false, |
| 2078 | "rightSide": true, |
| 2079 | "show": true, |
| 2080 | "sideWidth": null, |
| 2081 | "sort": "current", |
| 2082 | "sortDesc": true, |
| 2083 | "total": false, |
| 2084 | "values": true |
| 2085 | }, |
| 2086 | "lines": true, |
| 2087 | "linewidth": 1, |
| 2088 | "links": [], |
| 2089 | "nullPointMode": "null as zero", |
| 2090 | "options": { |
| 2091 | "dataLinks": [] |
| 2092 | }, |
| 2093 | "percentage": false, |
| 2094 | "pointradius": 5, |
| 2095 | "points": false, |
| 2096 | "renderer": "flot", |
| 2097 | "seriesOverrides": [], |
| 2098 | "spaceLength": 10, |
| 2099 | "stack": false, |
| 2100 | "steppedLine": true, |
| 2101 | "targets": [ |
| 2102 | { |
| 2103 | "expr": "sum (rate (container_network_receive_bytes_total{image!=\"\",name=~\"^k8s_.*\",datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\",namespace=~\"$Namespace\"}[5m])) by (container_name, pod_name)", |
| 2104 | "format": "time_series", |
| 2105 | "hide": false, |
| 2106 | "interval": "10s", |
| 2107 | "intervalFactor": 5, |
| 2108 | "legendFormat": "-> pod: {{ pod_name }} | {{ container_name }}", |
| 2109 | "metric": "network", |
| 2110 | "refId": "B", |
| 2111 | "step": 10 |
| 2112 | }, |
| 2113 | { |
| 2114 | "expr": "- sum (rate (container_network_transmit_bytes_total{image!=\"\",name=~\"^k8s_.*\",datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\",namespace=~\"$Namespace\"}[5m])) by (container_name, pod_name)", |
| 2115 | "format": "time_series", |
| 2116 | "hide": false, |
| 2117 | "interval": "10s", |
| 2118 | "intervalFactor": 5, |
| 2119 | "legendFormat": "<- pod: {{ pod_name }} | {{ container_name }}", |
| 2120 | "metric": "network", |
| 2121 | "refId": "D", |
| 2122 | "step": 10 |
| 2123 | }, |
| 2124 | { |
| 2125 | "expr": "sum (rate (container_network_receive_bytes_total{image!=\"\",name!~\"^k8s_.*\",datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\",namespace=~\"$Namespace\"}[5m])) by (kubernetes_io_hostname, name, image)", |
| 2126 | "format": "time_series", |
| 2127 | "hide": false, |
| 2128 | "interval": "10s", |
| 2129 | "intervalFactor": 5, |
| 2130 | "legendFormat": "-> docker: {{ kubernetes_io_hostname }} | {{ image }} ({{ name }})", |
| 2131 | "metric": "network", |
| 2132 | "refId": "A", |
| 2133 | "step": 10 |
| 2134 | }, |
| 2135 | { |
| 2136 | "expr": "- sum (rate (container_network_transmit_bytes_total{image!=\"\",name!~\"^k8s_.*\",datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\",namespace=~\"$Namespace\"}[5m])) by (kubernetes_io_hostname, name, image)", |
| 2137 | "format": "time_series", |
| 2138 | "hide": false, |
| 2139 | "interval": "10s", |
| 2140 | "intervalFactor": 5, |
| 2141 | "legendFormat": "<- docker: {{ kubernetes_io_hostname }} | {{ image }} ({{ name }})", |
| 2142 | "metric": "network", |
| 2143 | "refId": "C", |
| 2144 | "step": 10 |
| 2145 | }, |
| 2146 | { |
| 2147 | "expr": "sum (rate (container_network_transmit_bytes_total{rkt_container_name!=\"\",datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\",namespace=~\"$Namespace\"}[5m])) by (kubernetes_io_hostname, rkt_container_name)", |
| 2148 | "format": "time_series", |
| 2149 | "hide": false, |
| 2150 | "interval": "10s", |
| 2151 | "intervalFactor": 5, |
| 2152 | "legendFormat": "-> rkt: {{ kubernetes_io_hostname }} | {{ rkt_container_name }}", |
| 2153 | "metric": "network", |
| 2154 | "refId": "E", |
| 2155 | "step": 10 |
| 2156 | }, |
| 2157 | { |
| 2158 | "expr": "- sum (rate (container_network_transmit_bytes_total{rkt_container_name!=\"\",datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\",namespace=~\"$Namespace\"}[5m])) by (kubernetes_io_hostname, rkt_container_name)", |
| 2159 | "format": "time_series", |
| 2160 | "hide": false, |
| 2161 | "interval": "10s", |
| 2162 | "intervalFactor": 5, |
| 2163 | "legendFormat": "<- rkt: {{ kubernetes_io_hostname }} | {{ rkt_container_name }}", |
| 2164 | "metric": "network", |
| 2165 | "refId": "F", |
| 2166 | "step": 10 |
| 2167 | } |
| 2168 | ], |
| 2169 | "thresholds": [], |
| 2170 | "timeFrom": null, |
| 2171 | "timeRegions": [], |
| 2172 | "timeShift": null, |
| 2173 | "title": "Containers network I/O (5m avg)", |
| 2174 | "tooltip": { |
| 2175 | "msResolution": false, |
| 2176 | "shared": false, |
| 2177 | "sort": 2, |
| 2178 | "value_type": "cumulative" |
| 2179 | }, |
| 2180 | "type": "graph", |
| 2181 | "xaxis": { |
| 2182 | "buckets": null, |
| 2183 | "mode": "time", |
| 2184 | "name": null, |
| 2185 | "show": true, |
| 2186 | "values": [] |
| 2187 | }, |
| 2188 | "yaxes": [ |
| 2189 | { |
| 2190 | "format": "Bps", |
| 2191 | "label": null, |
| 2192 | "logBase": 1, |
| 2193 | "max": null, |
| 2194 | "min": null, |
| 2195 | "show": true |
| 2196 | }, |
| 2197 | { |
| 2198 | "format": "short", |
| 2199 | "label": null, |
| 2200 | "logBase": 1, |
| 2201 | "max": null, |
| 2202 | "min": null, |
| 2203 | "show": false |
| 2204 | } |
| 2205 | ], |
| 2206 | "yaxis": { |
| 2207 | "align": false, |
| 2208 | "alignLevel": null |
| 2209 | } |
| 2210 | } |
| 2211 | ], |
| 2212 | "title": "Containers network I/O", |
| 2213 | "type": "row" |
| 2214 | } |
| 2215 | ], |
| 2216 | "refresh": "1m", |
| 2217 | "schemaVersion": 20, |
| 2218 | "style": "dark", |
| 2219 | "tags": [ |
| 2220 | "aether" |
| 2221 | ], |
| 2222 | "templating": { |
| 2223 | "list": [ |
| 2224 | { |
| 2225 | "allValue": null, |
| 2226 | "datasource": "Prometheus", |
| 2227 | "definition": "label_values(kube_pod_info, datacenter)", |
| 2228 | "hide": 0, |
| 2229 | "includeAll": false, |
| 2230 | "label": "Site", |
| 2231 | "multi": false, |
| 2232 | "name": "Site", |
| 2233 | "query": "label_values(kube_pod_info, datacenter)", |
| 2234 | "refresh": 2, |
| 2235 | "regex": "", |
| 2236 | "skipUrlSync": false, |
| 2237 | "sort": 0, |
| 2238 | "tagValuesQuery": "", |
| 2239 | "tags": [], |
| 2240 | "tagsQuery": "", |
| 2241 | "type": "query", |
| 2242 | "useTags": false |
| 2243 | }, |
| 2244 | { |
| 2245 | "allValue": ".*", |
| 2246 | "current": { |
| 2247 | "text": "All", |
| 2248 | "value": "$__all" |
| 2249 | }, |
| 2250 | "datasource": "Prometheus", |
| 2251 | "definition": "label_values(node_load1{datacenter=\"$Site\"}, kubernetes_node)", |
| 2252 | "hide": 0, |
| 2253 | "includeAll": true, |
| 2254 | "label": null, |
| 2255 | "multi": false, |
| 2256 | "name": "Node", |
| 2257 | "options": [], |
| 2258 | "query": "label_values(node_load1{datacenter=\"$Site\"}, kubernetes_node)", |
| 2259 | "refresh": 2, |
| 2260 | "regex": "", |
| 2261 | "skipUrlSync": false, |
| 2262 | "sort": 0, |
| 2263 | "tagValuesQuery": "", |
| 2264 | "tags": [], |
| 2265 | "tagsQuery": "", |
| 2266 | "type": "query", |
| 2267 | "useTags": false |
| 2268 | }, |
| 2269 | { |
| 2270 | "allValue": ".*", |
| 2271 | "current": { |
| 2272 | "text": "All", |
| 2273 | "value": "$__all" |
| 2274 | }, |
| 2275 | "datasource": "Prometheus", |
| 2276 | "definition": "label_values(kube_pod_info{datacenter=\"$Site\"}, namespace)", |
| 2277 | "hide": 0, |
| 2278 | "includeAll": true, |
| 2279 | "label": null, |
| 2280 | "multi": true, |
| 2281 | "name": "Namespace", |
| 2282 | "options": [], |
| 2283 | "query": "label_values(kube_pod_info{datacenter=\"$Site\"}, namespace)", |
| 2284 | "refresh": 2, |
| 2285 | "regex": "", |
| 2286 | "skipUrlSync": false, |
| 2287 | "sort": 0, |
| 2288 | "tagValuesQuery": "", |
| 2289 | "tags": [], |
| 2290 | "tagsQuery": "", |
| 2291 | "type": "query", |
| 2292 | "useTags": false |
| 2293 | } |
| 2294 | ] |
| 2295 | }, |
| 2296 | "time": { |
| 2297 | "from": "now-3h", |
| 2298 | "to": "now" |
| 2299 | }, |
| 2300 | "timepicker": { |
| 2301 | "refresh_intervals": [ |
| 2302 | "5s", |
| 2303 | "10s", |
| 2304 | "30s", |
| 2305 | "1m", |
| 2306 | "5m", |
| 2307 | "15m", |
| 2308 | "30m", |
| 2309 | "1h", |
| 2310 | "2h", |
| 2311 | "1d" |
| 2312 | ], |
| 2313 | "time_options": [ |
| 2314 | "5m", |
| 2315 | "15m", |
| 2316 | "1h", |
| 2317 | "6h", |
| 2318 | "12h", |
| 2319 | "24h", |
| 2320 | "2d", |
| 2321 | "7d", |
| 2322 | "30d" |
| 2323 | ] |
| 2324 | }, |
| 2325 | "timezone": "browser", |
| 2326 | "title": "Multi-Site K8S Cluster Monitoring", |
| 2327 | "uid": "1bI4P-xiz", |
| 2328 | "version": 1 |
| 2329 | } |