diff options
Diffstat (limited to 'compose/metrics/dashboards/dashboard-api.json')
-rw-r--r-- | compose/metrics/dashboards/dashboard-api.json | 261 |
1 files changed, 208 insertions, 53 deletions
diff --git a/compose/metrics/dashboards/dashboard-api.json b/compose/metrics/dashboards/dashboard-api.json index 8046cfe4..505477f6 100644 --- a/compose/metrics/dashboards/dashboard-api.json +++ b/compose/metrics/dashboards/dashboard-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,12 +25,16 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "id": 1, + "id": 9, "links": [], "liveNow": false, "panels": [ { "collapsed": false, + "datasource": { + "type": "prometheus", + "uid": "dkSf71fnz" + }, "gridPos": { "h": 1, "w": 24, @@ -36,10 +43,23 @@ }, "id": 19, "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "dkSf71fnz" + }, + "refId": "A" + } + ], "title": "Quick Info", "type": "row" }, { + "datasource": { + "type": "prometheus", + "uid": "dkSf71fnz" + }, "description": "Uptime per pod for Policy API application calculated in days", "fieldConfig": { "defaults": { @@ -60,7 +80,8 @@ "value": 80 } ] - } + }, + "unit": "s" }, "overrides": [] }, @@ -76,23 +97,27 @@ "graphMode": "none", "justifyMode": "auto", "orientation": "auto", + "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [], "fields": "", "values": false }, + "showPercentChange": false, "text": {}, - "textMode": "value_and_name" + "textMode": "value_and_name", + "wideLayout": true }, - "pluginVersion": "8.3.4", + "pluginVersion": "11.1.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "dkSf71fnz" }, + "editorMode": "code", "exemplar": false, - "expr": "process_uptime_seconds{job=\"api-metrics\"} * 86400", + "expr": "process_uptime_seconds{job=\"api-metrics\"}", "format": "time_series", "instant": false, "interval": "", @@ -101,11 +126,14 @@ } ], "title": "Process Uptime (days)", - "transformations": [], "transparent": true, "type": "stat" }, { + "datasource": { + "type": "prometheus", + "uid": "dkSf71fnz" + }, "description": "Policy API CPU Usage Monitoring", "fieldConfig": { "defaults": { @@ -168,6 +196,8 @@ }, "id": 26, "options": { + "minVizHeight": 75, + "minVizWidth": 75, "orientation": "auto", "reduceOptions": { "calcs": [ @@ -177,9 +207,10 @@ "values": false }, "showThresholdLabels": false, - "showThresholdMarkers": false + "showThresholdMarkers": false, + "sizing": "auto" }, - "pluginVersion": "8.3.4", + "pluginVersion": "11.1.0", "targets": [ { "datasource": { @@ -197,6 +228,10 @@ "type": "gauge" }, { + "datasource": { + "type": "prometheus", + "uid": "dkSf71fnz" + }, "description": "Policy API Memory Usage Monitoring", "fieldConfig": { "defaults": { @@ -262,6 +297,8 @@ }, "id": 27, "options": { + "minVizHeight": 75, + "minVizWidth": 75, "orientation": "auto", "reduceOptions": { "calcs": [ @@ -271,9 +308,10 @@ "values": false }, "showThresholdLabels": false, - "showThresholdMarkers": false + "showThresholdMarkers": false, + "sizing": "auto" }, - "pluginVersion": "8.3.4", + "pluginVersion": "11.1.0", "targets": [ { "datasource": { @@ -305,6 +343,10 @@ }, { "collapsed": false, + "datasource": { + "type": "prometheus", + "uid": "dkSf71fnz" + }, "gridPos": { "h": 1, "w": 24, @@ -313,10 +355,23 @@ }, "id": 17, "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "dkSf71fnz" + }, + "refId": "A" + } + ], "title": "System", "type": "row" }, { + "datasource": { + "type": "prometheus", + "uid": "dkSf71fnz" + }, "description": "Policy API CPU Usage Monitoring", "fieldConfig": { "defaults": { @@ -324,6 +379,9 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, @@ -335,6 +393,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineStyle": { "fill": "solid" @@ -404,8 +463,8 @@ ] }, "gridPos": { - "h": 14, - "w": 12, + "h": 9, + "w": 8, "x": 0, "y": 11 }, @@ -419,6 +478,7 @@ ], "displayMode": "table", "placement": "bottom", + "showLegend": true, "sortBy": "Max", "sortDesc": true }, @@ -457,7 +517,7 @@ "uid": "dkSf71fnz" }, "exemplar": true, - "expr": "avg_over_time(process_cpu_usage{job=\"api-metrics\"}[1h]) * 100", + "expr": "avg_over_time(process_cpu_usage{job=\"api-metrics\"}[$__range]) * 100", "hide": false, "interval": "", "legendFormat": "process_1h: {{pod}}", @@ -468,6 +528,10 @@ "type": "timeseries" }, { + "datasource": { + "type": "prometheus", + "uid": "dkSf71fnz" + }, "description": "Policy API Memory Usage Monitoring", "fieldConfig": { "defaults": { @@ -475,6 +539,9 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, @@ -486,6 +553,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineStyle": { "fill": "solid" @@ -555,9 +623,9 @@ ] }, "gridPos": { - "h": 11, - "w": 12, - "x": 12, + "h": 9, + "w": 8, + "x": 8, "y": 11 }, "id": 13, @@ -570,6 +638,7 @@ ], "displayMode": "table", "placement": "bottom", + "showLegend": true, "sortBy": "Last", "sortDesc": false }, @@ -608,6 +677,10 @@ "type": "timeseries" }, { + "datasource": { + "type": "prometheus", + "uid": "dkSf71fnz" + }, "description": "Policy API JVM Threads", "fieldConfig": { "defaults": { @@ -615,6 +688,9 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, @@ -626,6 +702,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -661,10 +738,10 @@ "overrides": [] }, "gridPos": { - "h": 13, - "w": 12, - "x": 12, - "y": 22 + "h": 9, + "w": 7, + "x": 16, + "y": 11 }, "id": 8, "options": { @@ -674,7 +751,8 @@ "last" ], "displayMode": "table", - "placement": "bottom" + "placement": "bottom", + "showLegend": true }, "tooltip": { "mode": "multi", @@ -724,18 +802,35 @@ }, { "collapsed": false, + "datasource": { + "type": "prometheus", + "uid": "dkSf71fnz" + }, "gridPos": { "h": 1, "w": 24, "x": 0, - "y": 35 + "y": 20 }, "id": 15, "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "dkSf71fnz" + }, + "refId": "A" + } + ], "title": "Garbage Collection", "type": "row" }, { + "datasource": { + "type": "prometheus", + "uid": "dkSf71fnz" + }, "description": "GC operations per second", "fieldConfig": { "defaults": { @@ -743,6 +838,9 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, @@ -754,6 +852,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 1, @@ -792,7 +891,7 @@ "h": 8, "w": 12, "x": 0, - "y": 36 + "y": 21 }, "id": 10, "options": { @@ -803,7 +902,8 @@ "last" ], "displayMode": "table", - "placement": "bottom" + "placement": "bottom", + "showLegend": true }, "tooltip": { "mode": "single", @@ -817,7 +917,7 @@ "uid": "dkSf71fnz" }, "exemplar": true, - "expr": "rate(jvm_gc_pause_seconds_count{job=\"api-metrics\"}[1h])", + "expr": "rate(jvm_gc_pause_seconds_count{job=\"api-metrics\"}[$__range])", "interval": "", "legendFormat": "{{action}} ({{cause}}) : {{ pod }}", "refId": "A" @@ -827,6 +927,10 @@ "type": "timeseries" }, { + "datasource": { + "type": "prometheus", + "uid": "dkSf71fnz" + }, "description": "Average GC Time", "fieldConfig": { "defaults": { @@ -834,6 +938,9 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, @@ -845,6 +952,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 1, @@ -882,7 +990,7 @@ "h": 8, "w": 12, "x": 12, - "y": 36 + "y": 21 }, "id": 22, "options": { @@ -891,7 +999,8 @@ "last" ], "displayMode": "table", - "placement": "bottom" + "placement": "bottom", + "showLegend": true }, "tooltip": { "mode": "single", @@ -905,9 +1014,9 @@ "uid": "dkSf71fnz" }, "exemplar": true, - "expr": "rate(jvm_gc_pause_seconds_sum{job=\"api-metrics\"}[1h])/rate(jvm_gc_pause_seconds_count{job=\"api-metrics\"}[1h])", + "expr": "rate(jvm_gc_pause_seconds_sum{job=\"api-metrics\"}[$__range])/rate(jvm_gc_pause_seconds_count{job=\"api-metrics\"}[$__range])", "interval": "", - "legendFormat": "avg {{action}} ({{cause}}) : {{ pod }}", + "legendFormat": "avg {{action}} ({{cause}})", "refId": "A" } ], @@ -916,18 +1025,35 @@ }, { "collapsed": false, + "datasource": { + "type": "prometheus", + "uid": "dkSf71fnz" + }, "gridPos": { "h": 1, "w": 24, "x": 0, - "y": 44 + "y": 29 }, "id": 21, "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "dkSf71fnz" + }, + "refId": "A" + } + ], "title": "Requests", "type": "row" }, { + "datasource": { + "type": "prometheus", + "uid": "dkSf71fnz" + }, "description": "HTTP API requests rate filtered by URI and REST method", "fieldConfig": { "defaults": { @@ -935,6 +1061,9 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, @@ -946,6 +1075,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineStyle": { "fill": "solid" @@ -970,8 +1100,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -987,7 +1116,7 @@ "h": 8, "w": 12, "x": 0, - "y": 45 + "y": 30 }, "id": 12, "options": { @@ -997,6 +1126,7 @@ ], "displayMode": "table", "placement": "bottom", + "showLegend": true, "sortBy": "Last", "sortDesc": true }, @@ -1012,7 +1142,7 @@ "uid": "dkSf71fnz" }, "exemplar": true, - "expr": "avg by(method,uri) (rate(http_server_requests_seconds_count{job=\"api-metrics\"}[5m]))", + "expr": "avg by(method,uri) (rate(http_server_requests_seconds_count{job=\"api-metrics\"}[$__range]))", "interval": "", "legendFormat": "{{ method }} - {{ uri }}", "refId": "A" @@ -1022,6 +1152,10 @@ "type": "timeseries" }, { + "datasource": { + "type": "prometheus", + "uid": "dkSf71fnz" + }, "description": "Time taken for an API request filtered by REST method and URI", "fieldConfig": { "defaults": { @@ -1029,6 +1163,9 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, @@ -1040,6 +1177,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineStyle": { "fill": "solid" @@ -1064,8 +1202,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1081,7 +1218,7 @@ "h": 8, "w": 12, "x": 12, - "y": 45 + "y": 30 }, "id": 23, "options": { @@ -1092,6 +1229,7 @@ ], "displayMode": "table", "placement": "bottom", + "showLegend": true, "sortBy": "Last", "sortDesc": true }, @@ -1117,6 +1255,10 @@ "type": "timeseries" }, { + "datasource": { + "type": "prometheus", + "uid": "dkSf71fnz" + }, "description": "Stats for Policy API Operations", "fieldConfig": { "defaults": { @@ -1128,8 +1270,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1144,11 +1285,15 @@ "h": 8, "w": 12, "x": 0, - "y": 53 + "y": 38 }, "id": 24, "options": { "displayMode": "gradient", + "maxVizHeight": 300, + "minVizHeight": 16, + "minVizWidth": 8, + "namePlacement": "auto", "orientation": "vertical", "reduceOptions": { "calcs": [ @@ -1158,11 +1303,13 @@ "values": false }, "showUnfilled": false, + "sizing": "auto", "text": { "titleSize": 12 - } + }, + "valueMode": "color" }, - "pluginVersion": "8.3.4", + "pluginVersion": "11.1.0", "targets": [ { "datasource": { @@ -1277,6 +1424,10 @@ "type": "bargauge" }, { + "datasource": { + "type": "prometheus", + "uid": "dkSf71fnz" + }, "description": "Stats for Policy Types API operations", "fieldConfig": { "defaults": { @@ -1288,8 +1439,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1304,11 +1454,15 @@ "h": 8, "w": 12, "x": 12, - "y": 53 + "y": 38 }, "id": 28, "options": { "displayMode": "gradient", + "maxVizHeight": 300, + "minVizHeight": 16, + "minVizWidth": 8, + "namePlacement": "auto", "orientation": "vertical", "reduceOptions": { "calcs": [ @@ -1318,11 +1472,13 @@ "values": false }, "showUnfilled": false, + "sizing": "auto", "text": { "titleSize": 12 - } + }, + "valueMode": "color" }, - "pluginVersion": "8.3.4", + "pluginVersion": "11.1.0", "targets": [ { "datasource": { @@ -1438,20 +1594,19 @@ } ], "refresh": "", - "schemaVersion": 34, - "style": "dark", + "schemaVersion": 39, "tags": [], "templating": { "list": [] }, "time": { - "from": "now-3h", + "from": "now-30m", "to": "now" }, "timepicker": {}, "timezone": "", - "title": "Policy API Jakarta", + "title": "Policy API", "uid": "DM56uKltt", - "version": 2, + "version": 3, "weekStart": "" }
\ No newline at end of file |