github.com/verrazzano/verrazzano@v1.7.1/platform-operator/thirdparty/charts/prometheus-community/kube-prometheus-stack/templates/grafana/dashboards-1.14/grafana-overview.yaml (about)

     1  {{- /*
     2  Generated from 'grafana-overview' from https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/main/manifests/grafana-dashboardDefinitions.yaml
     3  Do not change in-place! In order to change this file first read following link:
     4  https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack/hack
     5  */ -}}
     6  {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }}
     7  {{- if and (or .Values.grafana.enabled .Values.grafana.forceDeployDashboards) (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.grafana.defaultDashboardsEnabled }}
     8  apiVersion: v1
     9  kind: ConfigMap
    10  metadata:
    11    namespace: {{ template "kube-prometheus-stack-grafana.namespace" . }}
    12    name: {{ printf "%s-%s" (include "kube-prometheus-stack.fullname" $) "grafana-overview" | trunc 63 | trimSuffix "-" }}
    13    annotations:
    14  {{ toYaml .Values.grafana.sidecar.dashboards.annotations | indent 4 }}
    15    labels:
    16      {{- if $.Values.grafana.sidecar.dashboards.label }}
    17      {{ $.Values.grafana.sidecar.dashboards.label }}: {{ ternary $.Values.grafana.sidecar.dashboards.labelValue "1" (not (empty $.Values.grafana.sidecar.dashboards.labelValue)) | quote }}
    18      {{- end }}
    19      app: {{ template "kube-prometheus-stack.name" $ }}-grafana
    20  {{ include "kube-prometheus-stack.labels" $ | indent 4 }}
    21  data:
    22    grafana-overview.json: |-
    23      {
    24          "annotations": {
    25              "list": [
    26                  {
    27                      "builtIn": 1,
    28                      "datasource": "-- Grafana --",
    29                      "enable": true,
    30                      "hide": true,
    31                      "iconColor": "rgba(0, 211, 255, 1)",
    32                      "name": "Annotations & Alerts",
    33                      "target": {
    34                          "limit": 100,
    35                          "matchAny": false,
    36                          "tags": [
    37  
    38                          ],
    39                          "type": "dashboard"
    40                      },
    41                      "type": "dashboard"
    42                  }
    43              ]
    44          },
    45          "editable": true,
    46          "gnetId": null,
    47          "graphTooltip": 0,
    48          "id": 3085,
    49          "iteration": 1631554945276,
    50          "links": [
    51  
    52          ],
    53          "panels": [
    54              {
    55                  "datasource": "$datasource",
    56                  "fieldConfig": {
    57                      "defaults": {
    58                          "mappings": [
    59  
    60                          ],
    61                          "noValue": "0",
    62                          "thresholds": {
    63                              "mode": "absolute",
    64                              "steps": [
    65                                  {
    66                                      "color": "green",
    67                                      "value": null
    68                                  },
    69                                  {
    70                                      "color": "red",
    71                                      "value": 80
    72                                  }
    73                              ]
    74                          }
    75                      },
    76                      "overrides": [
    77  
    78                      ]
    79                  },
    80                  "gridPos": {
    81                      "h": 5,
    82                      "w": 6,
    83                      "x": 0,
    84                      "y": 0
    85                  },
    86                  "id": 6,
    87                  "options": {
    88                      "colorMode": "value",
    89                      "graphMode": "area",
    90                      "justifyMode": "auto",
    91                      "orientation": "auto",
    92                      "reduceOptions": {
    93                          "calcs": [
    94                              "mean"
    95                          ],
    96                          "fields": "",
    97                          "values": false
    98                      },
    99                      "text": {
   100  
   101                      },
   102                      "textMode": "auto"
   103                  },
   104                  "pluginVersion": "8.1.3",
   105                  "targets": [
   106                      {
   107                          "expr": "grafana_alerting_result_total{job=~\"$job\", instance=~\"$instance\", state=\"alerting\"}",
   108                          "instant": true,
   109                          "interval": "",
   110                          "legendFormat": "",
   111                          "refId": "A"
   112                      }
   113                  ],
   114                  "timeFrom": null,
   115                  "timeShift": null,
   116                  "title": "Firing Alerts",
   117                  "type": "stat"
   118              },
   119              {
   120                  "datasource": "$datasource",
   121                  "fieldConfig": {
   122                      "defaults": {
   123                          "mappings": [
   124  
   125                          ],
   126                          "thresholds": {
   127                              "mode": "absolute",
   128                              "steps": [
   129                                  {
   130                                      "color": "green",
   131                                      "value": null
   132                                  },
   133                                  {
   134                                      "color": "red",
   135                                      "value": 80
   136                                  }
   137                              ]
   138                          }
   139                      },
   140                      "overrides": [
   141  
   142                      ]
   143                  },
   144                  "gridPos": {
   145                      "h": 5,
   146                      "w": 6,
   147                      "x": 6,
   148                      "y": 0
   149                  },
   150                  "id": 8,
   151                  "options": {
   152                      "colorMode": "value",
   153                      "graphMode": "area",
   154                      "justifyMode": "auto",
   155                      "orientation": "auto",
   156                      "reduceOptions": {
   157                          "calcs": [
   158                              "mean"
   159                          ],
   160                          "fields": "",
   161                          "values": false
   162                      },
   163                      "text": {
   164  
   165                      },
   166                      "textMode": "auto"
   167                  },
   168                  "pluginVersion": "8.1.3",
   169                  "targets": [
   170                      {
   171                          "expr": "sum(grafana_stat_totals_dashboard{job=~\"$job\", instance=~\"$instance\"})",
   172                          "interval": "",
   173                          "legendFormat": "",
   174                          "refId": "A"
   175                      }
   176                  ],
   177                  "timeFrom": null,
   178                  "timeShift": null,
   179                  "title": "Dashboards",
   180                  "type": "stat"
   181              },
   182              {
   183                  "datasource": "$datasource",
   184                  "fieldConfig": {
   185                      "defaults": {
   186                          "custom": {
   187                              "align": null,
   188                              "displayMode": "auto"
   189                          },
   190                          "mappings": [
   191  
   192                          ],
   193                          "thresholds": {
   194                              "mode": "absolute",
   195                              "steps": [
   196                                  {
   197                                      "color": "green",
   198                                      "value": null
   199                                  },
   200                                  {
   201                                      "color": "red",
   202                                      "value": 80
   203                                  }
   204                              ]
   205                          }
   206                      },
   207                      "overrides": [
   208  
   209                      ]
   210                  },
   211                  "gridPos": {
   212                      "h": 5,
   213                      "w": 12,
   214                      "x": 12,
   215                      "y": 0
   216                  },
   217                  "id": 10,
   218                  "options": {
   219                      "showHeader": true
   220                  },
   221                  "pluginVersion": "8.1.3",
   222                  "targets": [
   223                      {
   224                          "expr": "grafana_build_info{job=~\"$job\", instance=~\"$instance\"}",
   225                          "instant": true,
   226                          "interval": "",
   227                          "legendFormat": "",
   228                          "refId": "A"
   229                      }
   230                  ],
   231                  "timeFrom": null,
   232                  "timeShift": null,
   233                  "title": "Build Info",
   234                  "transformations": [
   235                      {
   236                          "id": "labelsToFields",
   237                          "options": {
   238  
   239                          }
   240                      },
   241                      {
   242                          "id": "organize",
   243                          "options": {
   244                              "excludeByName": {
   245                                  "Time": true,
   246                                  "Value": true,
   247                                  "branch": true,
   248                                  "container": true,
   249                                  "goversion": true,
   250                                  "namespace": true,
   251                                  "pod": true,
   252                                  "revision": true
   253                              },
   254                              "indexByName": {
   255                                  "Time": 7,
   256                                  "Value": 11,
   257                                  "branch": 4,
   258                                  "container": 8,
   259                                  "edition": 2,
   260                                  "goversion": 6,
   261                                  "instance": 1,
   262                                  "job": 0,
   263                                  "namespace": 9,
   264                                  "pod": 10,
   265                                  "revision": 5,
   266                                  "version": 3
   267                              },
   268                              "renameByName": {
   269  
   270                              }
   271                          }
   272                      }
   273                  ],
   274                  "type": "table"
   275              },
   276              {
   277                  "aliasColors": {
   278  
   279                  },
   280                  "bars": false,
   281                  "dashLength": 10,
   282                  "dashes": false,
   283                  "datasource": "$datasource",
   284                  "fieldConfig": {
   285                      "defaults": {
   286                          "links": [
   287  
   288                          ]
   289                      },
   290                      "overrides": [
   291  
   292                      ]
   293                  },
   294                  "fill": 1,
   295                  "fillGradient": 0,
   296                  "gridPos": {
   297                      "h": 8,
   298                      "w": 12,
   299                      "x": 0,
   300                      "y": 5
   301                  },
   302                  "hiddenSeries": false,
   303                  "id": 2,
   304                  "legend": {
   305                      "avg": false,
   306                      "current": false,
   307                      "max": false,
   308                      "min": false,
   309                      "show": true,
   310                      "total": false,
   311                      "values": false
   312                  },
   313                  "lines": true,
   314                  "linewidth": 1,
   315                  "nullPointMode": "null",
   316                  "options": {
   317                      "alertThreshold": true
   318                  },
   319                  "percentage": false,
   320                  "pluginVersion": "8.1.3",
   321                  "pointradius": 2,
   322                  "points": false,
   323                  "renderer": "flot",
   324                  "seriesOverrides": [
   325  
   326                  ],
   327                  "spaceLength": 10,
   328                  "stack": true,
   329                  "steppedLine": false,
   330                  "targets": [
   331                      {
   332                          "expr": "sum by (status_code) (irate(grafana_http_request_duration_seconds_count{job=~\"$job\", instance=~\"$instance\"}[1m])) ",
   333                          "interval": "",
   334                          "legendFormat": "{{`{{`}}status_code{{`}}`}}",
   335                          "refId": "A"
   336                      }
   337                  ],
   338                  "thresholds": [
   339  
   340                  ],
   341                  "timeFrom": null,
   342                  "timeRegions": [
   343  
   344                  ],
   345                  "timeShift": null,
   346                  "title": "RPS",
   347                  "tooltip": {
   348                      "shared": true,
   349                      "sort": 0,
   350                      "value_type": "individual"
   351                  },
   352                  "type": "graph",
   353                  "xaxis": {
   354                      "buckets": null,
   355                      "mode": "time",
   356                      "name": null,
   357                      "show": true,
   358                      "values": [
   359  
   360                      ]
   361                  },
   362                  "yaxes": [
   363                      {
   364                          "$$hashKey": "object:157",
   365                          "format": "reqps",
   366                          "label": null,
   367                          "logBase": 1,
   368                          "max": null,
   369                          "min": null,
   370                          "show": true
   371                      },
   372                      {
   373                          "$$hashKey": "object:158",
   374                          "format": "short",
   375                          "label": null,
   376                          "logBase": 1,
   377                          "max": null,
   378                          "min": null,
   379                          "show": false
   380                      }
   381                  ],
   382                  "yaxis": {
   383                      "align": false,
   384                      "alignLevel": null
   385                  }
   386              },
   387              {
   388                  "aliasColors": {
   389  
   390                  },
   391                  "bars": false,
   392                  "dashLength": 10,
   393                  "dashes": false,
   394                  "datasource": "$datasource",
   395                  "fieldConfig": {
   396                      "defaults": {
   397                          "links": [
   398  
   399                          ]
   400                      },
   401                      "overrides": [
   402  
   403                      ]
   404                  },
   405                  "fill": 1,
   406                  "fillGradient": 0,
   407                  "gridPos": {
   408                      "h": 8,
   409                      "w": 12,
   410                      "x": 12,
   411                      "y": 5
   412                  },
   413                  "hiddenSeries": false,
   414                  "id": 4,
   415                  "legend": {
   416                      "avg": false,
   417                      "current": false,
   418                      "max": false,
   419                      "min": false,
   420                      "show": true,
   421                      "total": false,
   422                      "values": false
   423                  },
   424                  "lines": true,
   425                  "linewidth": 1,
   426                  "nullPointMode": "null",
   427                  "options": {
   428                      "alertThreshold": true
   429                  },
   430                  "percentage": false,
   431                  "pluginVersion": "8.1.3",
   432                  "pointradius": 2,
   433                  "points": false,
   434                  "renderer": "flot",
   435                  "seriesOverrides": [
   436  
   437                  ],
   438                  "spaceLength": 10,
   439                  "stack": false,
   440                  "steppedLine": false,
   441                  "targets": [
   442                      {
   443                          "exemplar": true,
   444                          "expr": "histogram_quantile(0.99, sum(irate(grafana_http_request_duration_seconds_bucket{instance=~\"$instance\", job=~\"$job\"}[$__rate_interval])) by (le)) * 1",
   445                          "interval": "",
   446                          "legendFormat": "99th Percentile",
   447                          "refId": "A"
   448                      },
   449                      {
   450                          "exemplar": true,
   451                          "expr": "histogram_quantile(0.50, sum(irate(grafana_http_request_duration_seconds_bucket{instance=~\"$instance\", job=~\"$job\"}[$__rate_interval])) by (le)) * 1",
   452                          "interval": "",
   453                          "legendFormat": "50th Percentile",
   454                          "refId": "B"
   455                      },
   456                      {
   457                          "exemplar": true,
   458                          "expr": "sum(irate(grafana_http_request_duration_seconds_sum{instance=~\"$instance\", job=~\"$job\"}[$__rate_interval])) * 1 / sum(irate(grafana_http_request_duration_seconds_count{instance=~\"$instance\", job=~\"$job\"}[$__rate_interval]))",
   459                          "interval": "",
   460                          "legendFormat": "Average",
   461                          "refId": "C"
   462                      }
   463                  ],
   464                  "thresholds": [
   465  
   466                  ],
   467                  "timeFrom": null,
   468                  "timeRegions": [
   469  
   470                  ],
   471                  "timeShift": null,
   472                  "title": "Request Latency",
   473                  "tooltip": {
   474                      "shared": true,
   475                      "sort": 0,
   476                      "value_type": "individual"
   477                  },
   478                  "type": "graph",
   479                  "xaxis": {
   480                      "buckets": null,
   481                      "mode": "time",
   482                      "name": null,
   483                      "show": true,
   484                      "values": [
   485  
   486                      ]
   487                  },
   488                  "yaxes": [
   489                      {
   490                          "$$hashKey": "object:210",
   491                          "format": "ms",
   492                          "label": null,
   493                          "logBase": 1,
   494                          "max": null,
   495                          "min": null,
   496                          "show": true
   497                      },
   498                      {
   499                          "$$hashKey": "object:211",
   500                          "format": "short",
   501                          "label": null,
   502                          "logBase": 1,
   503                          "max": null,
   504                          "min": null,
   505                          "show": true
   506                      }
   507                  ],
   508                  "yaxis": {
   509                      "align": false,
   510                      "alignLevel": null
   511                  }
   512              }
   513          ],
   514          "schemaVersion": 30,
   515          "style": "dark",
   516          "tags": [
   517  
   518          ],
   519          "templating": {
   520              "list": [
   521                  {
   522                      "current": {
   523                          "selected": true,
   524                          "text": "dev-cortex",
   525                          "value": "dev-cortex"
   526                      },
   527                      "description": null,
   528                      "error": null,
   529                      "hide": 0,
   530                      "includeAll": false,
   531                      "label": null,
   532                      "multi": false,
   533                      "name": "datasource",
   534                      "options": [
   535  
   536                      ],
   537                      "query": "prometheus",
   538                      "queryValue": "",
   539                      "refresh": 1,
   540                      "regex": "",
   541                      "skipUrlSync": false,
   542                      "type": "datasource"
   543                  },
   544                  {
   545                      "allValue": ".*",
   546                      "current": {
   547                          "selected": false,
   548                          "text": [
   549                              "default/grafana"
   550                          ],
   551                          "value": [
   552                              "default/grafana"
   553                          ]
   554                      },
   555                      "datasource": "$datasource",
   556                      "definition": "label_values(grafana_build_info, job)",
   557                      "description": null,
   558                      "error": null,
   559                      "hide": 0,
   560                      "includeAll": true,
   561                      "label": null,
   562                      "multi": true,
   563                      "name": "job",
   564                      "options": [
   565  
   566                      ],
   567                      "query": {
   568                          "query": "label_values(grafana_build_info, job)",
   569                          "refId": "Billing Admin-job-Variable-Query"
   570                      },
   571                      "refresh": 1,
   572                      "regex": "",
   573                      "skipUrlSync": false,
   574                      "sort": 0,
   575                      "tagValuesQuery": "",
   576                      "tagsQuery": "",
   577                      "type": "query",
   578                      "useTags": false
   579                  },
   580                  {
   581                      "allValue": ".*",
   582                      "current": {
   583                          "selected": false,
   584                          "text": "All",
   585                          "value": "$__all"
   586                      },
   587                      "datasource": "$datasource",
   588                      "definition": "label_values(grafana_build_info, instance)",
   589                      "description": null,
   590                      "error": null,
   591                      "hide": 0,
   592                      "includeAll": true,
   593                      "label": null,
   594                      "multi": true,
   595                      "name": "instance",
   596                      "options": [
   597  
   598                      ],
   599                      "query": {
   600                          "query": "label_values(grafana_build_info, instance)",
   601                          "refId": "Billing Admin-instance-Variable-Query"
   602                      },
   603                      "refresh": 1,
   604                      "regex": "",
   605                      "skipUrlSync": false,
   606                      "sort": 0,
   607                      "tagValuesQuery": "",
   608                      "tagsQuery": "",
   609                      "type": "query",
   610                      "useTags": false
   611                  }
   612              ]
   613          },
   614          "time": {
   615              "from": "now-6h",
   616              "to": "now"
   617          },
   618          "timepicker": {
   619              "refresh_intervals": [
   620                  "10s",
   621                  "30s",
   622                  "1m",
   623                  "5m",
   624                  "15m",
   625                  "30m",
   626                  "1h",
   627                  "2h",
   628                  "1d"
   629              ]
   630          },
   631          "timezone": "{{ .Values.grafana.defaultDashboardsTimezone }}",
   632          "title": "Grafana Overview",
   633          "uid": "6be0s85Mk",
   634          "version": 2
   635      }
   636  {{- end }}