diff --git a/install/helm/kgateway-dashboards/dashboards/kgateway.json b/install/helm/kgateway-dashboards/dashboards/kgateway.json index 1d30883..6daf2e3 100644 --- a/install/helm/kgateway-dashboards/dashboards/kgateway.json +++ b/install/helm/kgateway-dashboards/dashboards/kgateway.json @@ -34,157 +34,6 @@ "title": "Overview", "type": "row" }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "yellow", - "value": 2 - }, - { - "color": "orange", - "value": 3 - }, - { - "color": "red", - "value": 4 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 8, - "x": 0, - "y": 1 - }, - "id": 7, - "options": { - "minVizHeight": 75, - "minVizWidth": 75, - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true, - "sizing": "auto" - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "editorMode": "code", - "expr": "sum(kgateway_translator_translations_running{translator=~\"$translator|\",namespace=~\"$namespace|\"}) by (translator)", - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Number of Translations Running per Translator", - "type": "gauge" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "yellow", - "value": 2 - }, - { - "color": "orange", - "value": 3 - }, - { - "color": "red", - "value": 4 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 8, - "x": 8, - "y": 1 - }, - "id": 8, - "options": { - "minVizHeight": 75, - "minVizWidth": 75, - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true, - "sizing": "auto" - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "editorMode": "code", - "expr": "sum(kgateway_controller_reconciliations_running{controller=~\"$controller|\",namespace=~\"$namespace|\"}) by (controller)", - "legendFormat": "__auto", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "expr": "sum(gloo_gateway_controller_reconciliations_running{controller=~\"$controller|\",namespace=~\"$namespace|\"}) by (controller)", - "hide": false, - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "B" - } - ], - "title": "Number of Reconciliations Running per Controller", - "type": "gauge" - }, { "datasource": { "type": "prometheus", @@ -308,10 +157,10 @@ "overrides": [] }, "gridPos": { - "h": 7, + "h": 6, "w": 8, "x": 0, - "y": 6 + "y": 1 }, "id": 17, "options": { @@ -406,10 +255,10 @@ "overrides": [] }, "gridPos": { - "h": 7, + "h": 6, "w": 8, "x": 8, - "y": 6 + "y": 1 }, "id": 18, "options": { @@ -444,106 +293,6 @@ "title": "Reconciliation Rate by Results", "type": "timeseries" }, - { - "datasource": { - "uid": "${datasource}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 9, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineStyle": { - "fill": "solid" - }, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 8, - "x": 0, - "y": 13 - }, - "id": 12, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "expr": "sum(rate(kgateway_status_syncer_status_syncs_total{namespace=~\"$namespace|\"}[5m])) by (syncer, result) ", - "hide": false, - "instant": false, - "legendFormat": "{{syncer}}: {{result}}", - "range": true, - "refId": "A" - } - ], - "title": "Status Syncs Rate by Results", - "type": "timeseries" - }, { "datasource": { "type": "prometheus", @@ -617,19 +366,6 @@ "legendFormat": "Controller: {{controller}}", "range": true, "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "expr": "sum(kgateway_status_syncer_status_syncs_total{namespace=~\"$namespace|\"}) by (syncer)", - "hide": false, - "instant": false, - "legendFormat": "Syncer: {{syncer}}", - "range": true, - "refId": "C" } ], "title": "Total Operations", @@ -729,10 +465,10 @@ "overrides": [] }, "gridPos": { - "h": 6, + "h": 13, "w": 8, "x": 0, - "y": 20 + "y": 13 }, "id": 10, "options": { @@ -969,131 +705,6 @@ "x": 8, "y": 27 }, - "id": 21, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "expr": "histogram_quantile(0.99, sum by(le)(rate(kgateway_status_syncer_status_sync_duration_seconds{name=~\"$gateway|\",namespace=~\"$namespace|\"}[5m])))", - "hide": false, - "instant": false, - "legendFormat": "p99", - "range": true, - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "expr": "histogram_quantile(0.90, sum by(le)(rate(kgateway_status_syncer_status_sync_duration_seconds{name=~\"$gateway|\",namespace=~\"$namespace|\"}[5m])))", - "hide": false, - "instant": false, - "legendFormat": "p90", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "expr": "histogram_quantile(0.70, sum by(le)(rate(kgateway_status_syncer_status_sync_duration_seconds{name=~\"$gateway|\",namespace=~\"$namespace|\"}[5m])))", - "hide": false, - "instant": false, - "legendFormat": "p70", - "range": true, - "refId": "C" - } - ], - "title": "Status Syncer Latency", - "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, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 9, - "gradientMode": "opacity", - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 8, - "x": 16, - "y": 27 - }, "id": 3, "options": { "legend": { @@ -1216,8 +827,8 @@ "gridPos": { "h": 6, "w": 8, - "x": 0, - "y": 33 + "x": 16, + "y": 27 }, "id": 23, "options": { @@ -1333,16 +944,15 @@ "value": 80 } ] - }, - "unit": "s" + } }, "overrides": [] }, "gridPos": { "h": 6, "w": 8, - "x": 8, - "y": 33 + "x": 0, + "y": 7 }, "id": 22, "options": { @@ -1366,41 +976,15 @@ "uid": "${datasource}" }, "editorMode": "code", - "expr": "histogram_quantile(0.99, sum by(le)(rate(kgateway_resources_status_sync_duration_seconds{gateway=~\"$gateway|\",namespace=~\"$namespace|\"}[5m])))", + "expr": "sum(rate(kgateway_status_writes_total[5m])) by (kind, result)", "hide": false, "instant": false, - "legendFormat": "p99", - "range": true, - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "expr": "histogram_quantile(0.90, sum by(le)(rate(kgateway_resources_status_sync_duration_seconds{gateway=~\"$gateway|\",namespace=~\"$namespace|\"}[5m])))", - "hide": false, - "instant": false, - "legendFormat": "p90", + "legendFormat": "{{kind}}: {{result}}", "range": true, "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "expr": "histogram_quantile(0.70, sum by(le)(rate(kgateway_resources_status_sync_duration_seconds{gateway=~\"$gateway|\",namespace=~\"$namespace|\"}[5m])))", - "hide": false, - "instant": false, - "legendFormat": "p70", - "range": true, - "refId": "C" } ], - "title": "Resource Status Sync Latency", + "title": "Status Writes Rate by Results", "type": "timeseries" }, { @@ -1414,11 +998,16 @@ "mode": "thresholds" }, "mappings": [], + "noValue": "0", "thresholds": { "mode": "absolute", "steps": [ { "color": "green" + }, + { + "color": "red", + "value": 1 } ] } @@ -1428,8 +1017,8 @@ "gridPos": { "h": 6, "w": 8, - "x": 16, - "y": 33 + "x": 8, + "y": 7 }, "id": 32, "options": { @@ -1454,14 +1043,14 @@ { "editorMode": "code", "exemplar": false, - "expr": "sum(kgateway_resources_status_syncs_completed_total{gateway=~\"$gateway|\",namespace=~\"$namespace|\"}) by (resource)", + "expr": "sum(kgateway_status_writes_total{result=\"error\"}) by (kind)", "instant": false, - "legendFormat": " {{resource}}", + "legendFormat": "{{kind}}", "range": true, "refId": "A" } ], - "title": "Status Syncs by Resource", + "title": "Failed Status Writes by Kind", "type": "stat" } ],