agones.dev/agones@v1.53.0/build/grafana/dashboard-controller-usage.yaml (about) 1 --- 2 # Copyright 2018 Google LLC All Rights Reserved. 3 # 4 # Licensed under the Apache License, Version 2.0 (the "License"); 5 # you may not use this file except in compliance with the License. 6 # You may obtain a copy of the License at 7 # 8 # http://www.apache.org/licenses/LICENSE-2.0 9 # 10 # Unless required by applicable law or agreed to in writing, software 11 # distributed under the License is distributed on an "AS IS" BASIS, 12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 # See the License for the specific language governing permissions and 14 # limitations under the License. 15 16 # configs map used by grafana 17 apiVersion: v1 18 kind: ConfigMap 19 metadata: 20 name: agones-controller-usage 21 namespace: metrics 22 labels: 23 grafana_dashboard: '1' 24 data: 25 dashboard-agones-controller-usage.json: |- 26 { 27 "annotations": { 28 "list": [ 29 { 30 "builtIn": 1, 31 "datasource": "-- Grafana --", 32 "enable": true, 33 "hide": true, 34 "iconColor": "rgba(0, 211, 255, 1)", 35 "name": "Annotations & Alerts", 36 "type": "dashboard" 37 } 38 ] 39 }, 40 "editable": true, 41 "gnetId": null, 42 "graphTooltip": 0, 43 "links": [], 44 "panels": [ 45 { 46 "cacheTimeout": null, 47 "colorBackground": false, 48 "colorValue": false, 49 "colors": [ 50 "#299c46", 51 "rgba(237, 129, 40, 0.89)", 52 "#d44a3a" 53 ], 54 "format": "none", 55 "gauge": { 56 "maxValue": 100, 57 "minValue": 0, 58 "show": false, 59 "thresholdLabels": false, 60 "thresholdMarkers": true 61 }, 62 "gridPos": { 63 "h": 5, 64 "w": 6, 65 "x": 0, 66 "y": 0 67 }, 68 "id": 12, 69 "interval": null, 70 "links": [], 71 "mappingType": 1, 72 "mappingTypes": [ 73 { 74 "name": "value to text", 75 "value": 1 76 }, 77 { 78 "name": "range to text", 79 "value": 2 80 } 81 ], 82 "maxDataPoints": 100, 83 "nullPointMode": "connected", 84 "nullText": null, 85 "options": {}, 86 "postfix": "", 87 "postfixFontSize": "50%", 88 "prefix": "", 89 "prefixFontSize": "50%", 90 "rangeMaps": [ 91 { 92 "from": "null", 93 "text": "N/A", 94 "to": "null" 95 } 96 ], 97 "sparkline": { 98 "fillColor": "rgba(31, 118, 189, 0.18)", 99 "full": false, 100 "lineColor": "rgb(31, 120, 193)", 101 "show": false 102 }, 103 "tableColumn": "", 104 "targets": [ 105 { 106 "expr": "process_open_fds{app=\"agones\",kubernetes_pod_name=~\"agones-controller.*\"}", 107 "format": "time_series", 108 "instant": true, 109 "intervalFactor": 1, 110 "refId": "A" 111 } 112 ], 113 "thresholds": "", 114 "title": "Controller Open File Descriptor Count", 115 "type": "singlestat", 116 "valueFontSize": "80%", 117 "valueMaps": [ 118 { 119 "op": "=", 120 "text": "N/A", 121 "value": "null" 122 } 123 ], 124 "valueName": "avg" 125 }, 126 { 127 "cacheTimeout": null, 128 "colorBackground": false, 129 "colorValue": false, 130 "colors": [ 131 "#299c46", 132 "rgba(237, 129, 40, 0.89)", 133 "#d44a3a" 134 ], 135 "format": "dateTimeFromNow", 136 "gauge": { 137 "maxValue": 100, 138 "minValue": 0, 139 "show": false, 140 "thresholdLabels": false, 141 "thresholdMarkers": true 142 }, 143 "gridPos": { 144 "h": 5, 145 "w": 6, 146 "x": 6, 147 "y": 0 148 }, 149 "id": 10, 150 "interval": null, 151 "links": [], 152 "mappingType": 1, 153 "mappingTypes": [ 154 { 155 "name": "value to text", 156 "value": 1 157 }, 158 { 159 "name": "range to text", 160 "value": 2 161 } 162 ], 163 "maxDataPoints": 100, 164 "nullPointMode": "connected", 165 "nullText": null, 166 "options": {}, 167 "postfix": "", 168 "postfixFontSize": "50%", 169 "prefix": "", 170 "prefixFontSize": "50%", 171 "rangeMaps": [ 172 { 173 "from": "null", 174 "text": "N/A", 175 "to": "null" 176 } 177 ], 178 "sparkline": { 179 "fillColor": "rgba(31, 118, 189, 0.18)", 180 "full": false, 181 "lineColor": "rgb(31, 120, 193)", 182 "show": false 183 }, 184 "tableColumn": "", 185 "targets": [ 186 { 187 "expr": "go_memstats_last_gc_time_seconds{app=\"agones\",kubernetes_pod_name=~\"agones-controller.*\"} * 1000", 188 "format": "time_series", 189 "instant": true, 190 "intervalFactor": 1, 191 "refId": "A" 192 } 193 ], 194 "thresholds": "", 195 "title": "Last Go GC", 196 "type": "singlestat", 197 "valueFontSize": "80%", 198 "valueMaps": [ 199 { 200 "op": "=", 201 "text": "N/A", 202 "value": "null" 203 } 204 ], 205 "valueName": "avg" 206 }, 207 { 208 "aliasColors": {}, 209 "bars": false, 210 "dashLength": 10, 211 "dashes": false, 212 "fill": 1, 213 "gridPos": { 214 "h": 9, 215 "w": 12, 216 "x": 12, 217 "y": 0 218 }, 219 "id": 4, 220 "legend": { 221 "alignAsTable": true, 222 "avg": true, 223 "current": true, 224 "hideEmpty": true, 225 "hideZero": true, 226 "max": true, 227 "min": true, 228 "rightSide": false, 229 "show": true, 230 "total": false, 231 "values": true 232 }, 233 "lines": true, 234 "linewidth": 1, 235 "links": [], 236 "nullPointMode": "null", 237 "options": {}, 238 "percentage": false, 239 "pointradius": 5, 240 "points": false, 241 "renderer": "flot", 242 "seriesOverrides": [], 243 "spaceLength": 10, 244 "stack": false, 245 "steppedLine": false, 246 "targets": [ 247 { 248 "expr": "process_resident_memory_bytes{app=\"agones\",kubernetes_pod_name=~\"agones-controller.*\"}", 249 "format": "time_series", 250 "intervalFactor": 1, 251 "legendFormat": "resident", 252 "refId": "A" 253 }, 254 { 255 "expr": "process_virtual_memory_bytes{app=\"agones\",kubernetes_pod_name=~\"agones-controller.*\"}", 256 "format": "time_series", 257 "intervalFactor": 1, 258 "legendFormat": "virtual", 259 "refId": "B" 260 }, 261 { 262 "expr": "go_memstats_alloc_bytes{app=\"agones\",kubernetes_pod_name=~\"agones-controller.*\"}", 263 "format": "time_series", 264 "intervalFactor": 1, 265 "legendFormat": "go alloc", 266 "refId": "C" 267 } 268 ], 269 "thresholds": [], 270 "timeFrom": null, 271 "timeRegions": [], 272 "timeShift": null, 273 "title": "Controller Memory Used", 274 "tooltip": { 275 "shared": true, 276 "sort": 0, 277 "value_type": "individual" 278 }, 279 "type": "graph", 280 "xaxis": { 281 "buckets": null, 282 "mode": "time", 283 "name": null, 284 "show": true, 285 "values": [] 286 }, 287 "yaxes": [ 288 { 289 "format": "decbytes", 290 "label": null, 291 "logBase": 1, 292 "max": null, 293 "min": null, 294 "show": true 295 }, 296 { 297 "format": "short", 298 "label": null, 299 "logBase": 1, 300 "max": null, 301 "min": null, 302 "show": true 303 } 304 ], 305 "yaxis": { 306 "align": false, 307 "alignLevel": null 308 } 309 }, 310 { 311 "aliasColors": {}, 312 "bars": true, 313 "dashLength": 10, 314 "dashes": false, 315 "fill": 1, 316 "gridPos": { 317 "h": 7, 318 "w": 12, 319 "x": 0, 320 "y": 5 321 }, 322 "id": 6, 323 "legend": { 324 "alignAsTable": true, 325 "avg": true, 326 "current": true, 327 "max": true, 328 "min": true, 329 "show": true, 330 "total": false, 331 "values": true 332 }, 333 "lines": false, 334 "linewidth": 1, 335 "links": [], 336 "nullPointMode": "null", 337 "options": {}, 338 "percentage": false, 339 "pointradius": 5, 340 "points": false, 341 "renderer": "flot", 342 "seriesOverrides": [], 343 "spaceLength": 10, 344 "stack": false, 345 "steppedLine": false, 346 "targets": [ 347 { 348 "expr": "go_goroutines{app=\"agones\",kubernetes_pod_name=~\"agones-controller.*\"}", 349 "format": "time_series", 350 "intervalFactor": 1, 351 "legendFormat": "go routines", 352 "refId": "A" 353 }, 354 { 355 "expr": "go_threads{app=\"agones\",kubernetes_pod_name=~\"agones-controller.*\"}", 356 "format": "time_series", 357 "intervalFactor": 1, 358 "legendFormat": "threads", 359 "refId": "B" 360 } 361 ], 362 "thresholds": [], 363 "timeFrom": null, 364 "timeRegions": [], 365 "timeShift": null, 366 "title": "Controller Go Routines & Threads Count", 367 "tooltip": { 368 "shared": true, 369 "sort": 0, 370 "value_type": "individual" 371 }, 372 "type": "graph", 373 "xaxis": { 374 "buckets": null, 375 "mode": "time", 376 "name": null, 377 "show": true, 378 "values": [] 379 }, 380 "yaxes": [ 381 { 382 "format": "short", 383 "label": null, 384 "logBase": 1, 385 "max": null, 386 "min": null, 387 "show": true 388 }, 389 { 390 "format": "short", 391 "label": null, 392 "logBase": 1, 393 "max": null, 394 "min": null, 395 "show": true 396 } 397 ], 398 "yaxis": { 399 "align": false, 400 "alignLevel": null 401 } 402 }, 403 { 404 "aliasColors": {}, 405 "bars": false, 406 "dashLength": 10, 407 "dashes": false, 408 "decimals": null, 409 "fill": 1, 410 "gridPos": { 411 "h": 9, 412 "w": 12, 413 "x": 12, 414 "y": 9 415 }, 416 "id": 2, 417 "legend": { 418 "alignAsTable": true, 419 "avg": true, 420 "current": true, 421 "max": true, 422 "min": true, 423 "rightSide": false, 424 "show": true, 425 "total": false, 426 "values": true 427 }, 428 "lines": true, 429 "linewidth": 1, 430 "links": [], 431 "nullPointMode": "null", 432 "options": {}, 433 "percentage": false, 434 "pointradius": 5, 435 "points": false, 436 "renderer": "flot", 437 "seriesOverrides": [], 438 "spaceLength": 10, 439 "stack": false, 440 "steppedLine": false, 441 "targets": [ 442 { 443 "expr": "sum (irate (process_cpu_seconds_total{app=\"agones\",kubernetes_pod_name=~\"agones-controller.*\"}[1m])) by (kubernetes_pod_name)", 444 "format": "time_series", 445 "intervalFactor": 1, 446 "legendFormat": "{{kubernetes_pod_name}}", 447 "refId": "A" 448 } 449 ], 450 "thresholds": [], 451 "timeFrom": null, 452 "timeRegions": [], 453 "timeShift": null, 454 "title": "Controller CPU Used (% of core)", 455 "tooltip": { 456 "shared": true, 457 "sort": 0, 458 "value_type": "individual" 459 }, 460 "type": "graph", 461 "xaxis": { 462 "buckets": null, 463 "mode": "time", 464 "name": null, 465 "show": true, 466 "values": [] 467 }, 468 "yaxes": [ 469 { 470 "format": "percentunit", 471 "label": null, 472 "logBase": 1, 473 "max": null, 474 "min": null, 475 "show": true 476 }, 477 { 478 "format": "short", 479 "label": null, 480 "logBase": 1, 481 "max": null, 482 "min": null, 483 "show": true 484 } 485 ], 486 "yaxis": { 487 "align": false, 488 "alignLevel": null 489 } 490 }, 491 { 492 "aliasColors": {}, 493 "bars": false, 494 "dashLength": 10, 495 "dashes": false, 496 "fill": 1, 497 "gridPos": { 498 "h": 6, 499 "w": 12, 500 "x": 0, 501 "y": 12 502 }, 503 "id": 8, 504 "legend": { 505 "alignAsTable": true, 506 "avg": true, 507 "current": true, 508 "max": true, 509 "min": true, 510 "show": true, 511 "total": false, 512 "values": true 513 }, 514 "lines": true, 515 "linewidth": 1, 516 "links": [], 517 "nullPointMode": "null", 518 "options": {}, 519 "percentage": false, 520 "pointradius": 5, 521 "points": false, 522 "renderer": "flot", 523 "seriesOverrides": [], 524 "spaceLength": 10, 525 "stack": false, 526 "steppedLine": false, 527 "targets": [ 528 { 529 "expr": " rate(go_gc_duration_seconds_sum{app=\"agones\",kubernetes_pod_name=~\"agones-controller.*\"}[5m]) / rate(go_gc_duration_seconds_count{app=\"agones\",kubernetes_pod_name=~\"agones-controller.*\"}[5m])", 530 "format": "time_series", 531 "intervalFactor": 1, 532 "legendFormat": "duration", 533 "refId": "A" 534 } 535 ], 536 "thresholds": [], 537 "timeFrom": null, 538 "timeRegions": [], 539 "timeShift": null, 540 "title": "Average Go GC Duration", 541 "tooltip": { 542 "shared": true, 543 "sort": 0, 544 "value_type": "individual" 545 }, 546 "type": "graph", 547 "xaxis": { 548 "buckets": null, 549 "mode": "time", 550 "name": null, 551 "show": true, 552 "values": [] 553 }, 554 "yaxes": [ 555 { 556 "format": "s", 557 "label": null, 558 "logBase": 1, 559 "max": null, 560 "min": null, 561 "show": true 562 }, 563 { 564 "format": "short", 565 "label": null, 566 "logBase": 1, 567 "max": null, 568 "min": null, 569 "show": true 570 } 571 ], 572 "yaxis": { 573 "align": false, 574 "alignLevel": null 575 } 576 } 577 ], 578 "refresh": "5s", 579 "schemaVersion": 18, 580 "style": "dark", 581 "tags": [ 582 "controller", 583 "agones" 584 ], 585 "templating": { 586 "list": [] 587 }, 588 "time": { 589 "from": "now-30m", 590 "to": "now" 591 }, 592 "timepicker": { 593 "refresh_intervals": [ 594 "5s", 595 "10s", 596 "30s", 597 "1m", 598 "5m", 599 "15m", 600 "30m", 601 "1h", 602 "2h", 603 "1d" 604 ], 605 "time_options": [ 606 "5m", 607 "15m", 608 "1h", 609 "6h", 610 "12h", 611 "24h", 612 "2d", 613 "7d", 614 "30d" 615 ] 616 }, 617 "timezone": "", 618 "title": "Agones Controller Resource Usage", 619 "uid": "ktm3s0Umk", 620 "version": 1 621 }