{ "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, "id": 1, "links": [], "panels": [ { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 }, "id": 6, "panels": [], "title": "Service: API", "type": "row" }, { "datasource": { "type": "loki", "uid": "P8E80F9AEF21F6940" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "points", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "smooth", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": 5000, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "#73BF69", "value": null } ] } }, "overrides": [] }, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 1 }, "id": 11, "options": { "legend": { "calcs": ["sum"], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "pluginVersion": "11.3.0", "targets": [ { "editorMode": "builder", "expr": "count(rate({service=\"api\"} | json | status <= 399 [$__auto]))", "legendFormat": "<= 300", "queryType": "range", "refId": "A" }, { "datasource": { "type": "loki", "uid": "P8E80F9AEF21F6940" }, "editorMode": "code", "expr": "count(rate({service=\"api\"} | json | status >= 400 and status <= 499 [$__auto]))", "hide": false, "legendFormat": "400 - 499", "queryType": "range", "refId": "B" }, { "datasource": { "type": "loki", "uid": "P8E80F9AEF21F6940" }, "editorMode": "builder", "expr": "count(rate({service=\"api\"} | json | status >= 500 [$__auto]))", "hide": false, "legendFormat": ">= 500", "queryType": "range", "refId": "C" } ], "title": "Requests", "type": "timeseries" }, { "datasource": { "type": "loki", "uid": "P8E80F9AEF21F6940" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 4, "x": 0, "y": 8 }, "id": 10, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["sum"], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "11.3.0", "targets": [ { "editorMode": "builder", "expr": "count(rate({service=\"api\"} | json | status <= 399 [$__auto]))", "queryType": "range", "refId": "A" } ], "title": "<= 399", "type": "stat" }, { "datasource": { "type": "loki", "uid": "P8E80F9AEF21F6940" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "yellow", "value": null } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 4, "x": 4, "y": 8 }, "id": 3, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["sum"], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "11.3.0", "targets": [ { "editorMode": "code", "expr": "count(rate({service=\"api\"} | json | status >= 400 and status <= 499 [$__auto]))", "queryType": "range", "refId": "A" } ], "title": "400 - 499", "type": "stat" }, { "datasource": { "type": "loki", "uid": "P8E80F9AEF21F6940" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "red", "value": null } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 4, "x": 8, "y": 8 }, "id": 4, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["sum"], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "11.3.0", "targets": [ { "editorMode": "code", "expr": "count(rate({service=\"api\"} | json | status >= 500 [$__auto]))", "queryType": "range", "refId": "A" } ], "title": "400 - 499", "type": "stat" }, { "datasource": { "type": "loki", "uid": "P8E80F9AEF21F6940" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "blue", "value": null } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 4, "x": 0, "y": 16 }, "id": 7, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["sum"], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "11.3.0", "targets": [ { "editorMode": "builder", "expr": "count(rate({service=\"api\"} | json | level = `info` [$__auto]))", "queryType": "range", "refId": "A" } ], "title": "Info", "type": "stat" }, { "datasource": { "type": "loki", "uid": "P8E80F9AEF21F6940" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "yellow", "value": null } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 4, "x": 4, "y": 16 }, "id": 8, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["sum"], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "11.3.0", "targets": [ { "editorMode": "builder", "expr": "count(rate({service=\"api\"} | json | level = `warn` [$__auto]))", "queryType": "range", "refId": "A" } ], "title": "Warning", "type": "stat" }, { "datasource": { "type": "loki", "uid": "P8E80F9AEF21F6940" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "red", "value": null } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 4, "x": 8, "y": 16 }, "id": 9, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": ["sum"], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "11.3.0", "targets": [ { "editorMode": "builder", "expr": "count(rate({service=\"api\"} | json | level = `error` [$__auto]))", "queryType": "range", "refId": "A" } ], "title": "Error", "type": "stat" }, { "datasource": { "type": "loki", "uid": "P8E80F9AEF21F6940" }, "fieldConfig": { "defaults": {}, "overrides": [] }, "gridPos": { "h": 17, "w": 24, "x": 0, "y": 24 }, "id": 5, "options": { "dedupStrategy": "none", "enableLogDetails": true, "prettifyLogMessage": false, "showCommonLabels": false, "showLabels": false, "showTime": true, "sortOrder": "Descending", "wrapLogMessage": false }, "pluginVersion": "11.3.0", "targets": [ { "editorMode": "builder", "expr": "{service=\"api\"} | json", "queryType": "range", "refId": "A" } ], "title": "Logs", "type": "logs" } ], "preload": false, "schemaVersion": 40, "tags": [], "templating": { "list": [] }, "time": { "from": "now-1h", "to": "now" }, "timepicker": {}, "timezone": "browser", "title": "Logging", "uid": "be3r0x46iwlq8f", "version": 2, "weekStart": "monday" }