{
  "__inputs": [
    {
      "name": "DS_LOKI",
      "label": "Loki",
      "description": "",
      "type": "datasource",
      "pluginId": "loki",
      "pluginName": "Loki"
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "7.2.1"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "loki",
      "name": "Loki",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": null,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1613126357931,
  "links": [],
  "panels": [
    {
      "aliasColors": {},
      "bars": true,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_LOKI}",
      "decimals": 0,
      "fieldConfig": {
        "defaults": {
          "custom": {}
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "{level=\"20\"}"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "debug"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "{level=\"30\"}"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "info"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "{level=\"50\"}"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "error"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "{level=\"40\"}"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "warn"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "{level=\"60\"}"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "fatal"
              }
            ]
          }
        ]
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 5,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "hiddenSeries": false,
      "id": 4,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": false,
        "hideEmpty": false,
        "hideZero": false,
        "max": false,
        "min": false,
        "rightSide": true,
        "show": true,
        "total": true,
        "values": true
      },
      "lines": false,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.2.1",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": true,
      "steppedLine": false,
      "targets": [
        {
          "expr": "sum(count_over_time({job=\"ut\", impl =~ \"[[Implementation]]\"}[$__interval])) by (level)",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Logs by level",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transformations": [],
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:31",
          "decimals": 0,
          "format": "none",
          "label": "Count",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "$$hashKey": "object:32",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "datasource": "${DS_LOKI}",
      "fieldConfig": {
        "defaults": {
          "custom": {
            "align": null,
            "displayMode": "auto",
            "filterable": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "ts"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 155
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "env"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 58
              },
              {
                "id": "custom.filterable",
                "value": true
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "impl"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 115
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "name"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 98
              },
              {
                "id": "custom.filterable",
                "value": true
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "service"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 92
              },
              {
                "id": "custom.filterable",
                "value": true
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "context"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 117
              },
              {
                "id": "custom.filterable",
                "value": true
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "level"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 61
              },
              {
                "id": "mappings",
                "value": [
                  {
                    "from": "",
                    "id": 1,
                    "text": "error",
                    "to": "",
                    "type": 1,
                    "value": "50"
                  },
                  {
                    "from": "",
                    "id": 2,
                    "text": "fatal",
                    "to": "",
                    "type": 1,
                    "value": "60"
                  },
                  {
                    "from": "",
                    "id": 3,
                    "text": "trace",
                    "to": "",
                    "type": 1,
                    "value": "10"
                  },
                  {
                    "from": "",
                    "id": 4,
                    "text": "warn",
                    "to": "",
                    "type": 1,
                    "value": "40"
                  },
                  {
                    "from": "",
                    "id": 5,
                    "text": "info",
                    "to": "",
                    "type": 1,
                    "value": "30"
                  },
                  {
                    "from": "",
                    "id": 6,
                    "text": "debug",
                    "to": "",
                    "type": 1,
                    "value": "20"
                  },
                  {
                    "from": "",
                    "id": 7,
                    "text": "",
                    "to": "",
                    "type": 1
                  }
                ]
              },
              {
                "id": "custom.displayMode",
                "value": "auto"
              },
              {
                "id": "custom.filterable",
                "value": true
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "line"
            },
            "properties": [
              {
                "id": "custom.displayMode",
                "value": "json-view"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 22,
        "w": 24,
        "x": 0,
        "y": 5
      },
      "id": 2,
      "options": {
        "showHeader": true,
        "sortBy": []
      },
      "pluginVersion": "7.2.1",
      "targets": [
        {
          "expr": "{job = \"ut\", impl =~ \"[[Implementation]]\"}",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Logs",
      "transformations": [
        {
          "id": "labelsToFields",
          "options": {}
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "id": true,
              "job": true,
              "line": false,
              "tsNs": true
            },
            "indexByName": {
              "context": 5,
              "env": 2,
              "id": 9,
              "impl": 1,
              "job": 6,
              "level": 7,
              "line": 8,
              "name": 3,
              "service": 4,
              "ts": 0,
              "tsNs": 10
            },
            "renameByName": {
              "level": ""
            }
          }
        }
      ],
      "type": "table"
    }
  ],
  "refresh": false,
  "schemaVersion": 26,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_LOKI}",
        "definition": "label_values(impl)",
        "hide": 0,
        "includeAll": true,
        "label": null,
        "multi": true,
        "name": "Implementation",
        "options": [],
        "query": "label_values(impl)",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-6h",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "",
  "title": "UT Log",
  "uid": "ut-log",
  "version": 10
}
