github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/helm/dashboards/container-log.json (about)

     1  {
     2    "annotations": {
     3      "list": [
     4        {
     5          "builtIn": 1,
     6          "datasource": {
     7            "type": "grafana",
     8            "uid": "-- Grafana --"
     9          },
    10          "enable": true,
    11          "hide": true,
    12          "iconColor": "rgba(0, 211, 255, 1)",
    13          "name": "Annotations & Alerts",
    14          "target": {
    15            "limit": 100,
    16            "matchAny": false,
    17            "tags": [],
    18            "type": "dashboard"
    19          },
    20          "type": "dashboard"
    21        }
    22      ]
    23    },
    24    "description": "Basic dashboard for Kubernetes Container Logs from Loki.",
    25    "editable": true,
    26    "fiscalYearStartMonth": 0,
    27    "gnetId": 18494,
    28    "graphTooltip": 0,
    29    "id": 12,
    30    "links": [],
    31    "liveNow": false,
    32    "panels": [
    33      {
    34        "datasource": {
    35          "type": "loki",
    36          "uid": "loki-kubeblocks"
    37        },
    38        "fieldConfig": {
    39          "defaults": {
    40            "color": {
    41              "mode": "thresholds"
    42            },
    43            "custom": {
    44              "axisCenteredZero": false,
    45              "axisColorMode": "text",
    46              "axisLabel": "",
    47              "axisPlacement": "auto",
    48              "barAlignment": 0,
    49              "drawStyle": "line",
    50              "fillOpacity": 42,
    51              "gradientMode": "none",
    52              "hideFrom": {
    53                "legend": false,
    54                "tooltip": false,
    55                "viz": false
    56              },
    57              "lineInterpolation": "linear",
    58              "lineStyle": {
    59                "fill": "solid"
    60              },
    61              "lineWidth": 1,
    62              "pointSize": 5,
    63              "scaleDistribution": {
    64                "type": "linear"
    65              },
    66              "showPoints": "auto",
    67              "spanNulls": false,
    68              "stacking": {
    69                "group": "A",
    70                "mode": "none"
    71              },
    72              "thresholdsStyle": {
    73                "mode": "off"
    74              }
    75            },
    76            "mappings": [],
    77            "thresholds": {
    78              "mode": "absolute",
    79              "steps": [
    80                {
    81                  "color": "green",
    82                  "value": null
    83                }
    84              ]
    85            }
    86          },
    87          "overrides": []
    88        },
    89        "gridPos": {
    90          "h": 10,
    91          "w": 24,
    92          "x": 0,
    93          "y": 0
    94        },
    95        "id": 2,
    96        "options": {
    97          "legend": {
    98            "calcs": [],
    99            "displayMode": "list",
   100            "placement": "bottom",
   101            "showLegend": false
   102          },
   103          "tooltip": {
   104            "mode": "single",
   105            "sort": "none"
   106          }
   107        },
   108        "targets": [
   109          {
   110            "datasource": {
   111              "type": "loki",
   112              "uid": "loki-kubeblocks"
   113            },
   114            "editorMode": "builder",
   115            "expr": "sum(count_over_time({namespace=~\"$namespace\", pod=~\"$pod\", container=~\"$container\"} |~ `(?i)$search` [$__interval]))",
   116            "legendFormat": "{{container}}",
   117            "queryType": "range",
   118            "refId": "A",
   119            "resolution": 1
   120          }
   121        ],
   122        "title": "Logs Trend",
   123        "type": "timeseries"
   124      },
   125      {
   126        "datasource": {
   127          "type": "loki",
   128          "uid": "loki-kubeblocks"
   129        },
   130        "gridPos": {
   131          "h": 26,
   132          "w": 24,
   133          "x": 0,
   134          "y": 10
   135        },
   136        "id": 3,
   137        "options": {
   138          "dedupStrategy": "exact",
   139          "enableLogDetails": true,
   140          "prettifyLogMessage": false,
   141          "showCommonLabels": false,
   142          "showLabels": true,
   143          "showTime": true,
   144          "sortOrder": "Descending",
   145          "wrapLogMessage": true
   146        },
   147        "targets": [
   148          {
   149            "datasource": {
   150              "type": "loki",
   151              "uid": "loki-kubeblocks"
   152            },
   153            "editorMode": "builder",
   154            "expr": "{namespace=~\"$namespace\", pod=~\"$pod\", container=~\"$container\"} |~ `(?i)$search`",
   155            "queryType": "range",
   156            "refId": "A"
   157          }
   158        ],
   159        "title": "Logs Panel",
   160        "type": "logs"
   161      }
   162    ],
   163    "refresh": false,
   164    "schemaVersion": 37,
   165    "style": "dark",
   166    "tags": [],
   167    "templating": {
   168      "list": [
   169        {
   170          "allValue": ".+",
   171          "current": {
   172            "selected": false,
   173            "text": "All",
   174            "value": "$__all"
   175          },
   176          "datasource": {
   177            "type": "loki",
   178            "uid": "loki-kubeblocks"
   179          },
   180          "definition": "",
   181          "hide": 0,
   182          "includeAll": true,
   183          "label": "Namespace",
   184          "multi": false,
   185          "name": "namespace",
   186          "options": [],
   187          "query": {
   188            "label": "namespace",
   189            "refId": "LokiVariableQueryEditor-VariableQuery",
   190            "stream": "",
   191            "type": 1
   192          },
   193          "refresh": 2,
   194          "regex": "",
   195          "skipUrlSync": false,
   196          "sort": 5,
   197          "type": "query"
   198        },
   199        {
   200          "allValue": ".+",
   201          "current": {
   202            "selected": false,
   203            "text": "All",
   204            "value": "$__all"
   205          },
   206          "datasource": {
   207            "type": "loki",
   208            "uid": "loki-kubeblocks"
   209          },
   210          "definition": "",
   211          "hide": 0,
   212          "includeAll": true,
   213          "label": "Pod",
   214          "multi": false,
   215          "name": "pod",
   216          "options": [],
   217          "query": {
   218            "label": "pod",
   219            "refId": "LokiVariableQueryEditor-VariableQuery",
   220            "stream": "{namespace=~\"$namespace\"}",
   221            "type": 1
   222          },
   223          "refresh": 2,
   224          "regex": "",
   225          "skipUrlSync": false,
   226          "sort": 5,
   227          "type": "query"
   228        },
   229        {
   230          "allValue": ".+",
   231          "current": {
   232            "selected": false,
   233            "text": "All",
   234            "value": "$__all"
   235          },
   236          "datasource": {
   237            "type": "loki",
   238            "uid": "loki-kubeblocks"
   239          },
   240          "definition": "",
   241          "hide": 0,
   242          "includeAll": true,
   243          "label": "Container",
   244          "multi": false,
   245          "name": "container",
   246          "options": [],
   247          "query": {
   248            "label": "container",
   249            "refId": "LokiVariableQueryEditor-VariableQuery",
   250            "stream": "{namespace=~\"$namespace\", pod=~\"$pod\"}",
   251            "type": 1
   252          },
   253          "refresh": 2,
   254          "regex": "",
   255          "skipUrlSync": false,
   256          "sort": 5,
   257          "type": "query"
   258        },
   259        {
   260          "current": {
   261            "selected": false,
   262            "text": ".+",
   263            "value": ".+"
   264          },
   265          "hide": 0,
   266          "label": "Search Term",
   267          "name": "search",
   268          "options": [
   269            {
   270              "selected": true,
   271              "text": ".+",
   272              "value": ".+"
   273            }
   274          ],
   275          "query": ".+",
   276          "skipUrlSync": false,
   277          "type": "textbox"
   278        }
   279      ]
   280    },
   281    "time": {
   282      "from": "now-30m",
   283      "to": "now"
   284    },
   285    "timepicker": {
   286      "refresh_intervals": [
   287        "1m",
   288        "5m",
   289        "15m",
   290        "30m",
   291        "1h",
   292        "2h",
   293        "1d"
   294      ]
   295    },
   296    "timezone": "",
   297    "title": "Container Logs",
   298    "uid": "container-logs",
   299    "version": 1,
   300    "weekStart": ""
   301  }