From 38367031a10de5d356928e936d64076ded8eb3bf Mon Sep 17 00:00:00 2001 From: Jonathan Marcantonio Date: Thu, 14 Nov 2024 09:30:21 -0500 Subject: [PATCH] Update relations grafana dashboard to latest (#265) Signed-off-by: Jonathan Marcantonio --- ...hboard-kessel-relations-api.configmap.yaml | 2044 ++++++++++++++++- 1 file changed, 1988 insertions(+), 56 deletions(-) diff --git a/dashboards/grafana-dashboard-kessel-relations-api.configmap.yaml b/dashboards/grafana-dashboard-kessel-relations-api.configmap.yaml index 2e80ccc0..fb05a604 100644 --- a/dashboards/grafana-dashboard-kessel-relations-api.configmap.yaml +++ b/dashboards/grafana-dashboard-kessel-relations-api.configmap.yaml @@ -21,9 +21,984 @@ data: "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "id": 951500, + "id": 957361, "links": [], "panels": [ + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 9, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "index": 0, + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 0, + "y": 1 + }, + "id": 30, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "10.4.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PAE149AA876DDB381" + }, + "editorMode": "code", + "exemplar": true, + "expr": "sum(rate(server_requests_seconds_bucket_seconds_count{job=\"kessel-relations-api\"}[10m]))", + "instant": false, + "legendFormat": "95%", + "range": true, + "refId": "A" + } + ], + "title": "RPS", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "index": 0, + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 3, + "y": 1 + }, + "id": 29, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "10.4.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PAE149AA876DDB381" + }, + "editorMode": "code", + "exemplar": true, + "expr": "(\n sum(rate(server_requests_code_total{job=\"kessel-relations-api\", code!=\"200\"}[10m]))\n+\n sum(rate(server_requests_code_total{ job=\"kessel-relations-api\", code=\"200\"}[10m]))\n)\n /\nsum(rate(server_requests_seconds_bucket_seconds_count{job=\"kessel-relations-api\"}[10m]))", + "instant": false, + "legendFormat": "", + "range": true, + "refId": "A" + } + ], + "title": "Success", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "index": 0, + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 6, + "y": 1 + }, + "id": 31, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "10.4.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PAE149AA876DDB381" + }, + "editorMode": "code", + "exemplar": true, + "expr": "histogram_quantile(0.95, sum by(le) (rate(server_requests_seconds_bucket_seconds_bucket{job=\"kessel-relations-api\"}[10m])))", + "instant": false, + "legendFormat": "95%", + "range": true, + "refId": "A" + } + ], + "title": "Latency P95", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "index": 0, + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 0, + "y": 6 + }, + "id": 11, + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": {}, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "10.4.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "exemplar": true, + "expr": "histogram_quantile(0.50, \n sum(rate(server_requests_seconds_bucket_seconds_bucket{job=\"kessel-relations-api\",operation=\"/kessel.relations.v1beta1.KesselCheckService/Check\"}[10m])) by (le)\n)", + "format": "time_series", + "interval": "", + "intervalFactor": 1, + "legendFormat": "95%", + "range": true, + "refId": "A" + } + ], + "title": "Check Permission P50", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "index": 0, + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 3, + "y": 6 + }, + "id": 14, + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": {}, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "10.4.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "exemplar": true, + "expr": "histogram_quantile(0.95, \n sum(rate(server_requests_seconds_bucket_seconds_bucket{job=\"kessel-relations-api\",operation=\"/kessel.relations.v1beta1.KesselCheckService/Check\"}[10m])) by (le)\n)", + "format": "time_series", + "interval": "", + "intervalFactor": 1, + "legendFormat": "95%", + "range": true, + "refId": "A" + } + ], + "title": "Check Permission P95", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "index": 0, + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 6, + "y": 6 + }, + "id": 13, + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": {}, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "10.4.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "exemplar": true, + "expr": "histogram_quantile(0.99, \n sum(rate(server_requests_seconds_bucket_seconds_bucket{job=\"kessel-relations-api\",operation=\"/kessel.relations.v1beta1.KesselCheckService/Check\"}[10m])) by (le)\n)", + "format": "time_series", + "interval": "", + "intervalFactor": 1, + "legendFormat": "95%", + "range": true, + "refId": "A" + } + ], + "title": "Check Permission P99", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "index": 0, + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 0, + "y": 11 + }, + "id": 12, + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": {}, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "10.4.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "exemplar": true, + "expr": "histogram_quantile(0.50, \n sum(rate(server_requests_seconds_bucket_seconds_bucket{job=\"kessel-relations-api\",operation=\"/kessel.relations.v1beta1.KesselLookupService/LookupResources\"}[10m])) by (le)\n)", + "format": "time_series", + "interval": "", + "intervalFactor": 1, + "legendFormat": "95%", + "range": true, + "refId": "A" + } + ], + "title": "LookupResources P50", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "index": 0, + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 3, + "y": 11 + }, + "id": 17, + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": {}, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "10.4.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "exemplar": true, + "expr": "histogram_quantile(0.95, \n sum(rate(server_requests_seconds_bucket_seconds_bucket{job=\"kessel-relations-api\",operation=\"/kessel.relations.v1beta1.KesselLookupService/LookupResources\"}[10m])) by (le)\n)", + "format": "time_series", + "interval": "", + "intervalFactor": 1, + "legendFormat": "95%", + "range": true, + "refId": "A" + } + ], + "title": "LookupResources P95", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "index": 0, + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 6, + "y": 11 + }, + "id": 16, + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": {}, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "10.4.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "exemplar": true, + "expr": "histogram_quantile(0.99, \n sum(rate(server_requests_seconds_bucket_seconds_bucket{job=\"kessel-relations-api\",operation=\"/kessel.relations.v1beta1.KesselLookupService/LookupResources\"}[10m])) by (le)\n)", + "format": "time_series", + "interval": "", + "intervalFactor": 1, + "legendFormat": "95%", + "range": true, + "refId": "A" + } + ], + "title": "LookupResources P99", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "index": 0, + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 0, + "y": 16 + }, + "id": 15, + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": {}, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "10.4.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "exemplar": true, + "expr": "histogram_quantile(0.50, \n sum(rate(server_requests_seconds_bucket_seconds_bucket{job=\"kessel-relations-api\",operation=\"/kessel.relations.v1beta1.KesselLookupService/LookupSubjects\"}[10m])) by (le)\n)", + "format": "time_series", + "interval": "", + "intervalFactor": 1, + "legendFormat": "95%", + "range": true, + "refId": "A" + } + ], + "title": "LookupSubjects P50", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "index": 0, + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 3, + "y": 16 + }, + "id": 18, + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": {}, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "10.4.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "exemplar": true, + "expr": "histogram_quantile(0.95, \n sum(rate(server_requests_seconds_bucket_seconds_bucket{job=\"kessel-relations-api\",operation=\"/kessel.relations.v1beta1.KesselLookupService/LookupSubjects\"}[10m])) by (le)\n)", + "format": "time_series", + "interval": "", + "intervalFactor": 1, + "legendFormat": "95%", + "range": true, + "refId": "A" + } + ], + "title": "LookupSubjects P95", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "index": 0, + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 6, + "y": 16 + }, + "id": 19, + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": {}, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "10.4.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "exemplar": true, + "expr": "histogram_quantile(0.99, \n sum(rate(server_requests_seconds_bucket_seconds_bucket{job=\"kessel-relations-api\",operation=\"/kessel.relations.v1beta1.KesselLookupService/LookupSubjects\"}[10m])) by (le)\n)", + "format": "time_series", + "interval": "", + "intervalFactor": 1, + "legendFormat": "95%", + "range": true, + "refId": "A" + } + ], + "title": "LookupSubjects P99", + "type": "stat" + } + ], + "title": "Detailed Summary", + "type": "row" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 1 + }, + "id": 8, + "panels": [], + "title": "Relations-Api", + "type": "row" + }, { "datasource": { "default": true, @@ -74,7 +1049,7 @@ data: "h": 8, "w": 8, "x": 0, - "y": 0 + "y": 2 }, "id": 1, "options": { @@ -174,7 +1149,7 @@ data: "h": 8, "w": 8, "x": 8, - "y": 0 + "y": 2 }, "id": 5, "options": { @@ -226,7 +1201,6 @@ data: }, { "datasource": { - "default": true, "type": "prometheus", "uid": "$datasource" }, @@ -288,7 +1262,7 @@ data: "h": 8, "w": 8, "x": 16, - "y": 0 + "y": 2 }, "id": 6, "options": { @@ -314,7 +1288,7 @@ data: "uid": "$datasource" }, "editorMode": "code", - "expr": "sum(increase(server_requests_code_total{job=\"kessel-relations-api\"}[1m])) by (code)", + "expr": "sum(rate(server_requests_code_total{job=\"kessel-relations-api\"}[$__rate_interval])) by (code)", "format": "time_series", "instant": false, "interval": "15s", @@ -392,7 +1366,7 @@ data: "h": 8, "w": 8, "x": 0, - "y": 8 + "y": 10 }, "id": 7, "options": { @@ -431,7 +1405,6 @@ data: }, { "datasource": { - "default": false, "type": "prometheus", "uid": "$datasource" }, @@ -498,7 +1471,7 @@ data: "h": 8, "w": 8, "x": 8, - "y": 8 + "y": 10 }, "id": 3, "options": { @@ -555,7 +1528,6 @@ data: }, { "datasource": { - "default": true, "type": "prometheus", "uid": "$datasource" }, @@ -620,7 +1592,7 @@ data: "h": 8, "w": 8, "x": 16, - "y": 8 + "y": 10 }, "id": 4, "options": { @@ -628,7 +1600,7 @@ data: "calcs": [], "displayMode": "list", "placement": "bottom", - "showLegend": false + "showLegend": true }, "tooltip": { "mode": "single", @@ -643,11 +1615,12 @@ data: }, "disableTextWrap": false, "editorMode": "code", - "expr": "irate(server_requests_seconds_bucket_seconds_count{operation=~\"$operation\", job=\"kessel-relations-api\"}[5m])", + "exemplar": true, + "expr": "sum(irate(server_requests_seconds_bucket_seconds_count{operation=~\"$operation\", job=\"kessel-relations-api\"}[$__rate_interval])) by (operation)", "fullMetaSearch": false, "includeNullMetadata": true, "instant": false, - "legendFormat": "__auto", + "legendFormat": "{{operation}}", "range": true, "refId": "A", "useBackend": false @@ -655,46 +1628,1004 @@ data: ], "title": "Requests per second", "type": "timeseries" - } - ], - "refresh": "", - "schemaVersion": 39, - "tags": [], - "templating": { - "list": [ - { - "allValue": "", - "current": { - "selected": true, - "text": "All", - "value": "$__all" - }, - "datasource": { - "type": "prometheus", - "uid": "$datasource" - }, - "definition": "label_values({job=\"kessel-relations-api\"},operation)", - "description": "API Method", - "hide": 0, - "includeAll": true, - "label": "Operation", - "multi": false, - "name": "operation", - "options": [], - "query": { - "qryType": 1, - "query": "label_values({job=\"kessel-relations-api\"},operation)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "type": "query" + }, + { + "datasource": { + "type": "prometheus", + "uid": "$datasource" }, - { - "current": { - "selected": false, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 8, + "x": 0, + "y": 18 + }, + "id": 28, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PAE149AA876DDB381" + }, + "disableTextWrap": false, + "editorMode": "code", + "exemplar": true, + "expr": "histogram_quantile(0.99, sum by(le, operation) (rate(server_requests_seconds_bucket_seconds_bucket{job=\"kessel-relations-api\", operation=~\"$operation\"}[$__rate_interval])))", + "fullMetaSearch": false, + "includeNullMetadata": true, + "instant": false, + "interval": "", + "legendFormat": "99% {{operation}}", + "range": true, + "refId": "A", + "useBackend": false + }, + { + "datasource": { + "type": "prometheus", + "uid": "PAE149AA876DDB381" + }, + "disableTextWrap": false, + "editorMode": "code", + "exemplar": true, + "expr": "histogram_quantile(0.95, sum by(le, operation) (rate(server_requests_seconds_bucket_seconds_bucket{job=\"kessel-relations-api\", operation=~\"$operation\"}[$__rate_interval])))", + "fullMetaSearch": false, + "hide": false, + "includeNullMetadata": true, + "instant": false, + "interval": "", + "legendFormat": "95% {{operation}}", + "range": true, + "refId": "B", + "useBackend": false + } + ], + "title": "Latency distribution", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 25 + }, + "id": 20, + "panels": [], + "title": "Other stats", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "bytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "alloc rate" + }, + "properties": [ + { + "id": "unit", + "value": "Bps" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 26 + }, + "id": 25, + "interval": "1", + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.6", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "exemplar": true, + "expr": "avg(go_memstats_alloc_bytes{job=\"kessel-relations-api\"})", + "interval": "", + "intervalFactor": 2, + "legendFormat": "bytes allocated", + "metric": "go_memstats_alloc_bytes", + "range": true, + "refId": "A", + "step": 4 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "exemplar": true, + "expr": "avg(rate(go_memstats_alloc_bytes_total{job=\"kessel-relations-api\"}[$__interval]))", + "hide": false, + "interval": "", + "intervalFactor": 2, + "legendFormat": "alloc rate", + "metric": "go_memstats_alloc_bytes_total", + "range": true, + "refId": "B", + "step": 4 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "exemplar": true, + "expr": "avg(go_memstats_stack_inuse_bytes{job=\"kessel-relations-api\"})", + "interval": "", + "intervalFactor": 2, + "legendFormat": "stack inuse", + "metric": "go_memstats_stack_inuse_bytes", + "range": true, + "refId": "C", + "step": 4 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "exemplar": true, + "expr": "avg(go_memstats_heap_inuse_bytes{job=\"kessel-relations-api\"})", + "hide": false, + "interval": "", + "intervalFactor": 2, + "legendFormat": "heap inuse", + "metric": "go_memstats_heap_inuse_bytes", + "range": true, + "refId": "D", + "step": 4 + } + ], + "title": "Memory", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P685A79A6D65CADE4" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "bytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "alloc rate" + }, + "properties": [ + { + "id": "unit", + "value": "Bps" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 26 + }, + "id": 26, + "interval": "1", + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.6", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P685A79A6D65CADE4" + }, + "editorMode": "code", + "exemplar": true, + "expr": "node_memory_MemAvailable_bytes{}", + "interval": "", + "intervalFactor": 2, + "legendFormat": "{{instance}}", + "metric": "go_memstats_alloc_bytes", + "range": true, + "refId": "A", + "step": 4 + } + ], + "title": "Node Memory", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P685A79A6D65CADE4" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "s" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "alloc rate" + }, + "properties": [ + { + "id": "unit", + "value": "Bps" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 34 + }, + "id": 21, + "interval": "1", + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.6", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P685A79A6D65CADE4" + }, + "editorMode": "code", + "exemplar": true, + "expr": "sum(irate(node_cpu_seconds_total{mode!=\"idle\"}[$__rate_interval])) by (mode)", + "interval": "", + "intervalFactor": 2, + "legendFormat": "__auto", + "metric": "go_memstats_alloc_bytes", + "range": true, + "refId": "A", + "step": 4 + } + ], + "title": "Node CPU Utilization", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 34 + }, + "id": 27, + "interval": "1", + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.6", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "exemplar": true, + "expr": "avg(go_goroutines{job=\"kessel-relations-api\"})", + "format": "time_series", + "interval": "", + "intervalFactor": 2, + "legendFormat": "{{instance}}", + "metric": "go_goroutines", + "range": true, + "refId": "A", + "step": 4 + } + ], + "title": "Goroutines", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 42 + }, + "id": 23, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.6", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "expr": "histogram_quantile(0.75, sum by(le) (rate(go_gc_pauses_seconds_bucket[$__rate_interval])))", + "hide": false, + "instant": false, + "legendFormat": "75th", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "exemplar": true, + "expr": "histogram_quantile(0.95, sum by(le) (rate(go_gc_pauses_seconds_bucket[$__rate_interval])))", + "format": "time_series", + "interval": "", + "intervalFactor": 2, + "legendFormat": "95th", + "metric": "go_gc_duration_seconds", + "range": true, + "refId": "A", + "step": 4 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "expr": "histogram_quantile(0.99, sum by(le) (rate(go_gc_pauses_seconds_bucket[$__rate_interval])))", + "hide": false, + "instant": false, + "legendFormat": "99th", + "range": true, + "refId": "B" + } + ], + "title": "GC duration", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P685A79A6D65CADE4" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "bytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "alloc rate" + }, + "properties": [ + { + "id": "unit", + "value": "Bps" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 42 + }, + "id": 22, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.6", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P685A79A6D65CADE4" + }, + "editorMode": "code", + "exemplar": true, + "expr": "irate(node_disk_io_time_seconds_total[$__interval])\n\n", + "interval": "", + "intervalFactor": 2, + "legendFormat": "bytes allocated", + "metric": "go_memstats_alloc_bytes", + "range": true, + "refId": "A", + "step": 4 + } + ], + "title": "Disk I/O", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "P685A79A6D65CADE4" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "bytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "alloc rate" + }, + "properties": [ + { + "id": "unit", + "value": "Bps" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 50 + }, + "id": 24, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.0.6", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "P685A79A6D65CADE4" + }, + "editorMode": "code", + "exemplar": true, + "expr": "irate(node_network_transmit_bytes_total[$__interval])\n", + "interval": "", + "intervalFactor": 2, + "legendFormat": "bytes allocated", + "metric": "go_memstats_alloc_bytes", + "range": true, + "refId": "A", + "step": 4 + } + ], + "title": "Network Bandwidth (Bytes transmitted):", + "type": "timeseries" + } + ], + "refresh": "30s", + "schemaVersion": 39, + "tags": [], + "templating": { + "list": [ + { + "allValue": "", + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": { + "type": "prometheus", + "uid": "$datasource" + }, + "definition": "label_values({job=\"kessel-relations-api\"},operation)", + "description": "API Method", + "hide": 0, + "includeAll": true, + "label": "Operation", + "multi": false, + "name": "operation", + "options": [], + "query": { + "qryType": 1, + "query": "label_values({job=\"kessel-relations-api\"},operation)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": { + "selected": true, "text": "crcs02ue1-prometheus", "value": "PDD8BE47D10408F45" }, @@ -706,22 +2637,23 @@ data: "name": "datasource", "options": [], "query": "prometheus", + "queryValue": "", "refresh": 1, - "regex": "/(crcp01ue1-prometheus)|(crcs02ue1-prometheus)/", + "regex": "/(crcp01ue1-prometheus)|(crcs02ue1-prometheus)|(insights-perf-prometheus)/", "skipUrlSync": false, "type": "datasource" } ] }, "time": { - "from": "now-15m", + "from": "now-10m", "to": "now" }, "timepicker": {}, "timezone": "browser", "title": "Kessel - Relations API", "uid": "ddxs3i6o0xpmoe", - "version": 4, + "version": 5, "weekStart": "" } kind: ConfigMap