From 7e36924d64b67ddbf385e4e92bd292477c50ce80 Mon Sep 17 00:00:00 2001 From: Giacomo Marciani Date: Sun, 1 Dec 2024 01:27:46 +0100 Subject: [PATCH] [Grafana] Fix API Dashboard --- grafana/dashboards/api.json | 434 +++++++++++++++++++++++------------- 1 file changed, 274 insertions(+), 160 deletions(-) diff --git a/grafana/dashboards/api.json b/grafana/dashboards/api.json index a78e7f50..9e796b7d 100644 --- a/grafana/dashboards/api.json +++ b/grafana/dashboards/api.json @@ -3,7 +3,10 @@ "list": [ { "builtIn": 1, - "datasource": "-- Grafana --", + "datasource": { + "type": "datasource", + "uid": "grafana" + }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", @@ -22,14 +25,16 @@ }, "description": "Dashboard for YAWA API monitoring", "editable": true, - "gnetId": null, + "fiscalYearStartMonth": 0, "graphTooltip": 1, - "iteration": 1630225989423, + "id": 4, "links": [], "panels": [ { - "cacheTimeout": null, - "datasource": "YAWA-Prometheus", + "datasource": { + "type": "prometheus", + "uid": "PF1524B2611758E37" + }, "description": "Availability -- 1h", "fieldConfig": { "defaults": { @@ -76,14 +81,14 @@ "y": 0 }, "id": 65, - "interval": null, - "links": [], + "interval": "1m", "maxDataPoints": 100, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", + "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" @@ -91,18 +96,26 @@ "fields": "", "values": false }, + "showPercentChange": false, "text": {}, - "textMode": "auto" + "textMode": "auto", + "wideLayout": true }, - "pluginVersion": "8.1.1", + "pluginVersion": "11.3.0", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "PF1524B2611758E37" + }, + "editorMode": "code", "exemplar": true, "expr": "sum(rate(http_server_requests_seconds_count{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\", outcome=\"SUCCESS\"}[1h])) / sum(rate(http_server_requests_seconds_count{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\"}[1h]))", "format": "time_series", "interval": "", "intervalFactor": 1, "legendFormat": "", + "range": true, "refId": "A", "step": 14400 } @@ -111,8 +124,10 @@ "type": "stat" }, { - "cacheTimeout": null, - "datasource": "YAWA-Prometheus", + "datasource": { + "type": "prometheus", + "uid": "PF1524B2611758E37" + }, "description": "Per-second requests -- 1h", "fieldConfig": { "defaults": { @@ -151,14 +166,14 @@ "y": 0 }, "id": 63, - "interval": null, - "links": [], + "interval": "1m", "maxDataPoints": 100, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", + "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" @@ -166,19 +181,27 @@ "fields": "", "values": false }, + "showPercentChange": false, "text": {}, - "textMode": "auto" + "textMode": "auto", + "wideLayout": true }, - "pluginVersion": "8.1.1", + "pluginVersion": "11.3.0", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "PF1524B2611758E37" + }, + "editorMode": "code", "exemplar": true, - "expr": "sum(rate(http_server_requests_seconds_count{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\"}[1h]))", + "expr": "sum(rate(http_server_requests_seconds_count{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\"}[1h])*3600)", "format": "time_series", "interval": "", "intervalFactor": 1, "legendFormat": "", "metric": "", + "range": true, "refId": "A", "step": 14400 } @@ -187,8 +210,10 @@ "type": "stat" }, { - "cacheTimeout": null, - "datasource": "YAWA-Prometheus", + "datasource": { + "type": "prometheus", + "uid": "PF1524B2611758E37" + }, "description": "Latency -- 1h", "fieldConfig": { "defaults": { @@ -235,14 +260,14 @@ "y": 0 }, "id": 92, - "interval": null, - "links": [], + "interval": "1m", "maxDataPoints": 100, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", + "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" @@ -250,12 +275,19 @@ "fields": "", "values": false }, + "showPercentChange": false, "text": {}, - "textMode": "auto" + "textMode": "auto", + "wideLayout": true }, - "pluginVersion": "8.1.1", + "pluginVersion": "11.3.0", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "PF1524B2611758E37" + }, + "editorMode": "code", "exemplar": true, "expr": "sum(rate(http_server_requests_seconds_sum{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\"}[1h])) / sum(rate(http_server_requests_seconds_count{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\"}[1h]))", "format": "time_series", @@ -263,6 +295,7 @@ "intervalFactor": 2, "legendFormat": "", "metric": "", + "range": true, "refId": "A", "step": 14400 } @@ -271,16 +304,23 @@ "type": "stat" }, { - "datasource": "YAWA-Prometheus", + "datasource": { + "type": "prometheus", + "uid": "PF1524B2611758E37" + }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", @@ -289,6 +329,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineStyle": { "fill": "solid" @@ -336,7 +377,7 @@ "y": 3 }, "id": 106, - "links": [], + "interval": "1m", "options": { "legend": { "calcs": [ @@ -345,34 +386,43 @@ "mean" ], "displayMode": "list", - "placement": "bottom" + "placement": "bottom", + "showLegend": true }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, - "pluginVersion": "8.1.1", + "pluginVersion": "11.3.0", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "PF1524B2611758E37" + }, + "editorMode": "code", "exemplar": true, - "expr": "sum(rate(http_server_requests_seconds_count{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\", outcome=\"SUCCESS\"}[$__rate_interval])) / sum(increase(http_server_requests_seconds_count{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\"}[$__rate_interval]))", + "expr": "sum(rate(http_server_requests_seconds_count{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\", outcome=\"SUCCESS\"}[1m])) / sum(increase(http_server_requests_seconds_count{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\"}[1m]))", "format": "time_series", "hide": false, "interval": "", "intervalFactor": 1, "legendFormat": "Availability", "metric": "", + "range": true, "refId": "A", "step": 2400 } ], - "timeFrom": null, - "timeShift": null, "title": "Availability", "type": "timeseries" }, { - "datasource": "YAWA-Prometheus", + "datasource": { + "type": "prometheus", + "uid": "PF1524B2611758E37" + }, "description": "", "fieldConfig": { "defaults": { @@ -380,9 +430,13 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", @@ -391,6 +445,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineStyle": { "fill": "solid" @@ -436,7 +491,7 @@ "y": 3 }, "id": 139, - "links": [], + "interval": "1m", "options": { "legend": { "calcs": [ @@ -445,44 +500,61 @@ "mean" ], "displayMode": "list", - "placement": "bottom" + "placement": "bottom", + "showLegend": true }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, - "pluginVersion": "8.1.1", + "pluginVersion": "11.3.0", "targets": [ { - "exemplar": true, - "expr": "sum(rate(http_server_requests_seconds_count{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\"}[$__rate_interval]))", + "datasource": { + "type": "prometheus", + "uid": "PF1524B2611758E37" + }, + "disableTextWrap": false, + "editorMode": "code", + "exemplar": false, + "expr": "sum(rate(http_server_requests_seconds_count{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\"}[1m])*60)", "format": "time_series", + "fullMetaSearch": false, "hide": false, + "includeNullMetadata": true, "instant": false, "interval": "", "intervalFactor": 1, "legendFormat": "Requests", "metric": "", + "range": true, "refId": "A", - "step": 2400 + "step": 2400, + "useBackend": false } ], - "timeFrom": null, - "timeShift": null, "title": "Volume", "type": "timeseries" }, { - "datasource": "YAWA-Prometheus", + "datasource": { + "type": "prometheus", + "uid": "PF1524B2611758E37" + }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", @@ -491,6 +563,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -538,7 +611,7 @@ "y": 3 }, "id": 137, - "links": [], + "interval": "1m", "options": { "legend": { "calcs": [ @@ -547,43 +620,56 @@ "mean" ], "displayMode": "list", - "placement": "bottom" + "placement": "bottom", + "showLegend": true }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, - "pluginVersion": "8.1.1", + "pluginVersion": "11.3.0", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "PF1524B2611758E37" + }, + "editorMode": "code", "exemplar": true, - "expr": "sum(rate(http_server_requests_seconds_sum{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\"}[$__rate_interval])) / sum(rate(http_server_requests_seconds_count{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\"}[$__rate_interval]))", + "expr": "sum(rate(http_server_requests_seconds_sum{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\"}[1m])) / sum(rate(http_server_requests_seconds_count{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\"}[1m]))", "format": "time_series", "hide": false, "interval": "", "intervalFactor": 1, "legendFormat": "Latency", "metric": "", + "range": true, "refId": "A", "step": 2400 } ], - "timeFrom": null, - "timeShift": null, "title": "Latency", "type": "timeseries" }, { - "datasource": "YAWA-Prometheus", + "datasource": { + "type": "prometheus", + "uid": "PF1524B2611758E37" + }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", @@ -592,6 +678,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -634,7 +721,7 @@ "y": 10 }, "id": 142, - "links": [], + "interval": "1m", "options": { "legend": { "calcs": [ @@ -643,27 +730,39 @@ "mean" ], "displayMode": "table", - "placement": "right" + "placement": "right", + "showLegend": true }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, - "pluginVersion": "8.1.1", + "pluginVersion": "11.3.0", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "PF1524B2611758E37" + }, + "editorMode": "code", "exemplar": true, - "expr": "sum(rate(http_server_requests_seconds_count{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\"}[$__rate_interval])) ", + "expr": "sum(rate(http_server_requests_seconds_count{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\"}[1m])*60)", "format": "time_series", "hide": false, "interval": "", "intervalFactor": 1, "legendFormat": "ALL", "metric": "", + "range": true, "refId": "A", "step": 2400 }, { + "datasource": { + "type": "prometheus", + "uid": "PF1524B2611758E37" + }, "exemplar": true, "expr": "sum(rate(http_server_requests_seconds_count{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\", outcome=\"SUCCESS\"}[$__rate_interval]))", "format": "time_series", @@ -676,6 +775,10 @@ "step": 2400 }, { + "datasource": { + "type": "prometheus", + "uid": "PF1524B2611758E37" + }, "exemplar": true, "expr": "sum(rate(http_server_requests_seconds_count{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\", outcome=\"SERVER_ERROR\"}[$__rate_interval]))", "format": "time_series", @@ -688,6 +791,10 @@ "step": 2400 }, { + "datasource": { + "type": "prometheus", + "uid": "PF1524B2611758E37" + }, "exemplar": true, "expr": "sum(rate(http_server_requests_seconds_count{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\", outcome=\"CLIENT_ERROR\"}[$__rate_interval]))", "format": "time_series", @@ -700,22 +807,27 @@ "step": 2400 } ], - "timeFrom": null, - "timeShift": null, "title": "Volume", "type": "timeseries" }, { - "datasource": "YAWA-Prometheus", + "datasource": { + "type": "prometheus", + "uid": "PF1524B2611758E37" + }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", @@ -724,6 +836,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -766,7 +879,7 @@ "y": 17 }, "id": 145, - "links": [], + "interval": "1m", "options": { "legend": { "calcs": [ @@ -775,27 +888,39 @@ "mean" ], "displayMode": "table", - "placement": "right" + "placement": "right", + "showLegend": true }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, - "pluginVersion": "8.1.1", + "pluginVersion": "11.3.0", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "PF1524B2611758E37" + }, + "editorMode": "code", "exemplar": true, - "expr": "sum(rate(http_server_requests_seconds_count{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\", outcome=\"SERVER_ERROR\"}[$__rate_interval])) ", + "expr": "sum(rate(http_server_requests_seconds_count{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\", outcome=\"SERVER_ERROR\"}[1m])*60) ", "format": "time_series", "hide": false, "interval": "", "intervalFactor": 1, "legendFormat": "ALL", "metric": "", + "range": true, "refId": "A", "step": 2400 }, { + "datasource": { + "type": "prometheus", + "uid": "PF1524B2611758E37" + }, "exemplar": true, "expr": "sum(rate(http_server_requests_seconds_count{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\", outcome=\"SERVER_ERROR\"}[$__rate_interval])) by(exception)", "format": "time_series", @@ -808,22 +933,27 @@ "step": 2400 } ], - "timeFrom": null, - "timeShift": null, "title": "Server Errors", "type": "timeseries" }, { - "datasource": "YAWA-Prometheus", + "datasource": { + "type": "prometheus", + "uid": "PF1524B2611758E37" + }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", @@ -832,6 +962,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -874,7 +1005,7 @@ "y": 24 }, "id": 143, - "links": [], + "interval": "1m", "options": { "legend": { "calcs": [ @@ -883,27 +1014,39 @@ "mean" ], "displayMode": "table", - "placement": "right" + "placement": "right", + "showLegend": true }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, - "pluginVersion": "8.1.1", + "pluginVersion": "11.3.0", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "PF1524B2611758E37" + }, + "editorMode": "code", "exemplar": true, - "expr": "sum(rate(http_server_requests_seconds_count{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\", outcome=\"CLIENT_ERROR\"}[$__rate_interval])) ", + "expr": "sum(rate(http_server_requests_seconds_count{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\", outcome=\"CLIENT_ERROR\"}[1m])*60)", "format": "time_series", "hide": false, "interval": "", "intervalFactor": 1, "legendFormat": "ALL", "metric": "", + "range": true, "refId": "A", "step": 2400 }, { + "datasource": { + "type": "prometheus", + "uid": "PF1524B2611758E37" + }, "exemplar": true, "expr": "sum(rate(http_server_requests_seconds_count{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\", outcome=\"CLIENT_ERROR\"}[$__rate_interval])) by(exception)", "format": "time_series", @@ -916,22 +1059,27 @@ "step": 2400 } ], - "timeFrom": null, - "timeShift": null, "title": "Client Errors", "type": "timeseries" }, { - "datasource": "YAWA-Prometheus", + "datasource": { + "type": "prometheus", + "uid": "PF1524B2611758E37" + }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", @@ -940,6 +1088,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineStyle": { "fill": "solid" @@ -989,7 +1138,7 @@ "y": 31 }, "id": 144, - "links": [], + "interval": "1m", "options": { "legend": { "calcs": [ @@ -998,24 +1147,36 @@ "mean" ], "displayMode": "table", - "placement": "right" + "placement": "right", + "showLegend": true }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, - "pluginVersion": "8.1.1", + "pluginVersion": "11.3.0", "targets": [ { + "datasource": { + "type": "prometheus", + "uid": "PF1524B2611758E37" + }, + "editorMode": "code", "exemplar": true, - "expr": "sum(rate(http_server_requests_seconds_sum{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\"}[$__rate_interval])) / sum(rate(http_server_requests_seconds_count{application=\"$application\", stack=\"$stack\", region=\"$region\", method=\"$method\", uri=\"$uri\"}[$__rate_interval]))", + "expr": "sum(rate(http_server_requests_seconds_sum{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\"}[1m])) / sum(rate(http_server_requests_seconds_count{application=\"$application\", stack=\"$stack\", region=\"$region\", method=\"$method\", uri=\"$uri\"}[1m]))", "format": "time_series", "interval": "", "intervalFactor": 1, "legendFormat": "ALL", + "range": true, "refId": "A" }, { + "datasource": { + "type": "prometheus", + "uid": "PF1524B2611758E37" + }, "exemplar": true, "expr": "sum(rate(http_server_requests_seconds_sum{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\", outcome=\"SUCCESS\"}[$__rate_interval])) / sum(rate(http_server_requests_seconds_count{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\", outcome=\"SUCCESS\"}[$__rate_interval]))", "format": "time_series", @@ -1026,6 +1187,10 @@ "refId": "B" }, { + "datasource": { + "type": "prometheus", + "uid": "PF1524B2611758E37" + }, "exemplar": true, "expr": "sum(rate(http_server_requests_seconds_sum{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\", outcome=\"SERVER_ERROR\"}[$__rate_interval])) / sum(rate(http_server_requests_seconds_count{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\", outcome=\"SERVER_ERROR\"}[$__rate_interval]))", "format": "time_series", @@ -1036,6 +1201,10 @@ "refId": "C" }, { + "datasource": { + "type": "prometheus", + "uid": "PF1524B2611758E37" + }, "exemplar": true, "expr": "sum(rate(http_server_requests_seconds_sum{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\", outcome=\"CLIENT_ERROR\"}[$__rate_interval])) / sum(rate(http_server_requests_seconds_count{application=\"$application\", stack=\"$stack\", region=\"$region\", operation=\"$operation\", outcome=\"CLIENT_ERROR\"}[$__rate_interval]))", "format": "time_series", @@ -1046,13 +1215,18 @@ "refId": "D" } ], - "timeFrom": null, - "timeShift": null, "title": "Latency", "type": "timeseries" }, { - "datasource": "YAWA-Loki", + "datasource": { + "type": "loki", + "uid": "P0256AD63A268F364" + }, + "fieldConfig": { + "defaults": {}, + "overrides": [] + }, "gridPos": { "h": 9, "w": 24, @@ -1060,6 +1234,7 @@ "y": 38 }, "id": 147, + "interval": "1m", "links": [ { "targetBlank": true, @@ -1077,12 +1252,17 @@ "sortOrder": "Descending", "wrapLogMessage": false }, - "pluginVersion": "8.1.1", - "repeat": null, + "pluginVersion": "11.3.0", "targets": [ { - "expr": "{application=\"$application\", stack=\"$stack\", region=\"$region\", service=\"$service\"} | json \n| logger_name = \"com.yawa.server.components.mvc.interceptors.AccessLogger\"\n| operation = \"$operation\"\n| line_format \"{{._timestamp}} {{.requestId}} {{.message}}\"", + "datasource": { + "type": "loki", + "uid": "P0256AD63A268F364" + }, + "editorMode": "code", + "expr": "{application=\"$application\", stack=\"$stack\", region=\"$region\", service=\"$service\"} | json | logger_name = \"com.yawa.server.interceptors.AccessLogger\" | operation = \"$operation\" | message =~ \".*REQUEST END.*\" | line_format \"{{._timestamp}} {{.requestId}} {{.message}}\"", "maxLines": 100, + "queryType": "range", "refId": "A" } ], @@ -1090,9 +1270,9 @@ "type": "logs" } ], + "preload": false, "refresh": "10s", - "schemaVersion": 30, - "style": "dark", + "schemaVersion": 40, "tags": [ "yawa", "api" @@ -1100,42 +1280,30 @@ "templating": { "list": [ { - "description": null, - "error": null, "hide": 2, "label": "Application", "name": "application", "query": "yawa", - "skipUrlSync": false, + "skipUrlSync": true, "type": "constant" }, { - "description": null, - "error": null, "hide": 2, "label": "Service", "name": "service", "query": "server", - "skipUrlSync": false, + "skipUrlSync": true, "type": "constant" }, { - "allFormat": "glob", - "allValue": null, "current": { - "selected": false, "text": "dev", "value": "dev" }, "datasource": "YAWA-Prometheus", "definition": "label_values(http_server_requests_seconds_count{application=\"$application\", service=\"$service\"}, stack)", - "description": null, - "error": null, - "hide": 0, "includeAll": false, "label": "Stack", - "multi": false, - "multiFormat": "glob", "name": "stack", "options": [], "query": { @@ -1144,30 +1312,17 @@ }, "refresh": 2, "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false + "type": "query" }, { - "allFormat": "glob", - "allValue": null, "current": { - "selected": false, "text": "docker", "value": "docker" }, "datasource": "YAWA-Prometheus", "definition": "label_values(http_server_requests_seconds_count{application=\"$application\", service=\"$service\", stack=\"$stack\"}, region)", - "description": null, - "error": null, - "hide": 0, "includeAll": false, "label": "Region", - "multi": false, - "multiFormat": "glob", "name": "region", "options": [], "query": { @@ -1176,30 +1331,17 @@ }, "refresh": 2, "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false + "type": "query" }, { - "allFormat": "glob", - "allValue": "", "current": { - "selected": false, "text": "All", "value": "$__all" }, "datasource": "YAWA-Prometheus", "definition": "label_values(http_server_requests_seconds_count{application=\"$application\", service=\"$service\", stack=\"$stack\", region=\"$region\"}, instance)", - "description": null, - "error": null, - "hide": 0, "includeAll": true, "label": "Instance", - "multi": false, - "multiFormat": "glob", "name": "instance", "options": [], "query": { @@ -1208,30 +1350,17 @@ }, "refresh": 2, "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false + "type": "query" }, { - "allFormat": "glob", - "allValue": null, "current": { - "selected": false, "text": "GetRandomOutcome", "value": "GetRandomOutcome" }, "datasource": "YAWA-Prometheus", "definition": "label_values(http_server_requests_seconds_count{application=\"$application\", service=\"$service\", stack=\"$stack\", region=\"$region\", instance=\"$instance\"}, operation)", - "description": null, - "error": null, - "hide": 0, "includeAll": false, "label": "Operation", - "multi": false, - "multiFormat": "glob", "name": "operation", "options": [], "query": { @@ -1240,12 +1369,8 @@ }, "refresh": 2, "regex": "", - "skipUrlSync": false, "sort": 1, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false + "type": "query" } ] }, @@ -1254,7 +1379,6 @@ "to": "now" }, "timepicker": { - "now": true, "refresh_intervals": [ "5s", "10s", @@ -1266,21 +1390,11 @@ "1h", "3h", "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" ] }, "timezone": "utc", "title": "YAWA API", "uid": "yawa-api", - "version": 1 + "version": 3, + "weekStart": "" }