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