github.com/timstclair/heapster@v0.20.0-alpha1/grafana/dashboards/containers.json (about)

     1  {
     2    "dashboard":
     3    {
     4      "title": "Containers",
     5      "originalTitle": "Containers",
     6      "tags": [],
     7      "style": "dark",
     8      "timezone": "browser",
     9      "editable": true,
    10      "hideControls": false,
    11      "sharedCrosshair": false,
    12      "rows": [
    13        {
    14          "collapse": false,
    15          "editable": true,
    16          "height": "250px",
    17          "panels": [
    18            {
    19              "aliasColors": {},
    20              "bars": false,
    21              "datasource": null,
    22              "decimals": 2,
    23              "editable": true,
    24              "error": false,
    25              "fill": 3,
    26              "grid": {
    27                "leftLogBase": 1,
    28                "leftMax": null,
    29                "leftMin": null,
    30                "rightLogBase": 1,
    31                "rightMax": null,
    32                "rightMin": null,
    33                "threshold1": null,
    34                "threshold1Color": "rgba(216, 200, 27, 0.27)",
    35                "threshold2": null,
    36                "threshold2Color": "rgba(234, 112, 112, 0.22)"
    37              },
    38              "hideTimeOverride": false,
    39              "id": 1,
    40              "interval": "10s",
    41              "legend": {
    42                "avg": false,
    43                "current": true,
    44                "max": true,
    45                "min": false,
    46                "show": true,
    47                "total": false,
    48                "values": true
    49              },
    50              "lines": true,
    51              "linewidth": 3,
    52              "links": [],
    53              "minSpan": 4,
    54              "nullPointMode": "connected",
    55              "percentage": false,
    56              "pointradius": 5,
    57              "points": false,
    58              "renderer": "flot",
    59              "repeat": "container",
    60              "scopedVars": {
    61              },
    62              "seriesOverrides": [
    63                {},
    64                {
    65                  "alias": "Used Memory",
    66                  "yaxis": 1
    67                }
    68              ],
    69              "span": 12,
    70              "stack": false,
    71              "steppedLine": false,
    72              "targets": [
    73                {
    74                  "alias": "Limit",
    75                  "fields": [
    76                    {
    77                      "func": "last",
    78                      "name": "value"
    79                    }
    80                  ],
    81                  "fill": "null",
    82                  "groupByTags": [],
    83                  "hide": false,
    84                  "measurement": "memory/limit_bytes_gauge",
    85                  "query": "SELECT last(value) FROM \"memory/limit_bytes_gauge\" WHERE \"container_name\" =~ /$container/ AND $timeFilter GROUP BY time($interval) fill(null)",
    86                  "rawQuery": false,
    87                  "tags": [
    88                    {
    89                      "key": "container_name",
    90                      "value": "/$container/"
    91                    }
    92                  ]
    93                },
    94                {
    95                  "alias": "Usage",
    96                  "fields": [
    97                    {
    98                      "func": "last",
    99                      "name": "value"
   100                    }
   101                  ],
   102                  "fill": "null",
   103                  "groupByTags": [],
   104                  "hide": false,
   105                  "measurement": "memory/usage_bytes_gauge",
   106                  "query": "SELECT last(value) FROM \"memory/usage_bytes_gauge\" WHERE \"container_name\" =~ /$container/ AND $timeFilter GROUP BY time($interval) fill(null)",
   107                  "rawQuery": false,
   108                  "tags": [
   109                    {
   110                      "key": "container_name",
   111                      "value": "/$container/"
   112                    }
   113                  ]
   114                },
   115                {
   116                  "alias": "Working Set",
   117                  "fields": [
   118                    {
   119                      "func": "last",
   120                      "name": "value"
   121                    }
   122                  ],
   123                  "fill": "null",
   124                  "groupByTags": [],
   125                  "hide": false,
   126                  "measurement": "memory/working_set_bytes_gauge",
   127                  "query": "SELECT last(value) FROM \"memory/working_set_bytes_gauge\" WHERE \"container_name\" =~ /$container/ AND $timeFilter GROUP BY time($interval) fill(null)",
   128                  "rawQuery": false,
   129                  "tags": [
   130                    {
   131                      "key": "container_name",
   132                      "value": "/$container/"
   133                    }
   134                  ]
   135                }
   136              ],
   137              "timeFrom": null,
   138              "timeShift": null,
   139              "title": "Container \"$container\" Memory Usage",
   140              "tooltip": {
   141                "shared": true,
   142                "value_type": "cumulative"
   143              },
   144              "transparent": false,
   145              "type": "graph",
   146              "x-axis": true,
   147              "y-axis": true,
   148              "y_formats": [
   149                "bytes",
   150                "short"
   151              ]
   152            }
   153          ],
   154          "title": "Container Memory"
   155        },
   156        {
   157          "collapse": false,
   158          "editable": true,
   159          "height": "250px",
   160          "panels": [
   161            {
   162              "aliasColors": {},
   163              "bars": false,
   164              "datasource": null,
   165              "decimals": 2,
   166              "editable": true,
   167              "error": false,
   168              "fill": 3,
   169              "grid": {
   170                "leftLogBase": 1,
   171                "leftMax": null,
   172                "leftMin": null,
   173                "rightLogBase": 1,
   174                "rightMax": null,
   175                "rightMin": null,
   176                "threshold1": null,
   177                "threshold1Color": "rgba(216, 200, 27, 0.27)",
   178                "threshold2": null,
   179                "threshold2Color": "rgba(234, 112, 112, 0.22)"
   180              },
   181              "hideTimeOverride": false,
   182              "id": 14,
   183              "interval": "10s",
   184              "legend": {
   185                "avg": false,
   186                "current": true,
   187                "max": true,
   188                "min": false,
   189                "show": true,
   190                "total": false,
   191                "values": true
   192              },
   193              "lines": true,
   194              "linewidth": 3,
   195              "links": [],
   196              "minSpan": 4,
   197              "nullPointMode": "connected",
   198              "percentage": false,
   199              "pointradius": 5,
   200              "points": false,
   201              "renderer": "flot",
   202              "repeat": "container",
   203              "scopedVars": {
   204              },
   205              "seriesOverrides": [
   206                {},
   207                {
   208                  "alias": "Used Memory",
   209                  "yaxis": 1
   210                }
   211              ],
   212              "span": 12,
   213              "stack": false,
   214              "steppedLine": false,
   215              "targets": [
   216                {
   217                  "alias": "Limit",
   218                  "fields": [
   219                    {
   220                      "func": "mean",
   221                      "name": "value"
   222                    }
   223                  ],
   224                  "fill": "null",
   225                  "groupByTags": [],
   226                  "hide": false,
   227                  "measurement": "cpu/limit_gauge",
   228                  "query": "SELECT mean(value) FROM \"cpu/limit_gauge\" WHERE \"container_name\" =~ /$container/ AND $timeFilter GROUP BY time($interval) fill(null)",
   229                  "rawQuery": true,
   230                  "tags": [
   231                    {
   232                      "key": "container_name",
   233                      "value": "/$container/"
   234                    }
   235                  ]
   236                },
   237                {
   238                  "alias": "Usage",
   239                  "fields": [
   240                    {
   241                      "func": "mean",
   242                      "name": "value"
   243                    }
   244                  ],
   245                  "fill": "null",
   246                  "groupByTags": [],
   247                  "hide": false,
   248                  "measurement": "cpu/limit_gauge",
   249                  "query": "SELECT derivative(value)/10000000 FROM \"cpu/usage_ns_cumulative\" WHERE \"container_name\" =~ /$container/ AND $timeFilter GROUP BY time($interval)",
   250                  "rawQuery": true,
   251                  "tags": [
   252                    {
   253                      "key": "container_name",
   254                      "value": "/$container/"
   255                    }
   256                  ]
   257                }
   258              ],
   259              "timeFrom": null,
   260              "timeShift": null,
   261              "title": "Container \"$container\" CPU Usage",
   262              "tooltip": {
   263                "shared": true,
   264                "value_type": "cumulative"
   265              },
   266              "transparent": false,
   267              "type": "graph",
   268              "x-axis": true,
   269              "y-axis": true,
   270              "y_formats": [
   271                "ms",
   272                "short"
   273              ]
   274            }
   275          ],
   276          "title": "Container CPU"
   277        }
   278      ],
   279      "nav": [
   280        {
   281          "collapse": false,
   282          "enable": true,
   283          "notice": false,
   284          "now": true,
   285          "refresh_intervals": [
   286            "5s",
   287            "10s",
   288            "30s",
   289            "1m",
   290            "5m",
   291            "15m",
   292            "30m",
   293            "1h",
   294            "2h",
   295            "1d"
   296          ],
   297          "status": "Stable",
   298          "time_options": [
   299            "5m",
   300            "15m",
   301            "1h",
   302            "6h",
   303            "12h",
   304            "24h",
   305            "2d",
   306            "7d",
   307            "30d"
   308          ],
   309          "type": "timepicker"
   310        }
   311      ],
   312      "time": {
   313        "from": "now-6h",
   314        "to": "now"
   315      },
   316      "templating": {
   317        "list": [
   318          {
   319            "type": "query",
   320            "refresh": true,
   321            "refresh_on_load": true,
   322            "datasource": null,
   323            "refresh_on_load": false,
   324            "name": "namespace",
   325            "options": [
   326            ],
   327            "includeAll": true,
   328            "allFormat": "regex wildcard",
   329            "multi": false,
   330            "multiFormat": "glob",
   331            "query": "SHOW TAG VALUES FROM \"uptime_ms_cumulative\" WITH KEY = \"pod_namespace\"",
   332            "current": {
   333            }
   334          },
   335          {
   336            "allFormat": "regex wildcard",
   337            "current": {
   338            },
   339            "datasource": null,
   340            "includeAll": true,
   341            "multi": false,
   342            "multiFormat": "glob",
   343            "name": "pod",
   344            "options": [
   345            ],
   346            "query": "SHOW TAG VALUES FROM \"uptime_ms_cumulative\" WITH KEY = \"pod_name\" WHERE pod_namespace =~ /$namespace/ ",
   347            "refresh": true,
   348            "refresh_on_load": true,
   349            "type": "query"
   350          },
   351          {
   352            "allFormat": "glob",
   353            "current": {
   354            },
   355            "datasource": null,
   356            "includeAll": true,
   357            "multi": false,
   358            "multiFormat": "glob",
   359            "name": "container",
   360            "options": [
   361            ],
   362            "query": "SHOW TAG VALUES FROM \"uptime_ms_cumulative\" WITH KEY = \"container_name\" WHERE pod_name =~ /$pod/ and \"pod_namespace\" =~ /$namespace/",
   363            "refresh": true,
   364            "refresh_on_load": true,
   365            "type": "query"
   366          }
   367        ]
   368      },
   369      "annotations": {
   370        "list": []
   371      },
   372      "schemaVersion": 6,
   373      "version": 4,
   374      "links": []
   375    }
   376  }