agones.dev/agones@v1.53.0/build/grafana/dashboard-goclient-workqueues.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-workqueues
    21    namespace: metrics
    22    labels:
    23      grafana_dashboard: '1'
    24  data:
    25    dashboard-agones-goclient-workqueues.json: |-
    26      {
    27        "annotations": {
    28          "list": [
    29            {
    30              "$$hashKey": "object:3802",
    31              "builtIn": 1,
    32              "datasource": "-- Grafana --",
    33              "enable": true,
    34              "hide": true,
    35              "iconColor": "rgba(0, 211, 255, 1)",
    36              "limit": 100,
    37              "name": "Annotations & Alerts",
    38              "showIn": 0,
    39              "type": "dashboard"
    40            }
    41          ]
    42        },
    43        "editable": true,
    44        "gnetId": null,
    45        "graphTooltip": 0,
    46        "id": 6,
    47        "iteration": 1548342576612,
    48        "links": [],
    49        "panels": [
    50          {
    51            "aliasColors": {},
    52            "bars": false,
    53            "dashLength": 10,
    54            "dashes": false,
    55            "datasource": null,
    56            "fill": 1,
    57            "gridPos": {
    58              "h": 9,
    59              "w": 8,
    60              "x": 0,
    61              "y": 0
    62            },
    63            "id": 2,
    64            "legend": {
    65              "avg": false,
    66              "current": false,
    67              "max": false,
    68              "min": false,
    69              "show": true,
    70              "total": false,
    71              "values": false
    72            },
    73            "lines": true,
    74            "linewidth": 1,
    75            "links": [],
    76            "nullPointMode": "null",
    77            "percentage": false,
    78            "pointradius": 5,
    79            "points": false,
    80            "renderer": "flot",
    81            "seriesOverrides": [],
    82            "spaceLength": 10,
    83            "stack": false,
    84            "steppedLine": false,
    85            "targets": [
    86              {
    87                "$$hashKey": "object:4248",
    88                "expr": "clamp_min(agones_k8s_client_workqueue_depth{queue_name=~\"$workqueue\"},0)",
    89                "format": "time_series",
    90                "intervalFactor": 1,
    91                "legendFormat": "{{queue_name}}",
    92                "refId": "A"
    93              }
    94            ],
    95            "thresholds": [],
    96            "timeFrom": null,
    97            "timeShift": null,
    98            "title": "Workqueue depth",
    99            "tooltip": {
   100              "shared": true,
   101              "sort": 0,
   102              "value_type": "individual"
   103            },
   104            "type": "graph",
   105            "xaxis": {
   106              "buckets": null,
   107              "mode": "time",
   108              "name": null,
   109              "show": true,
   110              "values": []
   111            },
   112            "yaxes": [
   113              {
   114                "format": "short",
   115                "label": null,
   116                "logBase": 1,
   117                "max": null,
   118                "min": null,
   119                "show": true
   120              },
   121              {
   122                "format": "short",
   123                "label": null,
   124                "logBase": 1,
   125                "max": null,
   126                "min": null,
   127                "show": true
   128              }
   129            ],
   130            "yaxis": {
   131              "align": false,
   132              "alignLevel": null
   133            }
   134          },
   135          {
   136            "aliasColors": {},
   137            "bars": false,
   138            "dashLength": 10,
   139            "dashes": false,
   140            "datasource": null,
   141            "fill": 1,
   142            "gridPos": {
   143              "h": 9,
   144              "w": 8,
   145              "x": 8,
   146              "y": 0
   147            },
   148            "id": 4,
   149            "legend": {
   150              "avg": false,
   151              "current": false,
   152              "max": false,
   153              "min": false,
   154              "show": true,
   155              "total": false,
   156              "values": false
   157            },
   158            "lines": true,
   159            "linewidth": 1,
   160            "links": [],
   161            "nullPointMode": "null",
   162            "percentage": false,
   163            "pointradius": 5,
   164            "points": false,
   165            "renderer": "flot",
   166            "seriesOverrides": [],
   167            "spaceLength": 10,
   168            "stack": false,
   169            "steppedLine": false,
   170            "targets": [
   171              {
   172                "$$hashKey": "object:3968",
   173                "expr": "rate(agones_k8s_client_workqueue_items_total{queue_name=~\"$workqueue\"}[1m])",
   174                "format": "time_series",
   175                "intervalFactor": 1,
   176                "legendFormat": "{{queue_name}}",
   177                "refId": "A"
   178              }
   179            ],
   180            "thresholds": [],
   181            "timeFrom": null,
   182            "timeShift": null,
   183            "title": "Workqueue items rate",
   184            "tooltip": {
   185              "shared": true,
   186              "sort": 0,
   187              "value_type": "individual"
   188            },
   189            "type": "graph",
   190            "xaxis": {
   191              "buckets": null,
   192              "mode": "time",
   193              "name": null,
   194              "show": true,
   195              "values": []
   196            },
   197            "yaxes": [
   198              {
   199                "format": "ops",
   200                "label": null,
   201                "logBase": 1,
   202                "max": null,
   203                "min": null,
   204                "show": true
   205              },
   206              {
   207                "format": "short",
   208                "label": null,
   209                "logBase": 1,
   210                "max": null,
   211                "min": null,
   212                "show": true
   213              }
   214            ],
   215            "yaxis": {
   216              "align": false,
   217              "alignLevel": null
   218            }
   219          },
   220          {
   221            "aliasColors": {},
   222            "bars": false,
   223            "dashLength": 10,
   224            "dashes": false,
   225            "datasource": null,
   226            "fill": 1,
   227            "gridPos": {
   228              "h": 9,
   229              "w": 8,
   230              "x": 16,
   231              "y": 0
   232            },
   233            "id": 8,
   234            "legend": {
   235              "avg": false,
   236              "current": false,
   237              "max": false,
   238              "min": false,
   239              "show": true,
   240              "total": false,
   241              "values": false
   242            },
   243            "lines": true,
   244            "linewidth": 1,
   245            "links": [],
   246            "nullPointMode": "null",
   247            "percentage": false,
   248            "pointradius": 5,
   249            "points": false,
   250            "renderer": "flot",
   251            "seriesOverrides": [],
   252            "spaceLength": 10,
   253            "stack": false,
   254            "steppedLine": false,
   255            "targets": [
   256              {
   257                "$$hashKey": "object:4382",
   258                "expr": "rate(agones_k8s_client_workqueue_retries_total{queue_name=~\"$workqueue\"}[1m])",
   259                "format": "time_series",
   260                "intervalFactor": 1,
   261                "legendFormat": "{{queue_name}}",
   262                "refId": "A"
   263              }
   264            ],
   265            "thresholds": [],
   266            "timeFrom": null,
   267            "timeShift": null,
   268            "title": "Workqueue retry items rate",
   269            "tooltip": {
   270              "shared": true,
   271              "sort": 0,
   272              "value_type": "individual"
   273            },
   274            "type": "graph",
   275            "xaxis": {
   276              "buckets": null,
   277              "mode": "time",
   278              "name": null,
   279              "show": true,
   280              "values": []
   281            },
   282            "yaxes": [
   283              {
   284                "format": "ops",
   285                "label": null,
   286                "logBase": 1,
   287                "max": null,
   288                "min": null,
   289                "show": true
   290              },
   291              {
   292                "format": "short",
   293                "label": null,
   294                "logBase": 1,
   295                "max": null,
   296                "min": null,
   297                "show": true
   298              }
   299            ],
   300            "yaxis": {
   301              "align": false,
   302              "alignLevel": null
   303            }
   304          },
   305          {
   306            "aliasColors": {},
   307            "bars": false,
   308            "dashLength": 10,
   309            "dashes": false,
   310            "datasource": null,
   311            "description": "How long an item stays in the work queue.",
   312            "fill": 1,
   313            "gridPos": {
   314              "h": 9,
   315              "w": 12,
   316              "x": 0,
   317              "y": 9
   318            },
   319            "id": 6,
   320            "legend": {
   321              "avg": false,
   322              "current": false,
   323              "max": false,
   324              "min": false,
   325              "show": true,
   326              "total": false,
   327              "values": false
   328            },
   329            "lines": true,
   330            "linewidth": 1,
   331            "links": [],
   332            "nullPointMode": "null",
   333            "percentage": false,
   334            "pointradius": 5,
   335            "points": false,
   336            "renderer": "flot",
   337            "seriesOverrides": [],
   338            "spaceLength": 10,
   339            "stack": false,
   340            "steppedLine": false,
   341            "targets": [
   342              {
   343                "$$hashKey": "object:4436",
   344                "expr": "sum(rate(agones_k8s_client_workqueue_latency_seconds_sum{queue_name=~\"$workqueue\"}[1m]) / rate(agones_k8s_client_workqueue_latency_seconds_count{queue_name=~\"$workqueue\"}[1m])) by(queue_name)",
   345                "format": "time_series",
   346                "intervalFactor": 1,
   347                "legendFormat": "{{queue_name}}",
   348                "refId": "A"
   349              }
   350            ],
   351            "thresholds": [],
   352            "timeFrom": null,
   353            "timeShift": null,
   354            "title": "Workqueue average items duration",
   355            "tooltip": {
   356              "shared": true,
   357              "sort": 0,
   358              "value_type": "individual"
   359            },
   360            "type": "graph",
   361            "xaxis": {
   362              "buckets": null,
   363              "mode": "time",
   364              "name": null,
   365              "show": true,
   366              "values": []
   367            },
   368            "yaxes": [
   369              {
   370                "format": "s",
   371                "label": null,
   372                "logBase": 1,
   373                "max": null,
   374                "min": null,
   375                "show": true
   376              },
   377              {
   378                "format": "short",
   379                "label": null,
   380                "logBase": 1,
   381                "max": null,
   382                "min": null,
   383                "show": true
   384              }
   385            ],
   386            "yaxis": {
   387              "align": false,
   388              "alignLevel": null
   389            }
   390          },
   391          {
   392            "aliasColors": {},
   393            "bars": false,
   394            "dashLength": 10,
   395            "dashes": false,
   396            "datasource": null,
   397            "description": "How long processing an item from the work queue takes.",
   398            "fill": 1,
   399            "gridPos": {
   400              "h": 9,
   401              "w": 12,
   402              "x": 12,
   403              "y": 9
   404            },
   405            "id": 7,
   406            "legend": {
   407              "avg": false,
   408              "current": false,
   409              "max": false,
   410              "min": false,
   411              "show": true,
   412              "total": false,
   413              "values": false
   414            },
   415            "lines": true,
   416            "linewidth": 1,
   417            "links": [],
   418            "nullPointMode": "null",
   419            "percentage": false,
   420            "pointradius": 5,
   421            "points": false,
   422            "renderer": "flot",
   423            "seriesOverrides": [],
   424            "spaceLength": 10,
   425            "stack": false,
   426            "steppedLine": false,
   427            "targets": [
   428              {
   429                "$$hashKey": "object:4490",
   430                "expr": "sum(rate(agones_k8s_client_workqueue_work_duration_seconds_sum{queue_name=~\"$workqueue\"}[1m]) / rate(agones_k8s_client_workqueue_work_duration_seconds_count{queue_name=~\"$workqueue\"}[1m])) by(queue_name)",
   431                "format": "time_series",
   432                "intervalFactor": 1,
   433                "legendFormat": "{{queue_name}}",
   434                "refId": "A"
   435              }
   436            ],
   437            "thresholds": [],
   438            "timeFrom": null,
   439            "timeShift": null,
   440            "title": "Workqueue average work duration",
   441            "tooltip": {
   442              "shared": true,
   443              "sort": 0,
   444              "value_type": "individual"
   445            },
   446            "type": "graph",
   447            "xaxis": {
   448              "buckets": null,
   449              "mode": "time",
   450              "name": null,
   451              "show": true,
   452              "values": []
   453            },
   454            "yaxes": [
   455              {
   456                "format": "s",
   457                "label": null,
   458                "logBase": 1,
   459                "max": null,
   460                "min": null,
   461                "show": true
   462              },
   463              {
   464                "format": "short",
   465                "label": null,
   466                "logBase": 1,
   467                "max": null,
   468                "min": null,
   469                "show": true
   470              }
   471            ],
   472            "yaxis": {
   473              "align": false,
   474              "alignLevel": null
   475            }
   476          }
   477        ],
   478        "refresh": "10s",
   479        "schemaVersion": 16,
   480        "style": "dark",
   481        "tags": [
   482          "agones",
   483          "client-go",
   484          "controller"
   485        ],
   486        "templating": {
   487          "list": [
   488            {
   489              "allValue": ".*",
   490              "current": {
   491                "text": "All",
   492                "value": [
   493                  "$__all"
   494                ]
   495              },
   496              "datasource": "Prometheus",
   497              "hide": 0,
   498              "includeAll": true,
   499              "label": "workqueue",
   500              "multi": true,
   501              "name": "workqueue",
   502              "options": [],
   503              "query": "label_values(agones_k8s_client_workqueue_items_total,queue_name)",
   504              "refresh": 2,
   505              "regex": "",
   506              "sort": 0,
   507              "tagValuesQuery": "",
   508              "tags": [],
   509              "tagsQuery": "",
   510              "type": "query",
   511              "useTags": false
   512            }
   513          ]
   514        },
   515        "time": {
   516          "from": "now-30m",
   517          "to": "now"
   518        },
   519        "timepicker": {
   520          "refresh_intervals": [
   521            "5s",
   522            "10s",
   523            "30s",
   524            "1m",
   525            "5m",
   526            "15m",
   527            "30m",
   528            "1h",
   529            "2h",
   530            "1d"
   531          ],
   532          "time_options": [
   533            "5m",
   534            "15m",
   535            "1h",
   536            "6h",
   537            "12h",
   538            "24h",
   539            "2d",
   540            "7d",
   541            "30d"
   542          ]
   543        },
   544        "timezone": "",
   545        "title": "Agones Controller go-client workqueue",
   546        "uid": "bztnCilik",
   547        "version": 10
   548      }