{
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": {
          "type": "grafana",
          "uid": "-- Grafana --"
        },
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 0,
  "links": [],
  "panels": [
    {
      "datasource": {
        "type": "loki",
        "uid": "P8E80F9AEF21F6940"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "fillOpacity": 80,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineWidth": 1,
            "scaleDistribution": {
              "type": "linear"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 9,
        "w": 18,
        "x": 0,
        "y": 0
      },
      "id": 1,
      "options": {
        "barRadius": 0,
        "barWidth": 0.97,
        "fullHighlight": false,
        "groupWidth": 0.7,
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "orientation": "auto",
        "showValue": "auto",
        "stacking": "none",
        "tooltip": {
          "maxHeight": 600,
          "mode": "single",
          "sort": "none"
        },
        "xTickLabelRotation": 0,
        "xTickLabelSpacing": 0
      },
      "targets": [
        {
          "datasource": {
            "type": "loki",
            "uid": "P8E80F9AEF21F6940"
          },
          "editorMode": "code",
          "expr": "sum by (attack_type) (\r\n  count_over_time({type=\"attack\"}[$__interval])\r\n)",
          "queryType": "range",
          "refId": "A"
        }
      ],
      "title": "Panel Title",
      "type": "barchart"
    },
    {
      "datasource": {
        "type": "loki",
        "uid": "P8E80F9AEF21F6940"
      },
      "gridPos": {
        "h": 10,
        "w": 23,
        "x": 0,
        "y": 9
      },
      "id": 2,
      "options": {
        "dedupStrategy": "none",
        "enableLogDetails": true,
        "prettifyLogMessage": false,
        "showCommonLabels": false,
        "showLabels": false,
        "showTime": false,
        "sortOrder": "Descending",
        "wrapLogMessage": false
      },
      "targets": [
        {
          "datasource": {
            "type": "loki",
            "uid": "P8E80F9AEF21F6940"
          },
          "editorMode": "builder",
          "expr": "{service_name=\"lpgstack-attack_detector-1\"} |= ``",
          "queryType": "range",
          "refId": "A"
        }
      ],
      "title": "Panel Title",
      "type": "logs"
    }
  ],
  "schemaVersion": 39,
  "tags": [],
  "templating": {
    "list": []
  },
  "time": {
    "from": "now-30m",
    "to": "now"
  },
  "timeRangeUpdatedDuringEditOrView": false,
  "timepicker": {},
  "timezone": "browser",
  "title": "New dashboard",
  "version": 0,
  "weekStart": ""
}
sao đoạn code này không được hiển thị lên grafana còn đoạn sau này lại hiện bình thường
{
    "annotations": {
      "list": [
        {
          "builtIn": 1,
          "datasource": {
            "type": "datasource",
            "uid": "grafana"
          },
          "enable": true,
          "hide": true,
          "iconColor": "rgba(0, 211, 255, 1)",
          "name": "Annotations & Alerts",
          "type": "dashboard"
        }
      ]
    },
    "description": "Container log search",
    "editable": true,
    "fiscalYearStartMonth": 0,
    "gnetId": 16970,
    "graphTooltip": 0,
    "id": 4,
    "links": [],
    "panels": [
      {
        "collapsed": true,
        "gridPos": {
          "h": 1,
          "w": 24,
          "x": 0,
          "y": 0
        },
        "id": 3,
        "panels": [
          {
            "datasource": {
              "type": "loki",
              "uid": "P8E80F9AEF21F6940"
            },
            "description": "",
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "palette-classic"
                },
                "custom": {
                  "hideFrom": {
                    "legend": false,
                    "tooltip": false,
                    "viz": false
                  }
                },
                "mappings": []
              },
              "overrides": []
            },
            "gridPos": {
              "h": 11,
              "w": 6,
              "x": 0,
              "y": 1
            },
            "id": 5,
            "options": {
              "displayLabels": [
                "percent"
              ],
              "legend": {
                "displayMode": "table",
                "placement": "bottom",
                "showLegend": true,
                "values": [
                  "percent"
                ]
              },
              "pieType": "pie",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "tooltip": {
                "maxHeight": 600,
                "mode": "single",
                "sort": "none"
              }
            },
            "targets": [
              {
                "datasource": {
                  "type": "loki",
                  "uid": "P8E80F9AEF21F6940"
                },
                "editorMode": "code",
                "expr": "sum(count_over_time({job=\"containerlogs\"}[2m])) by (container)",
                "legendFormat": "{{container}}",
                "queryType": "range",
                "refId": "A"
              }
            ],
            "title": "Log counts per container",
            "type": "piechart"
          },
          {
            "datasource": {
              "type": "loki",
              "uid": "P8E80F9AEF21F6940"
            },
            "description": "",
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "palette-classic"
                },
                "custom": {
                  "axisBorderShow": false,
                  "axisCenteredZero": false,
                  "axisColorMode": "text",
                  "axisLabel": "",
                  "axisPlacement": "auto",
                  "barAlignment": 0,
                  "drawStyle": "line",
                  "fillOpacity": 0,
                  "gradientMode": "none",
                  "hideFrom": {
                    "legend": false,
                    "tooltip": false,
                    "viz": false
                  },
                  "insertNulls": false,
                  "lineInterpolation": "linear",
                  "lineWidth": 1,
                  "pointSize": 5,
                  "scaleDistribution": {
                    "type": "linear"
                  },
                  "showPoints": "auto",
                  "spanNulls": false,
                  "stacking": {
                    "group": "A",
                    "mode": "none"
                  },
                  "thresholdsStyle": {
                    "mode": "off"
                  }
                },
                "mappings": [],
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "red",
                      "value": 80
                    }
                  ]
                }
              },
              "overrides": []
            },
            "gridPos": {
              "h": 11,
              "w": 18,
              "x": 6,
              "y": 1
            },
            "id": 6,
            "options": {
              "legend": {
                "calcs": [
                  "lastNotNull",
                  "mean"
                ],
                "displayMode": "table",
                "placement": "right",
                "showLegend": true
              },
              "tooltip": {
                "maxHeight": 600,
                "mode": "single",
                "sort": "none"
              }
            },
            "targets": [
              {
                "datasource": {
                  "type": "loki",
                  "uid": "P8E80F9AEF21F6940"
                },
                "editorMode": "code",
                "expr": "sum(count_over_time({job=\"containerlogs\"}[2m])) by (container)",
                "legendFormat": "{{container}}",
                "queryType": "range",
                "refId": "A"
              }
            ],
            "title": "Log counts per container",
            "type": "timeseries"
          }
        ],
        "title": "Log Metrics",
        "type": "row"
      },
      {
        "collapsed": false,
        "gridPos": {
          "h": 1,
          "w": 24,
          "x": 0,
          "y": 1
        },
        "id": 4,
        "panels": [],
        "title": "Logs",
        "type": "row"
      },
      {
        "datasource": {
          "type": "loki",
          "uid": "P8E80F9AEF21F6940"
        },
        "description": "",
        "gridPos": {
          "h": 24,
          "w": 24,
          "x": 0,
          "y": 2
        },
        "id": 2,
        "options": {
          "dedupStrategy": "none",
          "enableLogDetails": true,
          "prettifyLogMessage": false,
          "showCommonLabels": false,
          "showLabels": false,
          "showTime": true,
          "sortOrder": "Descending",
          "wrapLogMessage": false
        },
        "targets": [
          {
            "datasource": {
              "type": "loki",
              "uid": "P8E80F9AEF21F6940"
            },
            "editorMode": "code",
            "expr": "{job=\"$job\", container=~\"$container\"} |~ \"(?i)$searchable_pattern\"",
            "hide": false,
            "queryType": "range",
            "refId": "B"
          }
        ],
        "title": "Search Result",
        "type": "logs"
      }
    ],
    "refresh": "1m",
    "schemaVersion": 39,
    "tags": [
      "loki",
      "docker"
    ],
    "templating": {
      "list": [
        {
          "allValue": ".*",
          "current": {
            "selected": false,
            "text": "containerlogs",
            "value": "containerlogs"
          },
          "datasource": {
            "type": "loki",
            "uid": "P8E80F9AEF21F6940"
          },
          "definition": "",
          "hide": 0,
          "includeAll": false,
          "label": "Job",
          "multi": false,
          "name": "job",
          "options": [],
          "query": {
            "label": "job",
            "refId": "LokiVariableQueryEditor-VariableQuery",
            "stream": "{job=~\".+\"}",
            "type": 1
          },
          "refresh": 2,
          "regex": "",
          "skipUrlSync": false,
          "sort": 0,
          "tagValuesQuery": "",
          "tagsQuery": "",
          "type": "query",
          "useTags": false
        },
        {
          "allValue": ".*",
          "current": {
            "selected": false,
            "text": "All",
            "value": "$__all"
          },
          "datasource": {
            "type": "loki",
            "uid": "P8E80F9AEF21F6940"
          },
          "definition": "",
          "hide": 0,
          "includeAll": true,
          "label": "Container",
          "multi": false,
          "name": "container",
          "options": [],
          "query": {
            "label": "container",
            "refId": "LokiVariableQueryEditor-VariableQuery",
            "stream": "{job=\"$job\"}",
            "type": 1
          },
          "refresh": 2,
          "regex": "",
          "skipUrlSync": false,
          "sort": 0,
          "tagValuesQuery": "",
          "tagsQuery": "",
          "type": "query",
          "useTags": false
        },
        {
          "current": {
            "selected": true,
            "text": "",
            "value": ""
          },
          "hide": 0,
          "label": "Search (case insensitive)",
          "name": "searchable_pattern",
          "options": [
            {
              "selected": true,
              "text": "",
              "value": ""
            }
          ],
          "query": "",
          "skipUrlSync": false,
          "type": "textbox"
        }
      ]
    },
    "time": {
      "from": "now-1h",
      "to": "now"
    },
    "timeRangeUpdatedDuringEditOrView": false,
    "timepicker": {
      "refresh_intervals": [
        "5s",
        "10s",
        "30s",
        "1m",
        "5m",
        "15m",
        "30m",
        "1h",
        "2h",
        "1d"
      ]
    },
    "timezone": "",
    "title": "Container Log Search",
    "uid": "7ecZpUkRk",
    "version": 4,
    "weekStart": ""
  }