2023-10-24 15:46:25 +03:00
{
"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 ,
2024-05-21 14:56:35 +03:00
"id" : 1 ,
2023-10-24 15:46:25 +03:00
"links" : [ ] ,
"liveNow" : false ,
"panels" : [
{
"collapsed" : false ,
"gridPos" : {
"h" : 1 ,
"w" : 24 ,
"x" : 0 ,
"y" : 0
} ,
"id" : 3 ,
"panels" : [ ] ,
"title" : "Total & Errors" ,
"type" : "row"
} ,
{
"datasource" : {
"type" : "grafana-clickhouse-datasource" ,
2024-05-21 14:56:35 +03:00
"uid" : "c029a1fb-9305-40f9-ad75-bd648c3138b4"
2023-10-24 15:46:25 +03:00
} ,
"description" : "" ,
"fieldConfig" : {
"defaults" : {
"color" : {
"mode" : "palette-classic"
} ,
"custom" : {
2024-05-21 14:56:35 +03:00
"axisBorderShow" : false ,
2023-10-24 15:46:25 +03:00
"axisCenteredZero" : false ,
"axisColorMode" : "series" ,
"axisLabel" : "" ,
"axisPlacement" : "auto" ,
"barAlignment" : 0 ,
"drawStyle" : "line" ,
"fillOpacity" : 0 ,
"gradientMode" : "hue" ,
"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
}
]
} ,
"unit" : "recps"
} ,
"overrides" : [ ]
} ,
"gridPos" : {
"h" : 8 ,
"w" : 12 ,
"x" : 0 ,
"y" : 1
} ,
"id" : 4 ,
"options" : {
"legend" : {
"calcs" : [ ] ,
"displayMode" : "list" ,
"placement" : "bottom" ,
"showLegend" : true
} ,
"timezone" : [
"Europe/Moscow"
] ,
"tooltip" : {
"mode" : "single" ,
"sort" : "none"
}
} ,
"targets" : [
{
"builderOptions" : {
"database" : "default" ,
"fields" : [
"priority" ,
"logdatetime"
] ,
"filters" : [
{
"condition" : "AND" ,
"filterType" : "custom" ,
"key" : "logdatetime" ,
"operator" : "WITH IN DASHBOARD TIME RANGE" ,
"restrictToFields" : [
{
"label" : "logdatetime" ,
"name" : "logdatetime" ,
"picklistValues" : [ ] ,
"type" : "DateTime"
}
] ,
"type" : "datetime"
} ,
{
"condition" : "AND" ,
"filterType" : "custom" ,
"key" : "program" ,
"operator" : "=" ,
"type" : "String" ,
"value" : "${program:singlequote}"
} ,
{
"condition" : "AND" ,
"filterType" : "custom" ,
"key" : "message" ,
"operator" : "LIKE" ,
"type" : "String" ,
"value" : "$filter1"
}
] ,
"limit" : 5000 ,
"metrics" : [
{
"aggregation" : "count" ,
"alias" : "" ,
"field" : ""
}
] ,
"mode" : "trend" ,
"orderBy" : [ ] ,
"table" : "log_docker_raw" ,
"timeField" : "logdatetime" ,
"timeFieldType" : "DateTime"
} ,
"datasource" : {
"type" : "grafana-clickhouse-datasource" ,
2024-05-21 14:56:35 +03:00
"uid" : "c029a1fb-9305-40f9-ad75-bd648c3138b4"
2023-10-24 15:46:25 +03:00
} ,
"queryType" : "builder" ,
"rawSql" : "SELECT $__timeInterval(logdatetime) as time, count() FROM \"default\".\"log_docker_raw\" WHERE $__timeFilter(logdatetime) AND ( logdatetime >= $__fromTime AND logdatetime <= $__toTime ) AND ( program = ${program:singlequote} ) AND ( message LIKE '%$filter1%' ) GROUP BY time ORDER BY time ASC LIMIT 5000" ,
"refId" : "A"
}
] ,
"title" : "Total messages" ,
"type" : "timeseries"
} ,
{
"datasource" : {
"type" : "grafana-clickhouse-datasource" ,
2024-05-21 14:56:35 +03:00
"uid" : "c029a1fb-9305-40f9-ad75-bd648c3138b4"
2023-10-24 15:46:25 +03:00
} ,
"fieldConfig" : {
"defaults" : {
"color" : {
"mode" : "palette-classic"
} ,
"custom" : {
2024-05-21 14:56:35 +03:00
"axisBorderShow" : false ,
2023-10-24 15:46:25 +03:00
"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" : 8 ,
"w" : 12 ,
"x" : 12 ,
"y" : 1
} ,
"id" : 5 ,
"options" : {
"legend" : {
"calcs" : [ ] ,
"displayMode" : "list" ,
"placement" : "bottom" ,
"showLegend" : true
} ,
"tooltip" : {
"mode" : "single" ,
"sort" : "none"
}
} ,
"targets" : [
{
"builderOptions" : {
"database" : "default" ,
"fields" : [
"priority"
] ,
"filters" : [
{
"condition" : "AND" ,
"filterType" : "custom" ,
"key" : "logdatetime" ,
"operator" : "WITH IN DASHBOARD TIME RANGE" ,
"restrictToFields" : [
{
"label" : "logdatetime" ,
"name" : "logdatetime" ,
"picklistValues" : [ ] ,
"type" : "DateTime"
}
] ,
"type" : "datetime"
} ,
{
"condition" : "AND" ,
"filterType" : "custom" ,
"key" : "priority" ,
"operator" : "=" ,
"type" : "String" ,
"value" : "error"
} ,
{
"condition" : "AND" ,
"filterType" : "custom" ,
"key" : "message" ,
"operator" : "LIKE" ,
"type" : "String" ,
"value" : "$filter1"
}
] ,
"limit" : 5000 ,
"metrics" : [ ] ,
"mode" : "trend" ,
"orderBy" : [ ] ,
"table" : "log_docker_raw" ,
"timeField" : "logdatetime" ,
"timeFieldType" : "DateTime"
} ,
"datasource" : {
"type" : "grafana-clickhouse-datasource" ,
2024-05-21 14:56:35 +03:00
"uid" : "c029a1fb-9305-40f9-ad75-bd648c3138b4"
2023-10-24 15:46:25 +03:00
} ,
"queryType" : "builder" ,
"rawSql" : "SELECT $__timeInterval(logdatetime) as time FROM \"default\".\"log_docker_raw\" WHERE $__timeFilter(logdatetime) AND ( logdatetime >= $__fromTime AND logdatetime <= $__toTime ) AND ( priority = 'error' ) AND ( message LIKE '%$filter1%' ) GROUP BY time ORDER BY time ASC LIMIT 5000" ,
"refId" : "A"
}
] ,
"title" : "Total errors" ,
"type" : "timeseries"
} ,
{
"collapsed" : false ,
"gridPos" : {
"h" : 1 ,
"w" : 24 ,
"x" : 0 ,
"y" : 9
} ,
"id" : 6 ,
"panels" : [ ] ,
"title" : "Structured logs" ,
"type" : "row"
} ,
{
"datasource" : {
"type" : "grafana-clickhouse-datasource" ,
2024-05-21 14:56:35 +03:00
"uid" : "c029a1fb-9305-40f9-ad75-bd648c3138b4"
2023-10-24 15:46:25 +03:00
} ,
"fieldConfig" : {
"defaults" : {
"color" : {
"mode" : "continuous-GrYlRd"
} ,
"custom" : {
"align" : "auto" ,
"cellOptions" : {
"type" : "auto"
} ,
"inspect" : false
} ,
"displayName" : "Priority" ,
"mappings" : [
{
"options" : {
"DEBUG" : {
"color" : "dark-green" ,
"index" : 0
} ,
"ERROR" : {
"color" : "dark-red" ,
"index" : 3
} ,
"INFO" : {
"color" : "dark-blue" ,
"index" : 1
} ,
"WARN" : {
"color" : "dark-yellow" ,
"index" : 2
}
} ,
"type" : "value"
}
] ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [
{
"color" : "green" ,
"value" : null
}
]
} ,
"unit" : "string"
} ,
"overrides" : [
{
"matcher" : {
"id" : "byName" ,
"options" : "logdatetime"
} ,
"properties" : [
{
"id" : "custom.width" ,
"value" : 196
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "host"
} ,
"properties" : [
{
"id" : "custom.width" ,
"value" : 132
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "program"
} ,
"properties" : [
{
"id" : "custom.width" ,
"value" : 210
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "priority"
} ,
"properties" : [
{
"id" : "custom.width" ,
"value" : 71
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "time"
} ,
"properties" : [
{
"id" : "custom.width" ,
"value" : 266
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "level"
} ,
"properties" : [
{
"id" : "custom.width" ,
"value" : 80
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "handler"
} ,
"properties" : [
{
"id" : "custom.width" ,
"value" : 217
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "msg"
} ,
"properties" : [
{
"id" : "custom.width" ,
"value" : 1307
} ,
{
"id" : "custom.inspect" ,
"value" : true
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "Message"
} ,
"properties" : [
{
"id" : "custom.width" ,
2024-05-28 14:04:03 +03:00
"value" : 658
2023-10-24 15:46:25 +03:00
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "Context"
} ,
"properties" : [
{
"id" : "custom.cellOptions" ,
"value" : {
"type" : "color-text"
}
} ,
{
"id" : "custom.inspect" ,
"value" : true
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "connection"
} ,
"properties" : [
{
"id" : "custom.width" ,
"value" : 220
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "account"
} ,
"properties" : [
{
"id" : "custom.width" ,
"value" : 223
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
2024-05-28 14:04:03 +03:00
"options" : "Message"
2023-10-24 15:46:25 +03:00
} ,
"properties" : [
{
"id" : "custom.inspect" ,
"value" : true
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
2024-05-28 14:04:03 +03:00
"options" : "Priority"
2023-10-24 15:46:25 +03:00
} ,
"properties" : [
{
2024-05-28 14:04:03 +03:00
"id" : "custom.cellOptions" ,
"value" : {
"type" : "color-text"
}
2023-10-24 15:46:25 +03:00
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
2024-05-28 14:04:03 +03:00
"options" : "Handler"
2023-10-24 15:46:25 +03:00
} ,
"properties" : [
{
"id" : "custom.cellOptions" ,
"value" : {
2024-05-28 14:04:03 +03:00
"type" : "json-view"
2023-10-24 15:46:25 +03:00
}
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
2024-05-28 14:04:03 +03:00
"options" : "TS"
2023-10-24 15:46:25 +03:00
} ,
"properties" : [
{
2024-05-28 14:04:03 +03:00
"id" : "custom.width" ,
"value" : 172
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "Account"
} ,
"properties" : [
{
"id" : "custom.width" ,
"value" : 113
2023-10-24 15:46:25 +03:00
}
]
}
]
} ,
"gridPos" : {
"h" : 27 ,
"w" : 24 ,
"x" : 0 ,
"y" : 10
} ,
"id" : 7 ,
"options" : {
"cellHeight" : "sm" ,
"footer" : {
"countRows" : false ,
"enablePagination" : false ,
"fields" : "" ,
"reducer" : [
"sum"
] ,
"show" : false
} ,
"showHeader" : true ,
"sortBy" : [ ]
} ,
2024-05-21 14:56:35 +03:00
"pluginVersion" : "10.4.1" ,
2023-10-24 15:46:25 +03:00
"targets" : [
{
"builderOptions" : {
"database" : "default" ,
"fields" : [
"host" ,
"program" ,
"logdatetime" ,
"message"
] ,
"filters" : [
{
"condition" : "AND" ,
"filterType" : "custom" ,
"key" : "logdatetime" ,
"operator" : "WITH IN DASHBOARD TIME RANGE" ,
"type" : "DateTime" ,
"value" : "TODAY"
} ,
{
"condition" : "AND" ,
"filterType" : "custom" ,
"key" : "program" ,
"operator" : "=" ,
"type" : "String" ,
"value" : "${program:singlequote}"
} ,
{
"condition" : "AND" ,
"filterType" : "custom" ,
"key" : "message" ,
"operator" : "LIKE" ,
"type" : "String" ,
"value" : "$filter1"
}
] ,
"limit" : 5000 ,
"metrics" : [ ] ,
"mode" : "list" ,
"orderBy" : [
{
"dir" : "DESC" ,
"name" : "logdatetime"
}
] ,
"table" : "log_docker_raw" ,
"timeField" : "logdatetime" ,
"timeFieldType" : "DateTime"
} ,
"datasource" : {
"type" : "grafana-clickhouse-datasource" ,
2024-05-21 14:56:35 +03:00
"uid" : "c029a1fb-9305-40f9-ad75-bd648c3138b4"
2023-10-24 15:46:25 +03:00
} ,
"format" : 1 ,
"meta" : {
"builderOptions" : {
"database" : "default" ,
"fields" : [
"host" ,
"program" ,
"logdatetime" ,
"message"
] ,
"filters" : [
{
"condition" : "AND" ,
"filterType" : "custom" ,
"key" : "logdatetime" ,
"operator" : "WITH IN DASHBOARD TIME RANGE" ,
"type" : "DateTime" ,
"value" : "TODAY"
} ,
{
"condition" : "AND" ,
"filterType" : "custom" ,
"key" : "program" ,
"operator" : "=" ,
"type" : "String" ,
"value" : "${program:singlequote}"
} ,
{
"condition" : "AND" ,
"filterType" : "custom" ,
"key" : "message" ,
"operator" : "LIKE" ,
"type" : "String" ,
"value" : "$filter1"
}
] ,
"limit" : 5000 ,
"metrics" : [ ] ,
"mode" : "list" ,
"orderBy" : [
{
"dir" : "DESC" ,
"name" : "logdatetime"
}
] ,
"table" : "log_docker_raw" ,
"timeField" : "logdatetime" ,
"timeFieldType" : "DateTime"
}
} ,
"queryType" : "sql" ,
2024-05-28 14:04:03 +03:00
"rawSql" : "SELECT \n visitParamExtractString(message, 'datetime') as time,\n visitParamExtractString(message, 'level_name') as level,\n visitParamExtractString(message, 'connection') as connection,\n visitParamExtractString(message, 'account') as account,\n visitParamExtractString(message, 'handler') as handler,\n visitParamExtractString(message, 'message') as msg,\n visitParamExtractRaw(message, 'context') as ctx\nFROM \"default\".\"log_docker_raw\"\nWHERE ( logdatetime >= $__fromTime AND logdatetime <= $__toTime )\n AND IF('Any' IN (${priority}), 1 = 1, level IN (${priority}))\n AND ( program = ${program:singlequote} )\n AND ( message LIKE '%$filter1%' )\n AND ( message LIKE '%$filter2%' )\n AND ( message LIKE '%$filter3%' )\n AND ( msg <> '' )\nORDER BY logdatetime DESC LIMIT 5000" ,
2023-10-24 15:46:25 +03:00
"refId" : "A" ,
"selectedFormat" : 4
}
] ,
"title" : "Structured logs output" ,
"transformations" : [
{
"id" : "organize" ,
"options" : {
"excludeByName" : { } ,
2024-05-28 14:04:03 +03:00
"includeByName" : { } ,
2023-10-24 15:46:25 +03:00
"indexByName" : { } ,
"renameByName" : {
"account" : "Account" ,
"connection" : "Connection" ,
2024-05-28 14:04:03 +03:00
"ctx" : "Context" ,
2023-10-24 15:46:25 +03:00
"handler" : "Handler" ,
"level" : "Priority" ,
"msg" : "Message" ,
"raw" : "Raw" ,
"time" : "TS"
}
}
}
] ,
"type" : "table"
} ,
{
2024-05-21 14:56:35 +03:00
"collapsed" : false ,
2023-10-24 15:46:25 +03:00
"gridPos" : {
"h" : 1 ,
"w" : 24 ,
"x" : 0 ,
"y" : 37
} ,
"id" : 1 ,
2024-05-21 14:56:35 +03:00
"panels" : [ ] ,
"title" : "Logs" ,
"type" : "row"
} ,
{
"datasource" : {
"type" : "grafana-clickhouse-datasource" ,
"uid" : "c029a1fb-9305-40f9-ad75-bd648c3138b4"
} ,
"fieldConfig" : {
"defaults" : {
"color" : {
"mode" : "thresholds"
2023-10-24 15:46:25 +03:00
} ,
2024-05-21 14:56:35 +03:00
"custom" : {
"align" : "auto" ,
"cellOptions" : {
"type" : "auto"
2023-10-24 15:46:25 +03:00
} ,
2024-05-21 14:56:35 +03:00
"inspect" : false
} ,
"mappings" : [ ] ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [
2023-10-24 15:46:25 +03:00
{
2024-05-28 14:04:03 +03:00
"color" : "green" ,
"value" : null
2023-10-24 15:46:25 +03:00
} ,
{
2024-05-21 14:56:35 +03:00
"color" : "red" ,
"value" : 80
}
]
}
} ,
"overrides" : [
{
"matcher" : {
"id" : "byName" ,
"options" : "logdatetime"
} ,
"properties" : [
2023-10-24 15:46:25 +03:00
{
2024-05-21 14:56:35 +03:00
"id" : "custom.width" ,
"value" : 196
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "host"
} ,
"properties" : [
2023-10-24 15:46:25 +03:00
{
2024-05-21 14:56:35 +03:00
"id" : "custom.width" ,
"value" : 132
2023-10-24 15:46:25 +03:00
}
]
} ,
2024-05-21 14:56:35 +03:00
{
"matcher" : {
"id" : "byName" ,
"options" : "program"
} ,
"properties" : [
{
"id" : "custom.width" ,
"value" : 210
}
]
2023-10-24 15:46:25 +03:00
} ,
2024-05-21 14:56:35 +03:00
{
"matcher" : {
"id" : "byName" ,
"options" : "priority"
2023-10-24 15:46:25 +03:00
} ,
2024-05-21 14:56:35 +03:00
"properties" : [
{
"id" : "custom.width" ,
"value" : 71
}
]
2023-10-24 15:46:25 +03:00
} ,
2024-05-21 14:56:35 +03:00
{
"matcher" : {
"id" : "byName" ,
"options" : "message"
} ,
"properties" : [
{
"id" : "custom.cellOptions" ,
"value" : {
"type" : "json-view"
}
2023-10-24 15:46:25 +03:00
} ,
2024-05-21 14:56:35 +03:00
{
"id" : "custom.inspect" ,
"value" : true
}
]
}
]
} ,
"gridPos" : {
"h" : 27 ,
"w" : 24 ,
"x" : 0 ,
"y" : 38
} ,
"id" : 2 ,
"options" : {
"cellHeight" : "sm" ,
"footer" : {
"countRows" : false ,
"fields" : "" ,
"reducer" : [
"sum"
] ,
"show" : false
} ,
"showHeader" : true ,
"sortBy" : [ ]
} ,
"pluginVersion" : "10.4.1" ,
"targets" : [
{
"builderOptions" : {
"database" : "default" ,
"fields" : [
"host" ,
"program" ,
"logdatetime" ,
"priority" ,
"message"
] ,
"filters" : [
{
"condition" : "AND" ,
"filterType" : "custom" ,
"key" : "logdatetime" ,
"operator" : "WITH IN DASHBOARD TIME RANGE" ,
"type" : "DateTime" ,
"value" : "TODAY"
2023-10-24 15:46:25 +03:00
} ,
2024-05-21 14:56:35 +03:00
{
"condition" : "AND" ,
"filterType" : "custom" ,
"key" : "program" ,
"operator" : "=" ,
"type" : "String" ,
"value" : "${program:singlequote}"
2023-10-24 15:46:25 +03:00
} ,
2024-05-21 14:56:35 +03:00
{
"condition" : "AND" ,
"filterType" : "custom" ,
"key" : "message" ,
"operator" : "LIKE" ,
"type" : "String" ,
"value" : "$filter1"
}
] ,
"limit" : 5000 ,
"metrics" : [ ] ,
"mode" : "list" ,
"orderBy" : [
{
"dir" : "DESC" ,
"name" : "logdatetime"
}
] ,
"table" : "log_docker_raw" ,
"timeField" : "logdatetime" ,
"timeFieldType" : "DateTime"
} ,
"datasource" : {
"type" : "grafana-clickhouse-datasource" ,
"uid" : "c029a1fb-9305-40f9-ad75-bd648c3138b4"
} ,
"format" : 1 ,
"meta" : {
"builderOptions" : {
"fields" : [ ] ,
"limit" : 100 ,
"mode" : "list"
2023-10-24 15:46:25 +03:00
}
2024-05-21 14:56:35 +03:00
} ,
"queryType" : "builder" ,
"rawSql" : "SELECT \"host\", \"program\", \"logdatetime\", \"priority\", \"message\" FROM \"default\".\"log_docker_raw\" WHERE ( logdatetime >= $__fromTime AND logdatetime <= $__toTime ) AND ( program = ${program:singlequote} ) AND ( message LIKE '%$filter1%' ) ORDER BY logdatetime DESC LIMIT 5000" ,
"refId" : "A" ,
"selectedFormat" : 4
2023-10-24 15:46:25 +03:00
}
] ,
2024-05-21 14:56:35 +03:00
"title" : "Panel Title" ,
"type" : "table"
2023-10-24 15:46:25 +03:00
}
] ,
"refresh" : "" ,
2024-05-21 14:56:35 +03:00
"schemaVersion" : 39 ,
2023-10-24 15:46:25 +03:00
"tags" : [ ] ,
"templating" : {
"list" : [
{
"current" : {
2024-05-28 14:04:03 +03:00
"selected" : true ,
2023-10-24 15:46:25 +03:00
"text" : "telegram-mg_telegram-1" ,
"value" : "telegram-mg_telegram-1"
} ,
"datasource" : {
"type" : "grafana-clickhouse-datasource" ,
2024-05-21 14:56:35 +03:00
"uid" : "c029a1fb-9305-40f9-ad75-bd648c3138b4"
2023-10-24 15:46:25 +03:00
} ,
"definition" : "SELECT DISTINCT program FROM default.log_docker_raw WHERE logdatetime > now() - interval 6 hours;" ,
"hide" : 0 ,
"includeAll" : false ,
"label" : "Program" ,
"multi" : false ,
"name" : "program" ,
"options" : [ ] ,
"query" : "SELECT DISTINCT program FROM default.log_docker_raw WHERE logdatetime > now() - interval 6 hours;" ,
"refresh" : 1 ,
"regex" : "" ,
"skipUrlSync" : false ,
"sort" : 1 ,
"type" : "query"
} ,
{
"current" : {
"selected" : true ,
"text" : [
"Any"
] ,
"value" : [
"Any"
]
} ,
"hide" : 0 ,
"includeAll" : false ,
"label" : "Priority" ,
"multi" : true ,
"name" : "priority" ,
"options" : [
{
"selected" : true ,
"text" : "Any" ,
"value" : "Any"
} ,
{
"selected" : false ,
"text" : "DEBUG" ,
"value" : "DEBUG"
} ,
{
"selected" : false ,
"text" : "INFO" ,
"value" : "INFO"
} ,
{
"selected" : false ,
"text" : "WARN" ,
"value" : "WARN"
} ,
{
"selected" : false ,
"text" : "ERROR" ,
"value" : "ERROR"
}
] ,
"query" : "Any,DEBUG,INFO,WARN,ERROR" ,
"queryValue" : "" ,
"skipUrlSync" : false ,
"type" : "custom"
} ,
{
"current" : {
"selected" : false ,
"text" : "" ,
"value" : ""
} ,
"hide" : 0 ,
"label" : "Filter #1" ,
"name" : "filter1" ,
"options" : [
{
"selected" : true ,
"text" : "*" ,
"value" : "*"
}
] ,
"query" : "" ,
"skipUrlSync" : false ,
"type" : "textbox"
} ,
{
"current" : { } ,
"hide" : 0 ,
"name" : "filter2" ,
"options" : [ ] ,
"query" : "" ,
"skipUrlSync" : false ,
"type" : "textbox"
} ,
{
"current" : { } ,
"hide" : 0 ,
"name" : "filter3" ,
"options" : [ ] ,
"query" : "" ,
"skipUrlSync" : false ,
"type" : "textbox"
}
]
} ,
"time" : {
"from" : "now-6h" ,
"to" : "now"
} ,
"timepicker" : { } ,
"timezone" : "" ,
"title" : "Logs + Structured via Query" ,
"uid" : "b445eb43-25d1-4112-b628-3b8acf037f10" ,
2024-05-28 14:04:03 +03:00
"version" : 5 ,
2023-10-24 15:46:25 +03:00
"weekStart" : ""
}