agones.dev/agones@v1.53.0/build/grafana/dashboard-apiserver-requests.yaml (about) 1 --- 2 # Copyright 2019 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-apiserver-requests 21 namespace: metrics 22 labels: 23 grafana_dashboard: '1' 24 data: 25 dashboard-agones-apiserver-requests.json: |- 26 { 27 "annotations": { 28 "list": [ 29 { 30 "builtIn": 1, 31 "datasource": { 32 "type": "datasource", 33 "uid": "grafana" 34 }, 35 "enable": true, 36 "hide": true, 37 "iconColor": "rgba(0, 211, 255, 1)", 38 "name": "Annotations & Alerts", 39 "target": { 40 "limit": 100, 41 "matchAny": false, 42 "tags": [], 43 "type": "dashboard" 44 }, 45 "type": "dashboard" 46 } 47 ] 48 }, 49 "editable": true, 50 "fiscalYearStartMonth": 0, 51 "graphTooltip": 0, 52 "links": [], 53 "liveNow": false, 54 "panels": [ 55 { 56 "aliasColors": {}, 57 "bars": false, 58 "dashLength": 10, 59 "dashes": false, 60 "datasource": "Prometheus", 61 "description": "API Server Main Resource Request count for Fleet/Gameserver/Gameserverset", 62 "fill": 1, 63 "fillGradient": 0, 64 "gridPos": { 65 "h": 8, 66 "w": 12, 67 "x": 0, 68 "y": 0 69 }, 70 "hiddenSeries": false, 71 "id": 2, 72 "legend": { 73 "alignAsTable": true, 74 "avg": false, 75 "current": true, 76 "hideEmpty": true, 77 "hideZero": true, 78 "max": false, 79 "min": false, 80 "rightSide": true, 81 "show": true, 82 "total": false, 83 "values": true 84 }, 85 "lines": true, 86 "linewidth": 1, 87 "links": [], 88 "nullPointMode": "null", 89 "options": { 90 "alertThreshold": true 91 }, 92 "paceLength": 10, 93 "percentage": false, 94 "pluginVersion": "9.3.6", 95 "pointradius": 2, 96 "points": false, 97 "renderer": "flot", 98 "seriesOverrides": [], 99 "spaceLength": 10, 100 "stack": false, 101 "steppedLine": false, 102 "targets": [ 103 { 104 "datasource": "Prometheus", 105 "expr": "sum(rate(apiserver_request_total{resource=~\"[[CustomResourceDefinition]]\",verb!~\"WATCH|LIST\",subresource=~\"\"}[$__rate_interval])) by (resource,verb)", 106 "format": "time_series", 107 "intervalFactor": 1, 108 "legendFormat": "{{verb}} {{resource}}", 109 "refId": "A" 110 } 111 ], 112 "thresholds": [], 113 "timeRegions": [], 114 "title": "Main Resource Request Count per Second", 115 "tooltip": { 116 "shared": true, 117 "sort": 0, 118 "value_type": "individual" 119 }, 120 "type": "graph", 121 "xaxis": { 122 "mode": "time", 123 "show": true, 124 "values": [] 125 }, 126 "yaxes": [ 127 { 128 "format": "reqps", 129 "label": "", 130 "logBase": 1, 131 "show": true 132 }, 133 { 134 "format": "short", 135 "logBase": 1, 136 "show": true 137 } 138 ], 139 "yaxis": { 140 "align": false 141 } 142 }, 143 { 144 "aliasColors": {}, 145 "bars": false, 146 "dashLength": 10, 147 "dashes": false, 148 "datasource": "Prometheus", 149 "description": "API Server Subresource Request count for Fleet/Gameserver/Gameserverset", 150 "fill": 1, 151 "fillGradient": 0, 152 "gridPos": { 153 "h": 8, 154 "w": 12, 155 "x": 12, 156 "y": 0 157 }, 158 "hiddenSeries": false, 159 "id": 10, 160 "legend": { 161 "alignAsTable": true, 162 "avg": false, 163 "current": true, 164 "hideEmpty": true, 165 "hideZero": true, 166 "max": false, 167 "min": false, 168 "rightSide": true, 169 "show": true, 170 "total": false, 171 "values": true 172 }, 173 "lines": true, 174 "linewidth": 1, 175 "links": [], 176 "nullPointMode": "null", 177 "options": { 178 "alertThreshold": true 179 }, 180 "paceLength": 10, 181 "percentage": false, 182 "pluginVersion": "9.3.6", 183 "pointradius": 2, 184 "points": false, 185 "renderer": "flot", 186 "seriesOverrides": [], 187 "spaceLength": 10, 188 "stack": false, 189 "steppedLine": false, 190 "targets": [ 191 { 192 "datasource": "Prometheus", 193 "expr": "sum(rate(apiserver_request_total{resource=~\"[[CustomResourceDefinition]]\",verb!~\"WATCH|LIST\",subresource!~\"\"}[$__rate_interval])) by (resource,subresource,verb)", 194 "format": "time_series", 195 "intervalFactor": 1, 196 "legendFormat": "{{verb}} {{resource}} {{subresource}}", 197 "refId": "A" 198 } 199 ], 200 "thresholds": [], 201 "timeRegions": [], 202 "title": "Subresource Request Count per Second", 203 "tooltip": { 204 "shared": true, 205 "sort": 0, 206 "value_type": "individual" 207 }, 208 "type": "graph", 209 "xaxis": { 210 "mode": "time", 211 "show": true, 212 "values": [] 213 }, 214 "yaxes": [ 215 { 216 "format": "reqps", 217 "label": "", 218 "logBase": 1, 219 "show": true 220 }, 221 { 222 "format": "short", 223 "logBase": 1, 224 "show": true 225 } 226 ], 227 "yaxis": { 228 "align": false 229 } 230 }, 231 { 232 "aliasColors": {}, 233 "bars": false, 234 "dashLength": 10, 235 "dashes": false, 236 "datasource": "Prometheus", 237 "fill": 1, 238 "fillGradient": 0, 239 "gridPos": { 240 "h": 8, 241 "w": 12, 242 "x": 0, 243 "y": 8 244 }, 245 "hiddenSeries": false, 246 "id": 6, 247 "legend": { 248 "alignAsTable": true, 249 "avg": false, 250 "current": true, 251 "hideEmpty": true, 252 "hideZero": true, 253 "max": false, 254 "min": false, 255 "rightSide": true, 256 "show": true, 257 "total": false, 258 "values": true 259 }, 260 "lines": true, 261 "linewidth": 1, 262 "links": [ 263 { 264 "url": "/" 265 } 266 ], 267 "nullPointMode": "null", 268 "options": { 269 "alertThreshold": true 270 }, 271 "paceLength": 10, 272 "percentage": false, 273 "pluginVersion": "9.3.6", 274 "pointradius": 2, 275 "points": false, 276 "renderer": "flot", 277 "repeatDirection": "h", 278 "seriesOverrides": [], 279 "spaceLength": 10, 280 "stack": false, 281 "steppedLine": false, 282 "targets": [ 283 { 284 "datasource": "Prometheus", 285 "expr": "sum(rate(apiserver_request_total{code=\"409\",resource=~\"[[CustomResourceDefinition]]\", subresource=~[[Subresource]]}[$__rate_interval])) by (code, resource, subresource)", 286 "format": "time_series", 287 "interval": "", 288 "intervalFactor": 1, 289 "legendFormat": "{{resource}} {{subresource}} {{code}}", 290 "refId": "A" 291 } 292 ], 293 "thresholds": [], 294 "timeRegions": [], 295 "title": "Request Error Rate", 296 "tooltip": { 297 "shared": true, 298 "sort": 0, 299 "value_type": "individual" 300 }, 301 "type": "graph", 302 "xaxis": { 303 "mode": "time", 304 "show": true, 305 "values": [] 306 }, 307 "yaxes": [ 308 { 309 "format": "reqps", 310 "label": "", 311 "logBase": 1, 312 "show": true 313 }, 314 { 315 "format": "short", 316 "logBase": 1, 317 "show": true 318 } 319 ], 320 "yaxis": { 321 "align": false 322 } 323 }, 324 { 325 "aliasColors": {}, 326 "bars": false, 327 "dashLength": 10, 328 "dashes": false, 329 "datasource": "Prometheus", 330 "description": "409 error on Update of Resources", 331 "fill": 1, 332 "fillGradient": 0, 333 "gridPos": { 334 "h": 8, 335 "w": 12, 336 "x": 12, 337 "y": 8 338 }, 339 "hiddenSeries": false, 340 "id": 8, 341 "legend": { 342 "alignAsTable": true, 343 "avg": false, 344 "current": true, 345 "hideEmpty": true, 346 "hideZero": true, 347 "max": false, 348 "min": false, 349 "rightSide": true, 350 "show": true, 351 "total": false, 352 "values": true 353 }, 354 "lines": true, 355 "linewidth": 1, 356 "links": [], 357 "nullPointMode": "null", 358 "options": { 359 "alertThreshold": true 360 }, 361 "paceLength": 10, 362 "percentage": false, 363 "pluginVersion": "9.3.6", 364 "pointradius": 2, 365 "points": false, 366 "renderer": "flot", 367 "seriesOverrides": [], 368 "spaceLength": 10, 369 "stack": false, 370 "steppedLine": false, 371 "targets": [ 372 { 373 "datasource": "Prometheus", 374 "expr": "sum(rate(apiserver_request_total{code=\"409\",resource=~\"[[CustomResourceDefinition]]\",subresource=[[Subresource]]}[$__rate_interval])) by (code, resource, subresource)", 375 "format": "time_series", 376 "intervalFactor": 1, 377 "legendFormat": "{{resource}} {{subresource}}", 378 "refId": "A" 379 } 380 ], 381 "thresholds": [], 382 "timeRegions": [], 383 "title": "Update Conflicts", 384 "tooltip": { 385 "shared": true, 386 "sort": 0, 387 "value_type": "individual" 388 }, 389 "type": "graph", 390 "xaxis": { 391 "mode": "time", 392 "show": true, 393 "values": [] 394 }, 395 "yaxes": [ 396 { 397 "format": "reqps", 398 "label": "", 399 "logBase": 1, 400 "show": true 401 }, 402 { 403 "format": "short", 404 "logBase": 1, 405 "show": true 406 } 407 ], 408 "yaxis": { 409 "align": false 410 } 411 }, 412 { 413 "datasource": "Prometheus", 414 "fieldConfig": { 415 "defaults": { 416 "color": { 417 "mode": "palette-classic" 418 }, 419 "custom": { 420 "axisCenteredZero": false, 421 "axisColorMode": "text", 422 "axisLabel": "", 423 "axisPlacement": "auto", 424 "barAlignment": 0, 425 "drawStyle": "line", 426 "fillOpacity": 10, 427 "gradientMode": "none", 428 "hideFrom": { 429 "legend": false, 430 "tooltip": false, 431 "viz": false 432 }, 433 "lineInterpolation": "linear", 434 "lineWidth": 1, 435 "pointSize": 5, 436 "scaleDistribution": { 437 "type": "linear" 438 }, 439 "showPoints": "never", 440 "spanNulls": false, 441 "stacking": { 442 "group": "A", 443 "mode": "none" 444 }, 445 "thresholdsStyle": { 446 "mode": "off" 447 } 448 }, 449 "mappings": [], 450 "thresholds": { 451 "mode": "absolute", 452 "steps": [ 453 { 454 "color": "green", 455 "value": null 456 }, 457 { 458 "color": "red", 459 "value": 80 460 } 461 ] 462 }, 463 "unit": "ms" 464 }, 465 "overrides": [] 466 }, 467 "gridPos": { 468 "h": 8, 469 "w": 12, 470 "x": 0, 471 "y": 16 472 }, 473 "id": 4, 474 "links": [], 475 "options": { 476 "legend": { 477 "calcs": [ 478 "lastNotNull" 479 ], 480 "displayMode": "table", 481 "placement": "right", 482 "showLegend": true 483 }, 484 "tooltip": { 485 "mode": "multi", 486 "sort": "none" 487 } 488 }, 489 "pluginVersion": "9.3.6", 490 "targets": [ 491 { 492 "datasource": "Prometheus", 493 "editorMode": "code", 494 "expr": "histogram_quantile(0.5, sum(rate(apiserver_request_duration_seconds_bucket{resource=~\"[[CustomResourceDefinition]]\", verb=~\"[[Verb]]\"}[$__rate_interval])) by (resource, subresource, verb, le)) * 1000", 495 "format": "time_series", 496 "interval": "", 497 "intervalFactor": 1, 498 "legendFormat": "{{verb}} {{resource}} {{subresource}}", 499 "range": true, 500 "refId": "A" 501 } 502 ], 503 "title": "Request Latency 50%", 504 "type": "timeseries" 505 }, 506 { 507 "datasource": "Prometheus", 508 "fieldConfig": { 509 "defaults": { 510 "color": { 511 "mode": "palette-classic" 512 }, 513 "custom": { 514 "axisCenteredZero": false, 515 "axisColorMode": "text", 516 "axisLabel": "", 517 "axisPlacement": "auto", 518 "barAlignment": 0, 519 "drawStyle": "line", 520 "fillOpacity": 10, 521 "gradientMode": "none", 522 "hideFrom": { 523 "legend": false, 524 "tooltip": false, 525 "viz": false 526 }, 527 "lineInterpolation": "linear", 528 "lineWidth": 1, 529 "pointSize": 5, 530 "scaleDistribution": { 531 "type": "linear" 532 }, 533 "showPoints": "never", 534 "spanNulls": false, 535 "stacking": { 536 "group": "A", 537 "mode": "none" 538 }, 539 "thresholdsStyle": { 540 "mode": "off" 541 } 542 }, 543 "mappings": [], 544 "thresholds": { 545 "mode": "absolute", 546 "steps": [ 547 { 548 "color": "green", 549 "value": null 550 }, 551 { 552 "color": "red", 553 "value": 80 554 } 555 ] 556 }, 557 "unit": "ms" 558 }, 559 "overrides": [] 560 }, 561 "gridPos": { 562 "h": 8, 563 "w": 12, 564 "x": 12, 565 "y": 16 566 }, 567 "id": 17, 568 "links": [], 569 "options": { 570 "legend": { 571 "calcs": [ 572 "lastNotNull" 573 ], 574 "displayMode": "table", 575 "placement": "right", 576 "showLegend": true 577 }, 578 "tooltip": { 579 "mode": "multi", 580 "sort": "none" 581 } 582 }, 583 "pluginVersion": "9.3.6", 584 "targets": [ 585 { 586 "datasource": "Prometheus", 587 "editorMode": "code", 588 "expr": "histogram_quantile(0.9, sum(rate(apiserver_request_duration_seconds_bucket{resource=~\"[[CustomResourceDefinition]]\", verb=~\"[[Verb]]\"}[$__rate_interval])) by (resource, subresource, verb, le)) * 1000", 589 "format": "time_series", 590 "interval": "", 591 "intervalFactor": 1, 592 "legendFormat": "{{verb}} {{resource}} {{subresource}}", 593 "range": true, 594 "refId": "A" 595 } 596 ], 597 "title": "Request Latency 90%", 598 "type": "timeseries" 599 }, 600 { 601 "datasource": "Prometheus", 602 "fieldConfig": { 603 "defaults": { 604 "color": { 605 "mode": "palette-classic" 606 }, 607 "custom": { 608 "axisCenteredZero": false, 609 "axisColorMode": "text", 610 "axisLabel": "", 611 "axisPlacement": "auto", 612 "barAlignment": 0, 613 "drawStyle": "line", 614 "fillOpacity": 10, 615 "gradientMode": "none", 616 "hideFrom": { 617 "legend": false, 618 "tooltip": false, 619 "viz": false 620 }, 621 "lineInterpolation": "linear", 622 "lineWidth": 1, 623 "pointSize": 5, 624 "scaleDistribution": { 625 "type": "linear" 626 }, 627 "showPoints": "never", 628 "spanNulls": false, 629 "stacking": { 630 "group": "A", 631 "mode": "none" 632 }, 633 "thresholdsStyle": { 634 "mode": "off" 635 } 636 }, 637 "mappings": [], 638 "thresholds": { 639 "mode": "absolute", 640 "steps": [ 641 { 642 "color": "green", 643 "value": null 644 }, 645 { 646 "color": "red", 647 "value": 80 648 } 649 ] 650 }, 651 "unit": "ms" 652 }, 653 "overrides": [] 654 }, 655 "gridPos": { 656 "h": 8, 657 "w": 12, 658 "x": 0, 659 "y": 24 660 }, 661 "id": 18, 662 "links": [], 663 "options": { 664 "legend": { 665 "calcs": [ 666 "lastNotNull" 667 ], 668 "displayMode": "table", 669 "placement": "right", 670 "showLegend": true 671 }, 672 "tooltip": { 673 "mode": "multi", 674 "sort": "none" 675 } 676 }, 677 "pluginVersion": "9.3.6", 678 "targets": [ 679 { 680 "datasource": "Prometheus", 681 "editorMode": "code", 682 "expr": "histogram_quantile(0.99, sum(rate(apiserver_request_duration_seconds_bucket{resource=~\"[[CustomResourceDefinition]]\", verb=~\"[[Verb]]\"}[$__rate_interval])) by (resource, subresource, verb, le)) * 1000", 683 "format": "time_series", 684 "interval": "", 685 "intervalFactor": 1, 686 "legendFormat": "{{verb}} {{resource}} {{subresource}}", 687 "range": true, 688 "refId": "A" 689 } 690 ], 691 "title": "Request Latency 99%", 692 "type": "timeseries" 693 } 694 ], 695 "refresh": "5s", 696 "schemaVersion": 37, 697 "style": "dark", 698 "tags": [ 699 "agones", 700 "controller", 701 "server" 702 ], 703 "templating": { 704 "list": [ 705 { 706 "current": { 707 "selected": true, 708 "text": [ 709 "All" 710 ], 711 "value": [ 712 "$__all" 713 ] 714 }, 715 "hide": 0, 716 "includeAll": true, 717 "label": "CRD", 718 "multi": true, 719 "name": "CustomResourceDefinition", 720 "options": [ 721 { 722 "selected": true, 723 "text": "All", 724 "value": "$__all" 725 }, 726 { 727 "selected": false, 728 "text": "fleetautoscalers", 729 "value": "fleetautoscalers" 730 }, 731 { 732 "selected": false, 733 "text": "fleets", 734 "value": "fleets" 735 }, 736 { 737 "selected": false, 738 "text": "gameservers", 739 "value": "gameservers" 740 }, 741 { 742 "selected": false, 743 "text": "gameserversets", 744 "value": "gameserversets" 745 }, 746 { 747 "selected": false, 748 "text": "gameserverallocations", 749 "value": "gameserverallocations" 750 } 751 ], 752 "query": "fleets, gameservers, gameserversets, gameserverallocations", 753 "queryValue": "", 754 "skipUrlSync": false, 755 "type": "custom" 756 }, 757 { 758 "current": { 759 "selected": true, 760 "text": "\"\"", 761 "value": "\"\"" 762 }, 763 "hide": 0, 764 "includeAll": false, 765 "multi": false, 766 "name": "Subresource", 767 "options": [ 768 { 769 "selected": false, 770 "text": "\"status\"", 771 "value": "\"status\"" 772 }, 773 { 774 "selected": false, 775 "text": "\"scale\"", 776 "value": "\"scale\"" 777 }, 778 { 779 "selected": true, 780 "text": "\"\"", 781 "value": "\"\"" 782 } 783 ], 784 "query": "\"status\", \"scale\", \"\"", 785 "queryValue": "", 786 "skipUrlSync": false, 787 "type": "custom" 788 }, 789 { 790 "current": { 791 "selected": true, 792 "text": [ 793 "All" 794 ], 795 "value": [ 796 "$__all" 797 ] 798 }, 799 "datasource": "Prometheus", 800 "definition": "label_values(apiserver_request_total, verb)", 801 "hide": 0, 802 "includeAll": true, 803 "multi": true, 804 "name": "Verb", 805 "options": [], 806 "query": { 807 "query": "label_values(apiserver_request_total, verb)", 808 "refId": "StandardVariableQuery" 809 }, 810 "refresh": 1, 811 "regex": "/[^WATCH][^LIST]/", 812 "skipUrlSync": false, 813 "sort": 0, 814 "tagValuesQuery": "", 815 "tagsQuery": "", 816 "type": "query", 817 "useTags": false 818 } 819 ] 820 }, 821 "time": { 822 "from": "now-1h", 823 "to": "now" 824 }, 825 "timepicker": { 826 "refresh_intervals": [ 827 "5s", 828 "10s", 829 "30s", 830 "1m", 831 "5m", 832 "15m", 833 "30m", 834 "1h", 835 "2h", 836 "1d" 837 ], 838 "time_options": [ 839 "5m", 840 "15m", 841 "1h", 842 "6h", 843 "12h", 844 "24h", 845 "2d", 846 "7d", 847 "30d" 848 ] 849 }, 850 "timezone": "", 851 "title": "Agones Controller API Server Requests", 852 "uid": "1NHaKICiz", 853 "version": 6, 854 "weekStart": "" 855 }