2024-05-04 12:01:41 +00:00
{
"links" : [
{
"asDropdown" : false ,
"icon" : "external link" ,
"includeVars" : true ,
"keepTime" : true ,
"tags" : [
"influxdb-mixin"
] ,
"targetBlank" : false ,
"title" : "Other InfluxDB dashboards" ,
"type" : "dashboards" ,
"url" : ""
}
] ,
"panels" : [
{
"datasource" : {
"type" : "loki" ,
"uid" : "${loki_datasource}"
} ,
"description" : "Logs volume grouped by \"level\" label." ,
"fieldConfig" : {
"defaults" : {
"custom" : {
"drawStyle" : "bars" ,
"fillOpacity" : 50 ,
"stacking" : {
"mode" : "normal"
}
} ,
"unit" : "none"
} ,
"overrides" : [
{
"matcher" : {
"id" : "byRegexp" ,
"options" : "(E|e)merg|(F|f)atal|(A|a)lert|(C|c)rit.*"
} ,
"properties" : [
{
"id" : "color" ,
"value" : {
"fixedColor" : "purple" ,
"mode" : "fixed"
}
}
]
} ,
{
"matcher" : {
"id" : "byRegexp" ,
"options" : "(E|e)(rr.*|RR.*)"
} ,
"properties" : [
{
"id" : "color" ,
"value" : {
"fixedColor" : "red" ,
"mode" : "fixed"
}
}
]
} ,
{
"matcher" : {
"id" : "byRegexp" ,
"options" : "(W|w)(arn.*|ARN.*|rn|RN)"
} ,
"properties" : [
{
"id" : "color" ,
"value" : {
"fixedColor" : "orange" ,
"mode" : "fixed"
}
}
]
} ,
{
"matcher" : {
"id" : "byRegexp" ,
"options" : "(N|n)(otice|ote)|(I|i)(nf.*|NF.*)"
} ,
"properties" : [
{
"id" : "color" ,
"value" : {
"fixedColor" : "green" ,
"mode" : "fixed"
}
}
]
} ,
{
"matcher" : {
"id" : "byRegexp" ,
"options" : "dbg.*|DBG.*|(D|d)(EBUG|ebug)"
} ,
"properties" : [
{
"id" : "color" ,
"value" : {
"fixedColor" : "blue" ,
"mode" : "fixed"
}
}
]
} ,
{
"matcher" : {
"id" : "byRegexp" ,
"options" : "(T|t)(race|RACE)"
} ,
"properties" : [
{
"id" : "color" ,
"value" : {
"fixedColor" : "light-blue" ,
"mode" : "fixed"
}
}
]
} ,
{
"matcher" : {
"id" : "byRegexp" ,
"options" : "logs"
} ,
"properties" : [
{
"id" : "color" ,
"value" : {
"fixedColor" : "text" ,
"mode" : "fixed"
}
}
]
}
]
} ,
"gridPos" : {
"h" : 6 ,
2024-10-25 03:33:09 +00:00
"w" : 24 ,
"x" : 0 ,
"y" : 0
2024-05-04 12:01:41 +00:00
} ,
"id" : 1 ,
2024-10-25 03:33:09 +00:00
"maxDataPoints" : 100 ,
2024-05-04 12:01:41 +00:00
"options" : {
"tooltip" : {
"mode" : "multi" ,
"sort" : "desc"
}
} ,
2024-10-25 03:33:09 +00:00
"pluginVersion" : "v11.0.0" ,
2024-05-04 12:01:41 +00:00
"targets" : [
{
"datasource" : {
"type" : "loki" ,
"uid" : "${loki_datasource}"
} ,
"expr" : "sum by (level) (count_over_time({job=~\"integrations/influxdb\",job=~\"$job\",influxdb_cluster=~\"$influxdb_cluster\",instance=~\"$instance\",level=~\"$level\",service=~\"$service\",engine=~\"$engine\"}\n|~ \"$regex_search\"\n\n[$__interval]))\n" ,
"legendFormat" : "{{ level }}"
}
] ,
"title" : "Logs volume" ,
"transformations" : [
{
"id" : "renameByRegex" ,
"options" : {
"regex" : "Value" ,
"renamePattern" : "logs"
}
}
] ,
"type" : "timeseries"
} ,
{
"datasource" : {
"type" : "datasource" ,
"uid" : "-- Mixed --"
} ,
"gridPos" : {
"h" : 18 ,
2024-10-25 03:33:09 +00:00
"w" : 24 ,
"x" : 0 ,
"y" : 18
2024-05-04 12:01:41 +00:00
} ,
"id" : 2 ,
"options" : {
"dedupStrategy" : "exact" ,
"enableLogDetails" : true ,
"prettifyLogMessage" : true ,
"showTime" : false ,
"wrapLogMessage" : true
} ,
2024-10-25 03:33:09 +00:00
"pluginVersion" : "v11.0.0" ,
2024-05-04 12:01:41 +00:00
"targets" : [
{
"datasource" : {
"type" : "loki" ,
"uid" : "${loki_datasource}"
} ,
"expr" : "{job=~\"integrations/influxdb\",job=~\"$job\",influxdb_cluster=~\"$influxdb_cluster\",instance=~\"$instance\",level=~\"$level\",service=~\"$service\",engine=~\"$engine\"} \n|~ \"$regex_search\"\n\n\n"
}
] ,
"title" : "Logs" ,
"type" : "logs"
}
] ,
"refresh" : "1m" ,
2024-10-25 03:33:09 +00:00
"schemaVersion" : 39 ,
2024-05-04 12:01:41 +00:00
"tags" : [
"influxdb-mixin"
] ,
"templating" : {
"list" : [
{
"label" : "Loki data source" ,
"name" : "loki_datasource" ,
"query" : "loki" ,
"regex" : "" ,
"type" : "datasource"
} ,
{
"allValue" : ".*" ,
"datasource" : {
"type" : "loki" ,
"uid" : "${loki_datasource}"
} ,
"includeAll" : true ,
"label" : "Job" ,
"multi" : true ,
"name" : "job" ,
"query" : "label_values({job=~\"integrations/influxdb\"}, job)" ,
"refresh" : 2 ,
"sort" : 1 ,
"type" : "query"
} ,
{
"allValue" : ".*" ,
"datasource" : {
"type" : "loki" ,
"uid" : "${loki_datasource}"
} ,
"includeAll" : true ,
"label" : "Influxdb_cluster" ,
"multi" : true ,
"name" : "influxdb_cluster" ,
"query" : "label_values({job=~\"integrations/influxdb\",job=~\"$job\"}, influxdb_cluster)" ,
"refresh" : 2 ,
"sort" : 1 ,
"type" : "query"
} ,
{
"allValue" : ".*" ,
"datasource" : {
"type" : "loki" ,
"uid" : "${loki_datasource}"
} ,
"includeAll" : true ,
"label" : "Instance" ,
"multi" : true ,
"name" : "instance" ,
"query" : "label_values({job=~\"integrations/influxdb\",job=~\"$job\",influxdb_cluster=~\"$influxdb_cluster\"}, instance)" ,
"refresh" : 2 ,
"sort" : 1 ,
"type" : "query"
} ,
{
"allValue" : ".*" ,
"datasource" : {
"type" : "loki" ,
"uid" : "${loki_datasource}"
} ,
"includeAll" : true ,
"label" : "Level" ,
"multi" : true ,
"name" : "level" ,
"query" : "label_values({job=~\"integrations/influxdb\",job=~\"$job\",influxdb_cluster=~\"$influxdb_cluster\",instance=~\"$instance\"}, level)" ,
"refresh" : 2 ,
"sort" : 1 ,
"type" : "query"
} ,
{
"allValue" : ".*" ,
"datasource" : {
"type" : "loki" ,
"uid" : "${loki_datasource}"
} ,
"includeAll" : true ,
"label" : "Service" ,
"multi" : true ,
"name" : "service" ,
"query" : "label_values({job=~\"integrations/influxdb\",job=~\"$job\",influxdb_cluster=~\"$influxdb_cluster\",instance=~\"$instance\",level=~\"$level\"}, service)" ,
"refresh" : 2 ,
"sort" : 1 ,
"type" : "query"
} ,
{
"allValue" : ".*" ,
"datasource" : {
"type" : "loki" ,
"uid" : "${loki_datasource}"
} ,
"includeAll" : true ,
"label" : "Engine" ,
"multi" : true ,
"name" : "engine" ,
"query" : "label_values({job=~\"integrations/influxdb\",job=~\"$job\",influxdb_cluster=~\"$influxdb_cluster\",instance=~\"$instance\",level=~\"$level\",service=~\"$service\"}, engine)" ,
"refresh" : 2 ,
"sort" : 1 ,
"type" : "query"
} ,
{
"current" : {
"selected" : false ,
"text" : "" ,
"value" : ""
} ,
"label" : "Regex search" ,
"name" : "regex_search" ,
"options" : [
{
"selected" : true ,
"text" : "" ,
"value" : ""
}
] ,
"query" : "" ,
"type" : "textbox"
}
]
} ,
"time" : {
"from" : "now-6h" ,
"to" : "now"
} ,
"timezone" : "utc" ,
"title" : "InfluxDB logs overview" ,
"uid" : "influxdb-logs-overview"
}