agones.dev/agones@v1.53.0/build/grafana/dashboard-extensions-usage.yaml (about)

     1  ---
     2  # Copyright 2023 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-extensions-usage
    21    namespace: metrics
    22    labels:
    23      grafana_dashboard: '1'
    24  data:
    25    dashboard-agones-extensions-usage.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        "id": 11,
    53        "links": [],
    54        "liveNow": false,
    55        "panels": [
    56          {
    57            "datasource": "Prometheus",
    58            "fieldConfig": {
    59              "defaults": {
    60                "color": {
    61                  "mode": "thresholds"
    62                },
    63                "mappings": [],
    64                "thresholds": {
    65                  "mode": "absolute",
    66                  "steps": [
    67                    {
    68                      "color": "green",
    69                      "value": null
    70                    },
    71                    {
    72                      "color": "red",
    73                      "value": 80
    74                    }
    75                  ]
    76                }
    77              },
    78              "overrides": []
    79            },
    80            "gridPos": {
    81              "h": 6,
    82              "w": 6,
    83              "x": 0,
    84              "y": 0
    85            },
    86            "id": 2,
    87            "options": {
    88              "colorMode": "none",
    89              "graphMode": "none",
    90              "justifyMode": "auto",
    91              "orientation": "auto",
    92              "reduceOptions": {
    93                "calcs": [
    94                  "lastNotNull"
    95                ],
    96                "fields": "",
    97                "values": false
    98              },
    99              "text": {},
   100              "textMode": "value_and_name"
   101            },
   102            "pluginVersion": "9.3.6",
   103            "targets": [
   104              {
   105                "datasource": "Prometheus",
   106                "editorMode": "code",
   107                "exemplar": false,
   108                "expr": "process_open_fds{app=\"agones\",kubernetes_pod_name=~\"agones-extensions.*\"}",
   109                "instant": true,
   110                "legendFormat": "{{kubernetes_pod_name}}",
   111                "range": false,
   112                "refId": "A"
   113              }
   114            ],
   115            "title": "Extensions Open File Descriptor Count",
   116            "type": "stat"
   117          },
   118          {
   119            "datasource": "Prometheus",
   120            "fieldConfig": {
   121              "defaults": {
   122                "color": {
   123                  "mode": "thresholds"
   124                },
   125                "mappings": [
   126                  {
   127                    "options": {
   128                      "null": {
   129                        "index": 0,
   130                        "text": "N/A"
   131                      }
   132                    },
   133                    "type": "value"
   134                  }
   135                ],
   136                "thresholds": {
   137                  "mode": "absolute",
   138                  "steps": [
   139                    {
   140                      "color": "green",
   141                      "value": null
   142                    },
   143                    {
   144                      "color": "red",
   145                      "value": 80
   146                    }
   147                  ]
   148                },
   149                "unit": "dateTimeFromNow"
   150              },
   151              "overrides": []
   152            },
   153            "gridPos": {
   154              "h": 6,
   155              "w": 7,
   156              "x": 6,
   157              "y": 0
   158            },
   159            "id": 4,
   160            "maxDataPoints": 100,
   161            "options": {
   162              "colorMode": "none",
   163              "graphMode": "none",
   164              "justifyMode": "auto",
   165              "orientation": "vertical",
   166              "reduceOptions": {
   167                "calcs": [
   168                  "mean"
   169                ],
   170                "fields": "",
   171                "values": false
   172              },
   173              "text": {},
   174              "textMode": "value_and_name"
   175            },
   176            "pluginVersion": "9.3.6",
   177            "targets": [
   178              {
   179                "datasource": "Prometheus",
   180                "editorMode": "code",
   181                "exemplar": false,
   182                "expr": "go_memstats_last_gc_time_seconds{app=\"agones\",agones_dev_role=\"extensions\"} * 1000",
   183                "instant": true,
   184                "legendFormat": "{{kubernetes_pod_name}}",
   185                "range": false,
   186                "refId": "A"
   187              }
   188            ],
   189            "title": "Last Go GC",
   190            "type": "stat"
   191          },
   192          {
   193            "datasource": "Prometheus",
   194            "fieldConfig": {
   195              "defaults": {
   196                "color": {
   197                  "mode": "palette-classic"
   198                },
   199                "custom": {
   200                  "axisCenteredZero": false,
   201                  "axisColorMode": "text",
   202                  "axisLabel": "",
   203                  "axisPlacement": "auto",
   204                  "barAlignment": 0,
   205                  "drawStyle": "line",
   206                  "fillOpacity": 25,
   207                  "gradientMode": "none",
   208                  "hideFrom": {
   209                    "legend": false,
   210                    "tooltip": false,
   211                    "viz": false
   212                  },
   213                  "lineInterpolation": "linear",
   214                  "lineStyle": {
   215                    "fill": "solid"
   216                  },
   217                  "lineWidth": 1,
   218                  "pointSize": 5,
   219                  "scaleDistribution": {
   220                    "type": "linear"
   221                  },
   222                  "showPoints": "never",
   223                  "spanNulls": false,
   224                  "stacking": {
   225                    "group": "A",
   226                    "mode": "none"
   227                  },
   228                  "thresholdsStyle": {
   229                    "mode": "off"
   230                  }
   231                },
   232                "mappings": [],
   233                "thresholds": {
   234                  "mode": "absolute",
   235                  "steps": [
   236                    {
   237                      "color": "green",
   238                      "value": null
   239                    },
   240                    {
   241                      "color": "red",
   242                      "value": 80
   243                    }
   244                  ]
   245                },
   246                "unit": "decbytes"
   247              },
   248              "overrides": []
   249            },
   250            "gridPos": {
   251              "h": 14,
   252              "w": 11,
   253              "x": 13,
   254              "y": 0
   255            },
   256            "id": 6,
   257            "options": {
   258              "legend": {
   259                "calcs": [
   260                  "last",
   261                  "min",
   262                  "max",
   263                  "mean"
   264                ],
   265                "displayMode": "table",
   266                "placement": "bottom",
   267                "showLegend": true
   268              },
   269              "tooltip": {
   270                "mode": "single",
   271                "sort": "none"
   272              }
   273            },
   274            "targets": [
   275              {
   276                "datasource": "Prometheus",
   277                "editorMode": "code",
   278                "exemplar": false,
   279                "expr": "process_resident_memory_bytes{app=\"agones\",kubernetes_pod_name=~\"agones-extensions.*\"}",
   280                "instant": false,
   281                "legendFormat": "{{kubernetes_pod_name}} resident",
   282                "range": true,
   283                "refId": "A"
   284              },
   285              {
   286                "datasource": "Prometheus",
   287                "editorMode": "code",
   288                "expr": "process_virtual_memory_bytes{app=\"agones\",agones_dev_role=\"extensions\"}",
   289                "hide": false,
   290                "legendFormat": "{{kubernetes_pod_name}} virtual",
   291                "range": true,
   292                "refId": "B"
   293              },
   294              {
   295                "datasource": "Prometheus",
   296                "editorMode": "code",
   297                "expr": "go_memstats_alloc_bytes{app=\"agones\",agones_dev_role=\"extensions\"}",
   298                "hide": false,
   299                "legendFormat": "{{kubernetes_pod_name}} go_alloc",
   300                "range": true,
   301                "refId": "C"
   302              }
   303            ],
   304            "title": "Extensions Memory Used",
   305            "type": "timeseries"
   306          },
   307          {
   308            "datasource": "Prometheus",
   309            "fieldConfig": {
   310              "defaults": {
   311                "color": {
   312                  "mode": "palette-classic"
   313                },
   314                "custom": {
   315                  "axisCenteredZero": false,
   316                  "axisColorMode": "text",
   317                  "axisLabel": "",
   318                  "axisPlacement": "auto",
   319                  "barAlignment": 0,
   320                  "drawStyle": "bars",
   321                  "fillOpacity": 40,
   322                  "gradientMode": "none",
   323                  "hideFrom": {
   324                    "legend": false,
   325                    "tooltip": false,
   326                    "viz": false
   327                  },
   328                  "lineInterpolation": "linear",
   329                  "lineWidth": 1,
   330                  "pointSize": 5,
   331                  "scaleDistribution": {
   332                    "type": "linear"
   333                  },
   334                  "showPoints": "never",
   335                  "spanNulls": false,
   336                  "stacking": {
   337                    "group": "A",
   338                    "mode": "none"
   339                  },
   340                  "thresholdsStyle": {
   341                    "mode": "off"
   342                  }
   343                },
   344                "mappings": [],
   345                "thresholds": {
   346                  "mode": "absolute",
   347                  "steps": [
   348                    {
   349                      "color": "green",
   350                      "value": null
   351                    },
   352                    {
   353                      "color": "red",
   354                      "value": 80
   355                    }
   356                  ]
   357                }
   358              },
   359              "overrides": []
   360            },
   361            "gridPos": {
   362              "h": 10,
   363              "w": 13,
   364              "x": 0,
   365              "y": 6
   366            },
   367            "id": 10,
   368            "options": {
   369              "legend": {
   370                "calcs": [
   371                  "last",
   372                  "min",
   373                  "max",
   374                  "mean"
   375                ],
   376                "displayMode": "table",
   377                "placement": "bottom",
   378                "showLegend": true
   379              },
   380              "tooltip": {
   381                "mode": "single",
   382                "sort": "none"
   383              }
   384            },
   385            "targets": [
   386              {
   387                "datasource": "Prometheus",
   388                "editorMode": "code",
   389                "expr": "go_goroutines{app=\"agones\",agones_dev_role=\"extensions\"}",
   390                "legendFormat": "{{kubernetes_pod_name}} go_routines",
   391                "range": true,
   392                "refId": "A"
   393              },
   394              {
   395                "datasource": "Prometheus",
   396                "editorMode": "code",
   397                "expr": "go_threads{app=\"agones\",agones_dev_role=\"extensions\"}",
   398                "hide": false,
   399                "legendFormat": "{{kubernetes_pod_name}} threads",
   400                "range": true,
   401                "refId": "B"
   402              }
   403            ],
   404            "title": "Extensions Go Routines & Threads Count",
   405            "type": "timeseries"
   406          },
   407          {
   408            "datasource": "Prometheus",
   409            "description": "",
   410            "fieldConfig": {
   411              "defaults": {
   412                "color": {
   413                  "mode": "palette-classic"
   414                },
   415                "custom": {
   416                  "axisCenteredZero": false,
   417                  "axisColorMode": "text",
   418                  "axisLabel": "",
   419                  "axisPlacement": "auto",
   420                  "barAlignment": 0,
   421                  "drawStyle": "line",
   422                  "fillOpacity": 25,
   423                  "gradientMode": "none",
   424                  "hideFrom": {
   425                    "legend": false,
   426                    "tooltip": false,
   427                    "viz": false
   428                  },
   429                  "lineInterpolation": "linear",
   430                  "lineStyle": {
   431                    "fill": "solid"
   432                  },
   433                  "lineWidth": 1,
   434                  "pointSize": 5,
   435                  "scaleDistribution": {
   436                    "type": "linear"
   437                  },
   438                  "showPoints": "never",
   439                  "spanNulls": false,
   440                  "stacking": {
   441                    "group": "A",
   442                    "mode": "none"
   443                  },
   444                  "thresholdsStyle": {
   445                    "mode": "off"
   446                  }
   447                },
   448                "mappings": [],
   449                "thresholds": {
   450                  "mode": "absolute",
   451                  "steps": [
   452                    {
   453                      "color": "green",
   454                      "value": null
   455                    },
   456                    {
   457                      "color": "red",
   458                      "value": 80
   459                    }
   460                  ]
   461                },
   462                "unit": "percentunit"
   463              },
   464              "overrides": []
   465            },
   466            "gridPos": {
   467              "h": 12,
   468              "w": 11,
   469              "x": 13,
   470              "y": 14
   471            },
   472            "id": 14,
   473            "options": {
   474              "legend": {
   475                "calcs": [
   476                  "last",
   477                  "min",
   478                  "max",
   479                  "mean"
   480                ],
   481                "displayMode": "table",
   482                "placement": "bottom",
   483                "showLegend": true
   484              },
   485              "tooltip": {
   486                "mode": "single",
   487                "sort": "none"
   488              }
   489            },
   490            "targets": [
   491              {
   492                "datasource": "Prometheus",
   493                "editorMode": "code",
   494                "expr": "sum (irate (process_cpu_seconds_total{app=\"agones\",agones_dev_role=\"extensions\"}[1m])) by (kubernetes_pod_name)",
   495                "legendFormat": "{{kubernetes_pod_name}}",
   496                "range": true,
   497                "refId": "A"
   498              }
   499            ],
   500            "title": "Controller CPU Used (% of core)",
   501            "type": "timeseries"
   502          },
   503          {
   504            "datasource": "Prometheus",
   505            "fieldConfig": {
   506              "defaults": {
   507                "color": {
   508                  "mode": "palette-classic"
   509                },
   510                "custom": {
   511                  "axisCenteredZero": false,
   512                  "axisColorMode": "text",
   513                  "axisLabel": "",
   514                  "axisPlacement": "auto",
   515                  "barAlignment": 0,
   516                  "drawStyle": "line",
   517                  "fillOpacity": 25,
   518                  "gradientMode": "none",
   519                  "hideFrom": {
   520                    "legend": false,
   521                    "tooltip": false,
   522                    "viz": false
   523                  },
   524                  "lineInterpolation": "linear",
   525                  "lineWidth": 1,
   526                  "pointSize": 5,
   527                  "scaleDistribution": {
   528                    "type": "linear"
   529                  },
   530                  "showPoints": "never",
   531                  "spanNulls": false,
   532                  "stacking": {
   533                    "group": "A",
   534                    "mode": "none"
   535                  },
   536                  "thresholdsStyle": {
   537                    "mode": "off"
   538                  }
   539                },
   540                "mappings": [],
   541                "noValue": "N/A",
   542                "thresholds": {
   543                  "mode": "absolute",
   544                  "steps": [
   545                    {
   546                      "color": "green",
   547                      "value": null
   548                    },
   549                    {
   550                      "color": "red",
   551                      "value": 80
   552                    }
   553                  ]
   554                },
   555                "unit": "s"
   556              },
   557              "overrides": []
   558            },
   559            "gridPos": {
   560              "h": 10,
   561              "w": 13,
   562              "x": 0,
   563              "y": 16
   564            },
   565            "id": 12,
   566            "options": {
   567              "legend": {
   568                "calcs": [
   569                  "last",
   570                  "min",
   571                  "max",
   572                  "mean"
   573                ],
   574                "displayMode": "table",
   575                "placement": "bottom",
   576                "showLegend": true
   577              },
   578              "tooltip": {
   579                "mode": "single",
   580                "sort": "none"
   581              }
   582            },
   583            "targets": [
   584              {
   585                "datasource": "Prometheus",
   586                "editorMode": "code",
   587                "expr": " rate(go_gc_duration_seconds_sum{app=\"agones\",agones_dev_role=\"extensions\"}[5m]) / rate(go_gc_duration_seconds_count{app=\"agones\",agones_dev_role=\"extensions\"}[5m])",
   588                "legendFormat": "{{kubernetes_pod_name}} duration",
   589                "range": true,
   590                "refId": "A"
   591              }
   592            ],
   593            "title": "Average Go GC Duration",
   594            "type": "timeseries"
   595          }
   596        ],
   597        "refresh": false,
   598        "schemaVersion": 37,
   599        "style": "dark",
   600        "tags": [
   601          "controller"
   602        ],
   603        "templating": {
   604          "list": []
   605        },
   606        "time": {
   607          "from": "now-30m",
   608          "to": "now"
   609        },
   610        "timepicker": {},
   611        "timezone": "",
   612        "title": "Alpha - Agones Extensions Resource Usage",
   613        "uid": "XmpWbRb4z",
   614        "version": 24,
   615        "weekStart": ""
   616      }