{
  "annotations":{"list":[{"builtIn":1,"datasource":{"type":"datasource","uid":"grafana"},"enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations & Alerts","target":{"limit":100,"matchAny":false,"tags":[],"type":"dashboard"},"type":"dashboard"}]},
  "author":"Ruohang Feng (rh@vonng.com)",
  "description":"Logs for Single Node/Instance",
  "editable":true,
  "fiscalYearStartMonth":0,
  "graphTooltip":1,
  "id":null,
  "license":"https://pigsty.io/docs/about/license/",
  "links":[{"asDropdown":true,"icon":"external link","includeVars":false,"keepTime":true,"tags":["Pigsty","Instance"],"targetBlank":false,"title":"Instance","tooltip":"","type":"dashboards","url":""},{"asDropdown":true,"icon":"external link","includeVars":false,"keepTime":false,"tags":["INFRA"],"targetBlank":false,"title":"INFRA","tooltip":"","type":"dashboards","url":""}],
  "panels":[
    {
      "datasource":{"type":"victoriametrics-logs-datasource","uid":"ds-vlogs"},
      "fieldConfig":{
        "defaults":{
          "color":{"fixedColor":"#346f36cc","mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"bars",
            "fillOpacity":100,
            "gradientMode":"none",
            "hideFrom":{"graph":false,"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"never",
            "showValues":false,
            "spanNulls":true,
            "stacking":{"group":"A","mode":"normal"},
            "thresholdsStyle":{"mode":"off"}
          },
          "decimals":0,
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"#346f36cc","value":0}]},
          "unit":"none"
        },
        "overrides":[]
      },
      "gridPos":{"h":7,"w":12,"x":0,"y":0},
      "id":9,
      "interval":"1s",
      "options":{"legend":{"calcs":["mean","sum"],"displayMode":"table","placement":"right","showLegend":false},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"datasource":{"type":"victoriametrics-logs-datasource","uid":"ds-vlogs"},"editorMode":"code","expr":"ins:$ins job:$job | stats by (ins,job) count() as count","legendFormat":"{{ ins }}.{{ job }}","queryType":"statsRange","refId":"A"}],
      "title":"Logs",
      "type":"timeseries"
    },{
      "datasource":{"type":"victoriametrics-logs-datasource","uid":"ds-vlogs"},
      "fieldConfig":{
        "defaults":{
          "color":{"fixedColor":"super-light-blue","mode":"palette-classic"},
          "custom":{
            "axisBorderShow":false,
            "axisCenteredZero":false,
            "axisColorMode":"text",
            "axisLabel":"",
            "axisPlacement":"auto",
            "barAlignment":0,
            "barWidthFactor":0.6,
            "drawStyle":"bars",
            "fillOpacity":100,
            "gradientMode":"none",
            "hideFrom":{"graph":false,"legend":false,"tooltip":false,"viz":false},
            "insertNulls":false,
            "lineInterpolation":"linear",
            "lineWidth":1,
            "pointSize":5,
            "scaleDistribution":{"type":"linear"},
            "showPoints":"never",
            "showValues":false,
            "spanNulls":true,
            "stacking":{"group":"A","mode":"normal"},
            "thresholdsStyle":{"mode":"off"}
          },
          "decimals":0,
          "mappings":[],
          "thresholds":{"mode":"absolute","steps":[{"color":"super-light-blue","value":0}]},
          "unit":"none"
        },
        "overrides":[]
      },
      "gridPos":{"h":7,"w":12,"x":12,"y":0},
      "id":7,
      "interval":"1s",
      "options":{"legend":{"calcs":["mean","sum"],"displayMode":"table","placement":"right","showLegend":false},"tooltip":{"hideZeros":false,"mode":"single","sort":"none"}},
      "pluginVersion":"12.3.0",
      "targets":[{"datasource":{"type":"victoriametrics-logs-datasource","uid":"ds-vlogs"},"editorMode":"code","expr":"ins:$ins job:$job $search | stats by (ins,job) count() as count","legendFormat":"{{ ins }}.{{ job }}","queryType":"statsRange","refId":"A"}],
      "title":"Searched Logs",
      "type":"timeseries"
    },{
      "datasource":{"type":"victoriametrics-logs-datasource","uid":"ds-vlogs"},
      "gridPos":{"h":19,"w":24,"x":0,"y":7},
      "id":2,
      "options":{"dedupStrategy":"none","enableInfiniteScrolling":true,"enableLogDetails":true,"fontSize":"small","prettifyLogMessage":false,"showCommonLabels":false,"showControls":true,"showLabels":true,"showTime":true,"sortOrder":"Descending","wrapLogMessage":false},
      "pluginVersion":"12.3.0",
      "targets":[{"datasource":{"type":"victoriametrics-logs-datasource","uid":"ds-vlogs"},"editorMode":"code","expr":"ins:$ins job:$job $search ","queryType":"instant","refId":"A"}],
      "title":"Raw Logs",
      "type":"logs"
    }
  ],
  "preload":false,
  "refresh":"",
  "schemaVersion":42,
  "tags":["Pigsty","INFRA","Instance","NODE"],
  "templating":{
    "list":[
      {
        "allValue":".*",
        "allowCustomValue":false,
        "current":{},
        "datasource":{"type":"victoriametrics-logs-datasource","uid":"ds-vlogs"},
        "definition":"",
        "description":"Instance Name of component (the ins label)",
        "includeAll":false,
        "label":"Instance",
        "multi":true,
        "name":"ins",
        "options":[],
        "query":{"field":"ins","limit":25,"query":"","refId":"VictoriaLogsVariableQueryEditor-VariableQuery","type":"fieldValue"},
        "refresh":2,
        "regex":"",
        "type":"query"
      },
      {"allValue":".*","current":{},"datasource":{"type":"victoriametrics-logs-datasource","uid":"ds-vlogs"},"definition":"","description":"","includeAll":true,"label":"Job","multi":true,"name":"job","options":[],"query":{"field":"job","limit":25,"query":"","refId":"VictoriaLogsVariableQueryEditor-VariableQuery","type":"fieldValue"},"refresh":1,"regex":"","sort":1,"type":"query"},
      {"current":{},"description":"LogsQL Query String: https://docs.victoriametrics.com/victorialogs/logsql/","label":"Search","name":"search","options":[{"selected":true,"text":"","value":""}],"query":"","type":"textbox"}
    ]
  },
  "time":{"from":"now-1h","to":"now"},
  "timepicker":{},
  "timezone":"browser",
  "title":"Logs Instance",
  "uid":"logs-instance",
  "version":1,
  "weekStart":""
}