agones.dev/agones@v1.54.0/build/grafana/dashboard-goclient-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-goclient-requests
    21    namespace: metrics
    22    labels:
    23      grafana_dashboard: '1'
    24  data:
    25    dashboard-agones-goclient-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": null,
    61            "fill": 1,
    62            "fillGradient": 0,
    63            "gridPos": {
    64              "h": 9,
    65              "w": 12,
    66              "x": 0,
    67              "y": 0
    68            },
    69            "hiddenSeries": false,
    70            "id": 4,
    71            "legend": {
    72              "avg": false,
    73              "current": false,
    74              "hideEmpty": true,
    75              "max": false,
    76              "min": false,
    77              "show": true,
    78              "total": false,
    79              "values": false
    80            },
    81            "lines": true,
    82            "linewidth": 1,
    83            "links": [],
    84            "nullPointMode": "null",
    85            "options": {
    86              "alertThreshold": true
    87            },
    88            "percentage": false,
    89            "pluginVersion": "9.3.6",
    90            "pointradius": 5,
    91            "points": false,
    92            "renderer": "flot",
    93            "seriesOverrides": [],
    94            "spaceLength": 10,
    95            "stack": false,
    96            "steppedLine": false,
    97            "targets": [
    98              {
    99                "editorMode": "code",
   100                "expr": "rate(agones_k8s_client_http_request_total{$DevRole}[5m])",
   101                "format": "time_series",
   102                "intervalFactor": 1,
   103                "legendFormat": "{{status_code}} {{verb}}",
   104                "range": true,
   105                "refId": "A"
   106              }
   107            ],
   108            "thresholds": [],
   109            "timeRegions": [],
   110            "title": "Requests rate by status",
   111            "tooltip": {
   112              "shared": true,
   113              "sort": 0,
   114              "value_type": "individual"
   115            },
   116            "type": "graph",
   117            "xaxis": {
   118              "mode": "time",
   119              "show": true,
   120              "values": []
   121            },
   122            "yaxes": [
   123              {
   124                "$$hashKey": "object:373",
   125                "format": "short",
   126                "logBase": 1,
   127                "show": true
   128              },
   129              {
   130                "$$hashKey": "object:374",
   131                "format": "short",
   132                "logBase": 1,
   133                "show": true
   134              }
   135            ],
   136            "yaxis": {
   137              "align": false
   138            }
   139          },
   140          {
   141            "aliasColors": {},
   142            "bars": false,
   143            "dashLength": 10,
   144            "dashes": false,
   145            "datasource": null,
   146            "fill": 1,
   147            "fillGradient": 0,
   148            "gridPos": {
   149              "h": 9,
   150              "w": 12,
   151              "x": 12,
   152              "y": 0
   153            },
   154            "hiddenSeries": false,
   155            "id": 6,
   156            "legend": {
   157              "alignAsTable": false,
   158              "avg": false,
   159              "current": false,
   160              "hideEmpty": true,
   161              "hideZero": true,
   162              "max": false,
   163              "min": false,
   164              "rightSide": false,
   165              "show": true,
   166              "total": false,
   167              "values": false
   168            },
   169            "lines": true,
   170            "linewidth": 1,
   171            "links": [],
   172            "nullPointMode": "null",
   173            "options": {
   174              "alertThreshold": true
   175            },
   176            "percentage": false,
   177            "pluginVersion": "9.3.6",
   178            "pointradius": 5,
   179            "points": false,
   180            "renderer": "flot",
   181            "seriesOverrides": [],
   182            "spaceLength": 10,
   183            "stack": false,
   184            "steppedLine": false,
   185            "targets": [
   186              {
   187                "editorMode": "code",
   188                "expr": "sum(rate(agones_k8s_client_http_request_duration_seconds_count{$DevRole}[5m])) by (endpoint,verb)",
   189                "format": "time_series",
   190                "intervalFactor": 1,
   191                "legendFormat": "{{verb}} {{endpoint}}",
   192                "range": true,
   193                "refId": "A"
   194              }
   195            ],
   196            "thresholds": [],
   197            "timeRegions": [],
   198            "title": "Requests rate by verb and path",
   199            "tooltip": {
   200              "shared": true,
   201              "sort": 0,
   202              "value_type": "individual"
   203            },
   204            "type": "graph",
   205            "xaxis": {
   206              "mode": "time",
   207              "show": true,
   208              "values": []
   209            },
   210            "yaxes": [
   211              {
   212                "$$hashKey": "object:2151",
   213                "format": "short",
   214                "logBase": 1,
   215                "show": true
   216              },
   217              {
   218                "$$hashKey": "object:2152",
   219                "format": "short",
   220                "logBase": 1,
   221                "show": true
   222              }
   223            ],
   224            "yaxis": {
   225              "align": false
   226            }
   227          },
   228          {
   229            "aliasColors": {},
   230            "bars": false,
   231            "dashLength": 10,
   232            "dashes": false,
   233            "datasource": null,
   234            "fill": 1,
   235            "fillGradient": 0,
   236            "gridPos": {
   237              "h": 9,
   238              "w": 24,
   239              "x": 0,
   240              "y": 9
   241            },
   242            "hiddenSeries": false,
   243            "id": 2,
   244            "legend": {
   245              "alignAsTable": true,
   246              "avg": true,
   247              "current": false,
   248              "hideEmpty": true,
   249              "hideZero": false,
   250              "max": true,
   251              "min": true,
   252              "rightSide": true,
   253              "show": true,
   254              "total": false,
   255              "values": true
   256            },
   257            "lines": true,
   258            "linewidth": 1,
   259            "links": [],
   260            "nullPointMode": "null",
   261            "options": {
   262              "alertThreshold": true
   263            },
   264            "percentage": false,
   265            "pluginVersion": "9.3.6",
   266            "pointradius": 5,
   267            "points": false,
   268            "renderer": "flot",
   269            "seriesOverrides": [],
   270            "spaceLength": 10,
   271            "stack": false,
   272            "steppedLine": false,
   273            "targets": [
   274              {
   275                "editorMode": "code",
   276                "expr": "sum(rate(agones_k8s_client_http_request_duration_seconds_sum{$DevRole}[5m]) / rate(agones_k8s_client_http_request_duration_seconds_count{$DevRole}[5m])) by (endpoint,verb)",
   277                "format": "time_series",
   278                "intervalFactor": 1,
   279                "legendFormat": "{{verb}} {{endpoint}}",
   280                "range": true,
   281                "refId": "A"
   282              }
   283            ],
   284            "thresholds": [],
   285            "timeRegions": [],
   286            "title": "Average request duration",
   287            "tooltip": {
   288              "shared": true,
   289              "sort": 0,
   290              "value_type": "individual"
   291            },
   292            "type": "graph",
   293            "xaxis": {
   294              "mode": "time",
   295              "show": true,
   296              "values": []
   297            },
   298            "yaxes": [
   299              {
   300                "$$hashKey": "object:2301",
   301                "format": "s",
   302                "logBase": 1,
   303                "show": true
   304              },
   305              {
   306                "$$hashKey": "object:2302",
   307                "format": "short",
   308                "logBase": 1,
   309                "show": true
   310              }
   311            ],
   312            "yaxis": {
   313              "align": false
   314            }
   315          }
   316        ],
   317        "refresh": "10s",
   318        "schemaVersion": 37,
   319        "style": "dark",
   320        "tags": [
   321          "agones",
   322          "controller",
   323          "client-go"
   324        ],
   325        "templating": {
   326          "list": [
   327            {
   328              "allValue": " ",
   329              "current": {
   330                "selected": true,
   331                "text": "All",
   332                "value": "$__all"
   333              },
   334              "hide": 0,
   335              "includeAll": true,
   336              "label": "DevRole",
   337              "multi": false,
   338              "name": "DevRole",
   339              "options": [
   340                {
   341                  "selected": true,
   342                  "text": "All",
   343                  "value": "$__all"
   344                },
   345                {
   346                  "selected": false,
   347                  "text": "controller",
   348                  "value": "agones_dev_role=\"controller\""
   349                },
   350                {
   351                  "selected": false,
   352                  "text": "allocator",
   353                  "value": "multicluster_agones_dev_role=\"allocator\""
   354                },
   355                {
   356                  "selected": false,
   357                  "text": "extensions",
   358                  "value": "agones_dev_role=\"extensions\""
   359                }
   360              ],
   361              "query": "controller : agones_dev_role=\"controller\", allocator : multicluster_agones_dev_role=\"allocator\", extensions : agones_dev_role=\"extensions\"",
   362              "queryValue": "",
   363              "skipUrlSync": false,
   364              "type": "custom"
   365            }
   366          ]
   367        },
   368        "time": {
   369          "from": "now-30m",
   370          "to": "now"
   371        },
   372        "timepicker": {
   373          "refresh_intervals": [
   374            "5s",
   375            "10s",
   376            "30s",
   377            "1m",
   378            "5m",
   379            "15m",
   380            "30m",
   381            "1h",
   382            "2h",
   383            "1d"
   384          ],
   385          "time_options": [
   386            "5m",
   387            "15m",
   388            "1h",
   389            "6h",
   390            "12h",
   391            "24h",
   392            "2d",
   393            "7d",
   394            "30d"
   395          ]
   396        },
   397        "timezone": "",
   398        "title": "Agones Controller go-client requests",
   399        "uid": "9VRr_m_iz",
   400        "version": 1,
   401        "weekStart": ""
   402      }