{ "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, "w": 24, "x": 0, "y": 0 }, "id": 1, "maxDataPoints": 100, "options": { "tooltip": { "mode": "multi", "sort": "desc" } }, "pluginVersion": "v11.0.0", "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, "w": 24, "x": 0, "y": 18 }, "id": 2, "options": { "dedupStrategy": "exact", "enableLogDetails": true, "prettifyLogMessage": true, "showTime": false, "wrapLogMessage": true }, "pluginVersion": "v11.0.0", "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", "schemaVersion": 39, "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" }