Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -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 | "editable": true, |
| 16 | "gnetId": null, |
| 17 | "graphTooltip": 0, |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 18 | "id": 1, |
| 19 | "iteration": 1580635125090, |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 20 | "links": [], |
| 21 | "panels": [ |
| 22 | { |
| 23 | "collapsed": false, |
| 24 | "datasource": null, |
| 25 | "gridPos": { |
| 26 | "h": 1, |
| 27 | "w": 24, |
| 28 | "x": 0, |
| 29 | "y": 0 |
| 30 | }, |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 31 | "id": 25, |
| 32 | "panels": [], |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 33 | "repeat": "pod", |
| 34 | "title": "$pod Resource Usage", |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 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": null, |
| 48 | "description": "", |
| 49 | "format": "percent", |
| 50 | "gauge": { |
| 51 | "maxValue": 100, |
| 52 | "minValue": 0, |
| 53 | "show": true, |
| 54 | "thresholdLabels": false, |
| 55 | "thresholdMarkers": true |
| 56 | }, |
| 57 | "gridPos": { |
| 58 | "h": 5, |
| 59 | "w": 6, |
| 60 | "x": 0, |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 61 | "y": 1 |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 62 | }, |
| 63 | "id": 10, |
| 64 | "interval": null, |
| 65 | "links": [], |
| 66 | "mappingType": 1, |
| 67 | "mappingTypes": [ |
| 68 | { |
| 69 | "name": "value to text", |
| 70 | "value": 1 |
| 71 | }, |
| 72 | { |
| 73 | "name": "range to text", |
| 74 | "value": 2 |
| 75 | } |
| 76 | ], |
| 77 | "maxDataPoints": 100, |
| 78 | "maxPerRow": 12, |
| 79 | "nullPointMode": "null", |
| 80 | "nullText": null, |
| 81 | "options": {}, |
| 82 | "postfix": "", |
| 83 | "postfixFontSize": "50%", |
| 84 | "prefix": "", |
| 85 | "prefixFontSize": "50%", |
| 86 | "rangeMaps": [ |
| 87 | { |
| 88 | "from": "null", |
| 89 | "text": "N/A", |
| 90 | "to": "null" |
| 91 | } |
| 92 | ], |
| 93 | "repeat": null, |
| 94 | "repeatDirection": "v", |
| 95 | "sparkline": { |
| 96 | "fillColor": "rgba(31, 118, 189, 0.18)", |
| 97 | "full": false, |
| 98 | "lineColor": "rgb(31, 120, 193)", |
| 99 | "show": true |
| 100 | }, |
| 101 | "tableColumn": "", |
| 102 | "targets": [ |
| 103 | { |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 104 | "expr": "sum(rate(container_cpu_usage_seconds_total{datacenter=\"$site\", image!=\"\", container_name!=\"POD\", pod_name=~\"$pod.*\"}[5m])) / sum(kube_pod_container_resource_limits_cpu_cores{datacenter=\"$site\", pod=~\"$pod.*\"}) * 100", |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 105 | "format": "time_series", |
| 106 | "interval": "10s", |
| 107 | "intervalFactor": 1, |
| 108 | "legendFormat": "", |
| 109 | "refId": "A" |
| 110 | } |
| 111 | ], |
| 112 | "thresholds": "85,95", |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 113 | "title": "CPU usage", |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 114 | "type": "singlestat", |
| 115 | "valueFontSize": "80%", |
| 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 | "decimals": null, |
| 136 | "description": "", |
| 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": 6, |
| 148 | "x": 6, |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 149 | "y": 1 |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 150 | }, |
| 151 | "id": 12, |
| 152 | "interval": null, |
| 153 | "links": [], |
| 154 | "mappingType": 1, |
| 155 | "mappingTypes": [ |
| 156 | { |
| 157 | "name": "value to text", |
| 158 | "value": 1 |
| 159 | }, |
| 160 | { |
| 161 | "name": "range to text", |
| 162 | "value": 2 |
| 163 | } |
| 164 | ], |
| 165 | "maxDataPoints": 100, |
| 166 | "maxPerRow": 12, |
| 167 | "nullPointMode": "null", |
| 168 | "nullText": null, |
| 169 | "options": {}, |
| 170 | "postfix": "", |
| 171 | "postfixFontSize": "50%", |
| 172 | "prefix": "", |
| 173 | "prefixFontSize": "50%", |
| 174 | "rangeMaps": [ |
| 175 | { |
| 176 | "from": "null", |
| 177 | "text": "N/A", |
| 178 | "to": "null" |
| 179 | } |
| 180 | ], |
| 181 | "repeat": null, |
| 182 | "repeatDirection": "v", |
| 183 | "sparkline": { |
| 184 | "fillColor": "rgba(31, 118, 189, 0.18)", |
| 185 | "full": false, |
| 186 | "lineColor": "rgb(31, 120, 193)", |
| 187 | "show": true |
| 188 | }, |
| 189 | "tableColumn": "", |
| 190 | "targets": [ |
| 191 | { |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 192 | "expr": "100 * (sum(container_memory_usage_bytes{datacenter=\"$site\", pod_name=~\"$pod.*\", container_name!=\"POD\"}) / sum(container_spec_memory_limit_bytes{datacenter=\"$site\", pod_name=~\"$pod.*\", container_name!=\"POD\"}))", |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 193 | "format": "time_series", |
| 194 | "hide": false, |
| 195 | "instant": false, |
| 196 | "interval": "10s", |
| 197 | "intervalFactor": 1, |
| 198 | "refId": "A" |
| 199 | } |
| 200 | ], |
| 201 | "thresholds": "85,95", |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 202 | "title": "Memory usage", |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 203 | "type": "singlestat", |
| 204 | "valueFontSize": "80%", |
| 205 | "valueMaps": [ |
| 206 | { |
| 207 | "op": "=", |
| 208 | "text": "N/A", |
| 209 | "value": "null" |
| 210 | } |
| 211 | ], |
| 212 | "valueName": "current" |
| 213 | }, |
| 214 | { |
| 215 | "aliasColors": {}, |
| 216 | "bars": false, |
| 217 | "dashLength": 10, |
| 218 | "dashes": false, |
| 219 | "datasource": null, |
| 220 | "fill": 2, |
| 221 | "fillGradient": 0, |
| 222 | "gridPos": { |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 223 | "h": 8, |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 224 | "w": 12, |
| 225 | "x": 12, |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 226 | "y": 1 |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 227 | }, |
| 228 | "id": 2, |
| 229 | "legend": { |
| 230 | "alignAsTable": true, |
| 231 | "avg": true, |
| 232 | "current": true, |
| 233 | "max": false, |
| 234 | "min": false, |
| 235 | "rightSide": true, |
| 236 | "show": true, |
| 237 | "total": false, |
| 238 | "values": true |
| 239 | }, |
| 240 | "lines": true, |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 241 | "linewidth": 1, |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 242 | "links": [], |
| 243 | "nullPointMode": "null", |
| 244 | "options": { |
| 245 | "dataLinks": [] |
| 246 | }, |
| 247 | "percentage": false, |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 248 | "pointradius": 1, |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 249 | "points": false, |
| 250 | "renderer": "flot", |
| 251 | "repeat": null, |
| 252 | "repeatDirection": "v", |
| 253 | "seriesOverrides": [], |
| 254 | "spaceLength": 10, |
| 255 | "stack": false, |
| 256 | "steppedLine": false, |
| 257 | "targets": [ |
| 258 | { |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 259 | "expr": "sum(rate(container_network_receive_bytes_total{pod_name=~\"$pod.*\", interface!=\"tunl0\"}[3m]))by (pod_name, interface)", |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 260 | "format": "time_series", |
| 261 | "interval": "10s", |
| 262 | "intervalFactor": 1, |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 263 | "legendFormat": "rx: {{pod_name}}| {{ interface }}", |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 264 | "refId": "B" |
| 265 | }, |
| 266 | { |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 267 | "expr": "-sum(rate(container_network_transmit_bytes_total{pod_name=~\"$pod.*\", interface!=\"tunl0\"}[3m]))by (pod_name, interface)", |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 268 | "format": "time_series", |
| 269 | "interval": "10s", |
| 270 | "intervalFactor": 1, |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 271 | "legendFormat": "tx: {{pod_name}}| {{ interface }}", |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 272 | "refId": "A" |
| 273 | } |
| 274 | ], |
| 275 | "thresholds": [], |
| 276 | "timeFrom": null, |
| 277 | "timeRegions": [], |
| 278 | "timeShift": null, |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 279 | "title": "Network I/O", |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 280 | "tooltip": { |
| 281 | "shared": true, |
| 282 | "sort": 1, |
| 283 | "value_type": "individual" |
| 284 | }, |
| 285 | "type": "graph", |
| 286 | "xaxis": { |
| 287 | "buckets": null, |
| 288 | "mode": "time", |
| 289 | "name": null, |
| 290 | "show": true, |
| 291 | "values": [] |
| 292 | }, |
| 293 | "yaxes": [ |
| 294 | { |
| 295 | "format": "Bps", |
| 296 | "label": null, |
| 297 | "logBase": 1, |
| 298 | "max": null, |
| 299 | "min": null, |
| 300 | "show": true |
| 301 | }, |
| 302 | { |
| 303 | "format": "Bps", |
| 304 | "label": null, |
| 305 | "logBase": 1, |
| 306 | "max": null, |
| 307 | "min": null, |
| 308 | "show": false |
| 309 | } |
| 310 | ], |
| 311 | "yaxis": { |
| 312 | "align": false, |
| 313 | "alignLevel": null |
| 314 | } |
| 315 | }, |
| 316 | { |
| 317 | "cacheTimeout": null, |
| 318 | "colorBackground": false, |
| 319 | "colorValue": false, |
| 320 | "colors": [ |
| 321 | "#299c46", |
| 322 | "rgba(237, 129, 40, 0.89)", |
| 323 | "#d44a3a" |
| 324 | ], |
| 325 | "datasource": null, |
| 326 | "format": "none", |
| 327 | "gauge": { |
| 328 | "maxValue": 100, |
| 329 | "minValue": 0, |
| 330 | "show": false, |
| 331 | "thresholdLabels": false, |
| 332 | "thresholdMarkers": true |
| 333 | }, |
| 334 | "gridPos": { |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 335 | "h": 3, |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 336 | "w": 3, |
| 337 | "x": 0, |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 338 | "y": 6 |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 339 | }, |
| 340 | "id": 20, |
| 341 | "interval": null, |
| 342 | "links": [], |
| 343 | "mappingType": 1, |
| 344 | "mappingTypes": [ |
| 345 | { |
| 346 | "name": "value to text", |
| 347 | "value": 1 |
| 348 | }, |
| 349 | { |
| 350 | "name": "range to text", |
| 351 | "value": 2 |
| 352 | } |
| 353 | ], |
| 354 | "maxDataPoints": 100, |
| 355 | "nullPointMode": "connected", |
| 356 | "nullText": null, |
| 357 | "options": {}, |
| 358 | "postfix": "", |
| 359 | "postfixFontSize": "50%", |
| 360 | "prefix": "", |
| 361 | "prefixFontSize": "50%", |
| 362 | "rangeMaps": [ |
| 363 | { |
| 364 | "from": "null", |
| 365 | "text": "N/A", |
| 366 | "to": "null" |
| 367 | } |
| 368 | ], |
| 369 | "repeat": null, |
| 370 | "repeatDirection": "v", |
| 371 | "sparkline": { |
| 372 | "fillColor": "rgba(31, 118, 189, 0.18)", |
| 373 | "full": false, |
| 374 | "lineColor": "rgb(31, 120, 193)", |
| 375 | "show": false, |
| 376 | "ymax": null, |
| 377 | "ymin": null |
| 378 | }, |
| 379 | "tableColumn": "", |
| 380 | "targets": [ |
| 381 | { |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 382 | "expr": "sum(kube_pod_container_resource_limits_cpu_cores{datacenter=\"$site\", pod=~\"$pod.*\"})", |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 383 | "interval": "10s", |
| 384 | "refId": "A" |
| 385 | } |
| 386 | ], |
| 387 | "thresholds": "", |
| 388 | "timeFrom": null, |
| 389 | "timeShift": null, |
| 390 | "title": "CPU limits", |
| 391 | "type": "singlestat", |
| 392 | "valueFontSize": "80%", |
| 393 | "valueMaps": [ |
| 394 | { |
| 395 | "op": "=", |
| 396 | "text": "N/A", |
| 397 | "value": "null" |
| 398 | } |
| 399 | ], |
| 400 | "valueName": "avg" |
| 401 | }, |
| 402 | { |
| 403 | "cacheTimeout": null, |
| 404 | "colorBackground": false, |
| 405 | "colorValue": false, |
| 406 | "colors": [ |
| 407 | "#299c46", |
| 408 | "rgba(237, 129, 40, 0.89)", |
| 409 | "#d44a3a" |
| 410 | ], |
| 411 | "datasource": null, |
| 412 | "format": "none", |
| 413 | "gauge": { |
| 414 | "maxValue": 100, |
| 415 | "minValue": 0, |
| 416 | "show": false, |
| 417 | "thresholdLabels": false, |
| 418 | "thresholdMarkers": true |
| 419 | }, |
| 420 | "gridPos": { |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 421 | "h": 3, |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 422 | "w": 3, |
| 423 | "x": 3, |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 424 | "y": 6 |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 425 | }, |
| 426 | "id": 21, |
| 427 | "interval": null, |
| 428 | "links": [], |
| 429 | "mappingType": 1, |
| 430 | "mappingTypes": [ |
| 431 | { |
| 432 | "name": "value to text", |
| 433 | "value": 1 |
| 434 | }, |
| 435 | { |
| 436 | "name": "range to text", |
| 437 | "value": 2 |
| 438 | } |
| 439 | ], |
| 440 | "maxDataPoints": 100, |
| 441 | "nullPointMode": "connected", |
| 442 | "nullText": null, |
| 443 | "options": {}, |
| 444 | "postfix": "", |
| 445 | "postfixFontSize": "50%", |
| 446 | "prefix": "", |
| 447 | "prefixFontSize": "50%", |
| 448 | "rangeMaps": [ |
| 449 | { |
| 450 | "from": "null", |
| 451 | "text": "N/A", |
| 452 | "to": "null" |
| 453 | } |
| 454 | ], |
| 455 | "repeat": null, |
| 456 | "repeatDirection": "v", |
| 457 | "sparkline": { |
| 458 | "fillColor": "rgba(31, 118, 189, 0.18)", |
| 459 | "full": false, |
| 460 | "lineColor": "rgb(31, 120, 193)", |
| 461 | "show": false, |
| 462 | "ymax": null, |
| 463 | "ymin": null |
| 464 | }, |
| 465 | "tableColumn": "", |
| 466 | "targets": [ |
| 467 | { |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 468 | "expr": "sum (rate(container_cpu_usage_seconds_total{datacenter=\"$site\", image!=\"\", container_name!=\"POD\", pod_name=~\"$pod.*\"}[5m]))", |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 469 | "interval": "10s", |
| 470 | "refId": "A" |
| 471 | } |
| 472 | ], |
| 473 | "thresholds": "", |
| 474 | "timeFrom": null, |
| 475 | "timeShift": null, |
| 476 | "title": "CPU used (5m avg)", |
| 477 | "type": "singlestat", |
| 478 | "valueFontSize": "80%", |
| 479 | "valueMaps": [ |
| 480 | { |
| 481 | "op": "=", |
| 482 | "text": "N/A", |
| 483 | "value": "null" |
| 484 | } |
| 485 | ], |
| 486 | "valueName": "avg" |
| 487 | }, |
| 488 | { |
| 489 | "cacheTimeout": null, |
| 490 | "colorBackground": false, |
| 491 | "colorValue": false, |
| 492 | "colors": [ |
| 493 | "#299c46", |
| 494 | "rgba(237, 129, 40, 0.89)", |
| 495 | "#d44a3a" |
| 496 | ], |
| 497 | "datasource": null, |
| 498 | "decimals": 2, |
| 499 | "format": "decbytes", |
| 500 | "gauge": { |
| 501 | "maxValue": 100, |
| 502 | "minValue": 0, |
| 503 | "show": false, |
| 504 | "thresholdLabels": false, |
| 505 | "thresholdMarkers": true |
| 506 | }, |
| 507 | "gridPos": { |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 508 | "h": 3, |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 509 | "w": 3, |
| 510 | "x": 6, |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 511 | "y": 6 |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 512 | }, |
| 513 | "id": 22, |
| 514 | "interval": null, |
| 515 | "links": [], |
| 516 | "mappingType": 1, |
| 517 | "mappingTypes": [ |
| 518 | { |
| 519 | "name": "value to text", |
| 520 | "value": 1 |
| 521 | }, |
| 522 | { |
| 523 | "name": "range to text", |
| 524 | "value": 2 |
| 525 | } |
| 526 | ], |
| 527 | "maxDataPoints": 100, |
| 528 | "nullPointMode": "connected", |
| 529 | "nullText": null, |
| 530 | "options": {}, |
| 531 | "postfix": "", |
| 532 | "postfixFontSize": "50%", |
| 533 | "prefix": "", |
| 534 | "prefixFontSize": "50%", |
| 535 | "rangeMaps": [ |
| 536 | { |
| 537 | "from": "null", |
| 538 | "text": "N/A", |
| 539 | "to": "null" |
| 540 | } |
| 541 | ], |
| 542 | "repeat": null, |
| 543 | "repeatDirection": "v", |
| 544 | "sparkline": { |
| 545 | "fillColor": "rgba(31, 118, 189, 0.18)", |
| 546 | "full": false, |
| 547 | "lineColor": "rgb(31, 120, 193)", |
| 548 | "show": false, |
| 549 | "ymax": null, |
| 550 | "ymin": null |
| 551 | }, |
| 552 | "tableColumn": "", |
| 553 | "targets": [ |
| 554 | { |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 555 | "expr": "sum(kube_pod_container_resource_limits_memory_bytes{datacenter=\"$site\", pod=~\"$pod.*\"})", |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 556 | "refId": "A" |
| 557 | } |
| 558 | ], |
| 559 | "thresholds": "", |
| 560 | "timeFrom": null, |
| 561 | "timeShift": null, |
| 562 | "title": "Memory limits", |
| 563 | "type": "singlestat", |
| 564 | "valueFontSize": "80%", |
| 565 | "valueMaps": [ |
| 566 | { |
| 567 | "op": "=", |
| 568 | "text": "N/A", |
| 569 | "value": "null" |
| 570 | } |
| 571 | ], |
| 572 | "valueName": "avg" |
| 573 | }, |
| 574 | { |
| 575 | "cacheTimeout": null, |
| 576 | "colorBackground": false, |
| 577 | "colorValue": false, |
| 578 | "colors": [ |
| 579 | "#299c46", |
| 580 | "rgba(237, 129, 40, 0.89)", |
| 581 | "#d44a3a" |
| 582 | ], |
| 583 | "datasource": null, |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 584 | "decimals": null, |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 585 | "format": "decbytes", |
| 586 | "gauge": { |
| 587 | "maxValue": 100, |
| 588 | "minValue": 0, |
| 589 | "show": false, |
| 590 | "thresholdLabels": false, |
| 591 | "thresholdMarkers": true |
| 592 | }, |
| 593 | "gridPos": { |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 594 | "h": 3, |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 595 | "w": 3, |
| 596 | "x": 9, |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 597 | "y": 6 |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 598 | }, |
| 599 | "id": 23, |
| 600 | "interval": null, |
| 601 | "links": [], |
| 602 | "mappingType": 1, |
| 603 | "mappingTypes": [ |
| 604 | { |
| 605 | "name": "value to text", |
| 606 | "value": 1 |
| 607 | }, |
| 608 | { |
| 609 | "name": "range to text", |
| 610 | "value": 2 |
| 611 | } |
| 612 | ], |
| 613 | "maxDataPoints": 100, |
| 614 | "nullPointMode": "connected", |
| 615 | "nullText": null, |
| 616 | "options": {}, |
| 617 | "postfix": "", |
| 618 | "postfixFontSize": "50%", |
| 619 | "prefix": "", |
| 620 | "prefixFontSize": "50%", |
| 621 | "rangeMaps": [ |
| 622 | { |
| 623 | "from": "null", |
| 624 | "text": "N/A", |
| 625 | "to": "null" |
| 626 | } |
| 627 | ], |
| 628 | "repeat": null, |
| 629 | "repeatDirection": "v", |
| 630 | "sparkline": { |
| 631 | "fillColor": "rgba(31, 118, 189, 0.18)", |
| 632 | "full": false, |
| 633 | "lineColor": "rgb(31, 120, 193)", |
| 634 | "show": false, |
| 635 | "ymax": null, |
| 636 | "ymin": null |
| 637 | }, |
| 638 | "tableColumn": "", |
| 639 | "targets": [ |
| 640 | { |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 641 | "expr": "sum(container_memory_working_set_bytes{datacenter=\"$site\", container_name!=\"POD\", container_name!=\"\", pod_name=~\"$pod.*\"})", |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 642 | "interval": "10s", |
| 643 | "refId": "A" |
| 644 | } |
| 645 | ], |
| 646 | "thresholds": "", |
| 647 | "timeFrom": null, |
| 648 | "timeShift": null, |
| 649 | "title": "Memory used", |
| 650 | "type": "singlestat", |
| 651 | "valueFontSize": "80%", |
| 652 | "valueMaps": [ |
| 653 | { |
| 654 | "op": "=", |
| 655 | "text": "N/A", |
| 656 | "value": "null" |
| 657 | } |
| 658 | ], |
| 659 | "valueName": "avg" |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 660 | }, |
| 661 | { |
| 662 | "aliasColors": {}, |
| 663 | "bars": false, |
| 664 | "dashLength": 10, |
| 665 | "dashes": false, |
| 666 | "datasource": "Prometheus", |
| 667 | "decimals": 3, |
| 668 | "editable": true, |
| 669 | "error": false, |
| 670 | "fill": 1, |
| 671 | "fillGradient": 0, |
| 672 | "grid": {}, |
| 673 | "gridPos": { |
| 674 | "h": 6, |
| 675 | "w": 12, |
| 676 | "x": 0, |
| 677 | "y": 9 |
| 678 | }, |
| 679 | "height": "", |
| 680 | "id": 27, |
| 681 | "isNew": true, |
| 682 | "legend": { |
| 683 | "alignAsTable": true, |
| 684 | "avg": true, |
| 685 | "current": true, |
| 686 | "hideEmpty": false, |
| 687 | "hideZero": false, |
| 688 | "max": false, |
| 689 | "min": false, |
| 690 | "rightSide": true, |
| 691 | "show": true, |
| 692 | "sideWidth": null, |
| 693 | "sort": "current", |
| 694 | "sortDesc": true, |
| 695 | "total": false, |
| 696 | "values": true |
| 697 | }, |
| 698 | "lines": true, |
| 699 | "linewidth": 0, |
| 700 | "links": [], |
| 701 | "nullPointMode": "null", |
| 702 | "options": { |
| 703 | "dataLinks": [] |
| 704 | }, |
| 705 | "percentage": false, |
| 706 | "pointradius": 0.5, |
| 707 | "points": true, |
| 708 | "renderer": "flot", |
| 709 | "seriesOverrides": [], |
| 710 | "spaceLength": 10, |
| 711 | "stack": false, |
| 712 | "steppedLine": false, |
| 713 | "targets": [ |
| 714 | { |
| 715 | "expr": "sum (rate (container_cpu_usage_seconds_total{image!=\"\",pod_name=~\"^$pod-.*\",name=~\"^k8s_.*\",container_name!=\"POD\",datacenter=\"$site\"}[5m])) by (container_name, pod_name)", |
| 716 | "format": "time_series", |
| 717 | "hide": false, |
| 718 | "interval": "10s", |
| 719 | "intervalFactor": 5, |
| 720 | "legendFormat": "pod: {{ pod_name }} | {{ container_name }}", |
| 721 | "metric": "container_cpu", |
| 722 | "refId": "A", |
| 723 | "step": 10 |
| 724 | }, |
| 725 | { |
| 726 | "expr": "sum (rate (container_cpu_usage_seconds_total{image!=\"\",pod_name=\"$pod-0\",name!~\"^k8s_.*\",datacenter=\"$site\"}[5m])) by (kubernetes_io_hostname, name, image)", |
| 727 | "format": "time_series", |
| 728 | "hide": true, |
| 729 | "interval": "10s", |
| 730 | "intervalFactor": 5, |
| 731 | "legendFormat": "docker: {{ kubernetes_io_hostname }} | {{ image }} ({{ name }})", |
| 732 | "metric": "container_cpu", |
| 733 | "refId": "B", |
| 734 | "step": 10 |
| 735 | }, |
| 736 | { |
| 737 | "expr": "sum (rate (container_cpu_usage_seconds_total{rkt_container_name!=\"\",datacenter=\"$site\"}[5m])) by (kubernetes_io_hostname, rkt_container_name)", |
| 738 | "format": "time_series", |
| 739 | "hide": true, |
| 740 | "interval": "10s", |
| 741 | "intervalFactor": 5, |
| 742 | "legendFormat": "rkt: {{ kubernetes_io_hostname }} | {{ rkt_container_name }}", |
| 743 | "metric": "container_cpu", |
| 744 | "refId": "C", |
| 745 | "step": 10 |
| 746 | } |
| 747 | ], |
| 748 | "thresholds": [], |
| 749 | "timeFrom": null, |
| 750 | "timeRegions": [], |
| 751 | "timeShift": null, |
| 752 | "title": "Containers CPU usage (5m avg)", |
| 753 | "tooltip": { |
| 754 | "msResolution": true, |
| 755 | "shared": false, |
| 756 | "sort": 2, |
| 757 | "value_type": "cumulative" |
| 758 | }, |
| 759 | "type": "graph", |
| 760 | "xaxis": { |
| 761 | "buckets": null, |
| 762 | "mode": "time", |
| 763 | "name": null, |
| 764 | "show": true, |
| 765 | "values": [] |
| 766 | }, |
| 767 | "yaxes": [ |
| 768 | { |
| 769 | "format": "none", |
| 770 | "label": "cores", |
| 771 | "logBase": 1, |
| 772 | "max": null, |
| 773 | "min": null, |
| 774 | "show": true |
| 775 | }, |
| 776 | { |
| 777 | "format": "short", |
| 778 | "label": null, |
| 779 | "logBase": 1, |
| 780 | "max": null, |
| 781 | "min": null, |
| 782 | "show": false |
| 783 | } |
| 784 | ], |
| 785 | "yaxis": { |
| 786 | "align": false, |
| 787 | "alignLevel": null |
| 788 | } |
| 789 | }, |
| 790 | { |
| 791 | "aliasColors": {}, |
| 792 | "bars": false, |
| 793 | "dashLength": 10, |
| 794 | "dashes": false, |
| 795 | "datasource": "Prometheus", |
| 796 | "decimals": 2, |
| 797 | "editable": true, |
| 798 | "error": false, |
| 799 | "fill": 1, |
| 800 | "fillGradient": 0, |
| 801 | "grid": {}, |
| 802 | "gridPos": { |
| 803 | "h": 6, |
| 804 | "w": 12, |
| 805 | "x": 12, |
| 806 | "y": 9 |
| 807 | }, |
| 808 | "id": 29, |
| 809 | "isNew": true, |
| 810 | "legend": { |
| 811 | "alignAsTable": true, |
| 812 | "avg": true, |
| 813 | "current": true, |
| 814 | "max": false, |
| 815 | "min": false, |
| 816 | "rightSide": true, |
| 817 | "show": true, |
| 818 | "sideWidth": null, |
| 819 | "sort": "current", |
| 820 | "sortDesc": true, |
| 821 | "total": false, |
| 822 | "values": true |
| 823 | }, |
| 824 | "lines": true, |
| 825 | "linewidth": 0, |
| 826 | "links": [], |
| 827 | "nullPointMode": "null", |
| 828 | "options": { |
| 829 | "dataLinks": [] |
| 830 | }, |
| 831 | "percentage": false, |
| 832 | "pointradius": 0.5, |
| 833 | "points": true, |
| 834 | "renderer": "flot", |
| 835 | "seriesOverrides": [], |
| 836 | "spaceLength": 10, |
| 837 | "stack": false, |
| 838 | "steppedLine": true, |
| 839 | "targets": [ |
| 840 | { |
| 841 | "expr": "sum (container_memory_working_set_bytes{image!=\"\",datacenter=\"$site\",pod_name=~\"^$pod.*\",name=~\"^k8s_.*\",container_name!=\"POD\"}) by (container_name, pod_name)", |
| 842 | "format": "time_series", |
| 843 | "interval": "10s", |
| 844 | "intervalFactor": 5, |
| 845 | "legendFormat": "pod: {{ pod_name }} | {{ container_name }}", |
| 846 | "metric": "container_memory_usage:sort_desc", |
| 847 | "refId": "A", |
| 848 | "step": 10 |
| 849 | }, |
| 850 | { |
| 851 | "expr": "sum (container_memory_working_set_bytes{image!=\"\",name!~\"^k8s_.*\",datacenter=\"$Site\",kubernetes_io_hostname=~\"^$Node$\",namespace=~\"$Namespace\"}) by (kubernetes_io_hostname, name, image)", |
| 852 | "format": "time_series", |
| 853 | "hide": true, |
| 854 | "interval": "10s", |
| 855 | "intervalFactor": 5, |
| 856 | "legendFormat": "docker: {{ kubernetes_io_hostname }} | {{ image }} ({{ name }})", |
| 857 | "metric": "container_memory_usage:sort_desc", |
| 858 | "refId": "B", |
| 859 | "step": 10 |
| 860 | }, |
| 861 | { |
| 862 | "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)", |
| 863 | "format": "time_series", |
| 864 | "hide": true, |
| 865 | "interval": "10s", |
| 866 | "intervalFactor": 5, |
| 867 | "legendFormat": "rkt: {{ kubernetes_io_hostname }} | {{ rkt_container_name }}", |
| 868 | "metric": "container_memory_usage:sort_desc", |
| 869 | "refId": "C", |
| 870 | "step": 10 |
| 871 | } |
| 872 | ], |
| 873 | "thresholds": [], |
| 874 | "timeFrom": null, |
| 875 | "timeRegions": [], |
| 876 | "timeShift": null, |
| 877 | "title": "Containers memory usage", |
| 878 | "tooltip": { |
| 879 | "msResolution": false, |
| 880 | "shared": false, |
| 881 | "sort": 2, |
| 882 | "value_type": "cumulative" |
| 883 | }, |
| 884 | "type": "graph", |
| 885 | "xaxis": { |
| 886 | "buckets": null, |
| 887 | "mode": "time", |
| 888 | "name": null, |
| 889 | "show": true, |
| 890 | "values": [] |
| 891 | }, |
| 892 | "yaxes": [ |
| 893 | { |
| 894 | "format": "bytes", |
| 895 | "label": null, |
| 896 | "logBase": 1, |
| 897 | "max": null, |
| 898 | "min": null, |
| 899 | "show": true |
| 900 | }, |
| 901 | { |
| 902 | "format": "short", |
| 903 | "label": null, |
| 904 | "logBase": 1, |
| 905 | "max": null, |
| 906 | "min": null, |
| 907 | "show": false |
| 908 | } |
| 909 | ], |
| 910 | "yaxis": { |
| 911 | "align": false, |
| 912 | "alignLevel": null |
| 913 | } |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 914 | } |
| 915 | ], |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 916 | "refresh": "1m", |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 917 | "schemaVersion": 20, |
| 918 | "style": "dark", |
| 919 | "tags": [ |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 920 | "aether", |
| 921 | "omec" |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 922 | ], |
| 923 | "templating": { |
| 924 | "list": [ |
| 925 | { |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 926 | "allValue": null, |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 927 | "datasource": "Prometheus", |
| 928 | "definition": "label_values(kube_pod_info, datacenter)", |
| 929 | "hide": 0, |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 930 | "includeAll": false, |
| 931 | "label": "Site", |
| 932 | "multi": false, |
| 933 | "name": "site", |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 934 | "query": "label_values(kube_pod_info, datacenter)", |
| 935 | "refresh": 2, |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 936 | "regex": "/.*central.*/", |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 937 | "skipUrlSync": false, |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 938 | "sort": 0, |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 939 | "tagValuesQuery": "", |
| 940 | "tags": [], |
| 941 | "tagsQuery": "", |
| 942 | "type": "query", |
| 943 | "useTags": false |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 944 | }, |
| 945 | { |
| 946 | "allValue": ".*", |
| 947 | "current": { |
| 948 | "tags": [], |
| 949 | "text": "All", |
| 950 | "value": [ |
| 951 | "$__all" |
| 952 | ] |
| 953 | }, |
| 954 | "hide": 0, |
| 955 | "includeAll": true, |
| 956 | "label": "Pod", |
| 957 | "multi": true, |
| 958 | "name": "pod", |
| 959 | "options": [ |
| 960 | { |
| 961 | "selected": false, |
| 962 | "text": "All", |
| 963 | "value": "$__all" |
| 964 | }, |
| 965 | { |
| 966 | "selected": true, |
| 967 | "text": "mme", |
| 968 | "value": "mme" |
| 969 | }, |
| 970 | { |
| 971 | "selected": false, |
| 972 | "text": "spgwc", |
| 973 | "value": "spgwc" |
| 974 | }, |
| 975 | { |
| 976 | "selected": false, |
| 977 | "text": "hss", |
| 978 | "value": "hss" |
| 979 | }, |
| 980 | { |
| 981 | "selected": false, |
| 982 | "text": "cassandra", |
| 983 | "value": "cassandra" |
| 984 | } |
| 985 | ], |
| 986 | "query": "mme,spgwc,hss,cassandra", |
| 987 | "skipUrlSync": false, |
| 988 | "type": "custom" |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 989 | } |
| 990 | ] |
| 991 | }, |
| 992 | "time": { |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 993 | "from": "now-3h", |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 994 | "to": "now" |
| 995 | }, |
| 996 | "timepicker": { |
| 997 | "hidden": false, |
| 998 | "refresh_intervals": [ |
| 999 | "5s", |
| 1000 | "10s", |
| 1001 | "30s", |
| 1002 | "1m", |
| 1003 | "5m", |
| 1004 | "15m", |
| 1005 | "30m", |
| 1006 | "1h", |
| 1007 | "2h", |
| 1008 | "1d" |
| 1009 | ], |
| 1010 | "time_options": [ |
| 1011 | "5m", |
| 1012 | "15m", |
| 1013 | "1h", |
| 1014 | "6h", |
| 1015 | "12h", |
| 1016 | "24h", |
| 1017 | "2d", |
| 1018 | "7d", |
| 1019 | "30d" |
| 1020 | ] |
| 1021 | }, |
| 1022 | "timezone": "", |
Hyunsun Moon | da48dbe | 2020-02-02 13:26:18 -0800 | [diff] [blame] | 1023 | "title": "OMEC Control Plane", |
| 1024 | "uid": "gKU2e27Zb", |
| 1025 | "version": 1 |
| 1026 | } |