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