github.com/galamsiva2020/kubernetes-heapster-monitoring@v0.0.0-20210823134957-3c1baa7c1e70/grafana/dashboards/influxdb_withfields/events.json (about)

     1  {
     2    "id": 8,
     3    "title": "Events",
     4    "originalTitle": "Events",
     5    "tags": [],
     6    "style": "dark",
     7    "timezone": "browser",
     8    "editable": true,
     9    "hideControls": false,
    10    "sharedCrosshair": false,
    11    "rows": [
    12      {
    13        "collapse": false,
    14        "editable": true,
    15        "height": "250px",
    16        "panels": [
    17          {
    18            "aliasColors": {},
    19            "bars": true,
    20            "datasource": null,
    21            "editable": true,
    22            "error": false,
    23            "fill": 1,
    24            "grid": {
    25              "leftLogBase": 1,
    26              "leftMax": null,
    27              "leftMin": null,
    28              "rightLogBase": 1,
    29              "rightMax": null,
    30              "rightMin": null,
    31              "threshold1": null,
    32              "threshold1Color": "rgba(216, 200, 27, 0.27)",
    33              "threshold2": null,
    34              "threshold2Color": "rgba(234, 112, 112, 0.22)"
    35            },
    36            "id": 3,
    37            "isNew": true,
    38            "legend": {
    39              "avg": false,
    40              "current": false,
    41              "max": false,
    42              "min": false,
    43              "show": true,
    44              "total": false,
    45              "values": false
    46            },
    47            "lines": false,
    48            "linewidth": 2,
    49            "links": [],
    50            "nullPointMode": "connected",
    51            "percentage": false,
    52            "pointradius": 5,
    53            "points": false,
    54            "renderer": "flot",
    55            "seriesOverrides": [
    56              {
    57                "alias": "events.count"
    58              }
    59            ],
    60            "span": 12,
    61            "stack": false,
    62            "steppedLine": false,
    63            "targets": [
    64              {
    65                "dsType": "influxdb",
    66                "groupBy": [
    67                  {
    68                    "params": [
    69                      "1m"
    70                    ],
    71                    "type": "time"
    72                  },
    73                  {
    74                    "params": [
    75                      "null"
    76                    ],
    77                    "type": "fill"
    78                  }
    79                ],
    80                "measurement": "events",
    81                "query": "SELECT count(message) FROM \"events\" WHERE \"namespace_name\" =~ /$namespace$/ AND \"kind\" =~ /$kind$/ AND \"object_name\" =~ /$object_name$/  AND \"type\" =~ /$type$/ AND \"reason\" =~ /$reason$/ AND $timeFilter GROUP BY time(1m) fill(null)",
    82                "rawQuery": true,
    83                "refId": "A",
    84                "resultFormat": "time_series",
    85                "select": [
    86                  [
    87                    {
    88                      "params": [
    89                        "message"
    90                      ],
    91                      "type": "field"
    92                    },
    93                    {
    94                      "params": [],
    95                      "type": "count"
    96                    }
    97                  ]
    98                ],
    99                "tags": []
   100              }
   101            ],
   102            "timeFrom": null,
   103            "timeShift": null,
   104            "title": "Events by minutes",
   105            "tooltip": {
   106              "shared": true,
   107              "value_type": "cumulative"
   108            },
   109            "type": "graph",
   110            "x-axis": true,
   111            "y-axis": true,
   112            "y_formats": [
   113              "short",
   114              "short"
   115            ]
   116          }
   117        ],
   118        "title": "Events by minute"
   119      },
   120      {
   121        "collapse": false,
   122        "editable": true,
   123        "height": "25px",
   124        "panels": [
   125          {
   126            "columns": [],
   127            "editable": true,
   128            "error": false,
   129            "fontSize": "90%",
   130            "id": 4,
   131            "isNew": true,
   132            "links": [],
   133            "pageSize": 25,
   134            "scroll": false,
   135            "showHeader": true,
   136            "sort": {
   137              "col": 0,
   138              "desc": true
   139            },
   140            "span": 12,
   141            "styles": [
   142              {
   143                "dateFormat": "YYYY/MM/DD HH:mm:ss",
   144                "pattern": "Time",
   145                "type": "date"
   146              },
   147              {
   148                "colorMode": null,
   149                "colors": [
   150                  "rgba(245, 54, 54, 0.9)",
   151                  "rgba(237, 129, 40, 0.89)",
   152                  "rgba(50, 172, 45, 0.97)"
   153                ],
   154                "decimals": 2,
   155                "pattern": "/.*/",
   156                "thresholds": [],
   157                "type": "string",
   158                "unit": "short"
   159              }
   160            ],
   161            "targets": [
   162              {
   163                "alias": "",
   164                "dsType": "influxdb",
   165                "groupBy": [],
   166                "hide": false,
   167                "measurement": "events",
   168                "query": "SELECT \"namespace_name\" as \"Namespace\", \"hostname\" as \"Node_name\", \"kind\" as \"Object_kind\", \"object_name\" as \"Object_Name\", \"type\" as \"Type\", \"reason\" as \"Reason\", \"message\" as \"Message\" FROM \"events\" WHERE \"namespace_name\" =~ /$namespace$/ AND \"kind\" =~ /$kind$/ AND \"object_name\" =~ /$object_name$/  AND \"type\" =~ /$type$/ AND \"reason\" =~ /$reason$/ AND $timeFilter",
   169                "rawQuery": true,
   170                "refId": "A",
   171                "resultFormat": "table",
   172                "select": [
   173                  [
   174                    {
   175                      "params": [
   176                        "message"
   177                      ],
   178                      "type": "field"
   179                    }
   180                  ]
   181                ],
   182                "tags": []
   183              }
   184            ],
   185            "title": "Events",
   186            "transform": "table",
   187            "type": "table"
   188          }
   189        ],
   190        "title": "Event list"
   191      }
   192    ],
   193    "time": {
   194      "from": "now-30m",
   195      "to": "now"
   196    },
   197    "timepicker": {
   198      "now": true,
   199      "refresh_intervals": [
   200        "5s",
   201        "10s",
   202        "30s",
   203        "1m",
   204        "5m",
   205        "15m",
   206        "30m",
   207        "1h",
   208        "2h",
   209        "1d"
   210      ],
   211      "time_options": [
   212        "5m",
   213        "15m",
   214        "1h",
   215        "6h",
   216        "12h",
   217        "24h",
   218        "2d",
   219        "7d",
   220        "30d"
   221      ]
   222    },
   223    "templating": {
   224      "list": [
   225        {
   226          "allFormat": "regex wildcard",
   227          "current": {
   228            "text": "All",
   229            "value": ".*"
   230          },
   231          "datasource": null,
   232          "includeAll": true,
   233          "label": "Namespace",
   234          "multi": true,
   235          "multiFormat": "pipe",
   236          "name": "namespace",
   237          "options": [
   238            {
   239              "text": "All",
   240              "value": ".*",
   241              "selected": true
   242            }
   243          ],
   244          "query": "SHOW TAG VALUES FROM \"events\" WITH KEY = \"namespace_name\"",
   245          "refresh": true,
   246          "type": "query"
   247        },
   248        {
   249          "allFormat": "regex wildcard",
   250          "current": {
   251            "text": "All",
   252            "value": ".*"
   253          },
   254          "datasource": null,
   255          "includeAll": true,
   256          "label": "Kind",
   257          "multi": true,
   258          "multiFormat": "pipe",
   259          "name": "kind",
   260          "options": [
   261            {
   262              "text": "All",
   263              "value": ".*",
   264              "selected": true
   265            },
   266            {
   267              "text": "Pod",
   268              "value": "Pod",
   269              "selected": false
   270            }
   271          ],
   272          "query": "SHOW TAG VALUES FROM \"events\" WITH KEY = \"kind\" WHERE \"namespace_name\" =~ /$namespace$/ ",
   273          "refresh": true,
   274          "type": "query"
   275        },
   276        {
   277          "allFormat": "regex wildcard",
   278          "current": {
   279            "text": "All",
   280            "value": ".*"
   281          },
   282          "datasource": null,
   283          "includeAll": true,
   284          "label": "Object Name",
   285          "multi": true,
   286          "multiFormat": "pipe",
   287          "name": "object_name",
   288          "options": [
   289            {
   290              "text": "All",
   291              "value": ".*",
   292              "selected": true
   293            }
   294          ],
   295          "query": "SHOW TAG VALUES FROM \"events\" WITH KEY = \"object_name\" WHERE \"kind\" =~ /$kind$/ AND \"namespace_name\" =~ /$namespace$/ ",
   296          "refresh": true,
   297          "regex": "",
   298          "type": "query"
   299        },
   300        {
   301          "allFormat": "regex wildcard",
   302          "current": {
   303            "text": "All",
   304            "value": ".*"
   305          },
   306          "datasource": null,
   307          "includeAll": true,
   308          "label": "Severity",
   309          "multi": true,
   310          "multiFormat": "pipe",
   311          "name": "type",
   312          "options": [
   313            {
   314              "text": "All",
   315              "value": ".*",
   316              "selected": true
   317            },
   318            {
   319              "text": "Normal",
   320              "value": "Normal",
   321              "selected": false
   322            },
   323            {
   324              "text": "Warning",
   325              "value": "Warning",
   326              "selected": false
   327            }
   328          ],
   329          "query": "SHOW TAG VALUES FROM \"events\" WITH KEY = \"type\"",
   330          "refresh": true,
   331          "regex": "",
   332          "type": "query",
   333          "useTags": false
   334        },
   335        {
   336          "allFormat": "regex wildcard",
   337          "current": {
   338            "text": "All",
   339            "value": ".*"
   340          },
   341          "datasource": null,
   342          "includeAll": true,
   343          "label": "Reason",
   344          "multi": true,
   345          "multiFormat": "pipe",
   346          "name": "reason",
   347          "options": [
   348            {
   349              "text": "All",
   350              "value": ".*",
   351              "selected": true
   352            },
   353            {
   354              "text": "BackOff",
   355              "value": "BackOff",
   356              "selected": false
   357            },
   358            {
   359              "text": "Failed",
   360              "value": "Failed",
   361              "selected": false
   362            },
   363            {
   364              "text": "FailedSync",
   365              "value": "FailedSync",
   366              "selected": false
   367            },
   368            {
   369              "text": "Pulling",
   370              "value": "Pulling",
   371              "selected": false
   372            }
   373          ],
   374          "query": "SHOW TAG VALUES FROM \"events\" WITH KEY = \"reason\"",
   375          "refresh": true,
   376          "regex": "",
   377          "type": "query",
   378          "useTags": false
   379        }
   380      ]
   381    },
   382    "annotations": {
   383      "list": []
   384    },
   385    "refresh": "5s",
   386    "schemaVersion": 8,
   387    "version": 18,
   388    "links": []
   389  }