Tweak dashboard

This commit is contained in:
Cyber MacGeddon 2024-07-19 12:49:52 +01:00
parent bcbb493626
commit 8401a7867e

View file

@ -30,17 +30,37 @@
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
"mode": "thresholds" "mode": "palette-classic"
}, },
"custom": { "custom": {
"fillOpacity": 80, "axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none", "gradientMode": "none",
"hideFrom": { "hideFrom": {
"legend": false, "legend": false,
"tooltip": false, "tooltip": false,
"viz": false "viz": false
}, },
"lineWidth": 1 "lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
}, },
"mappings": [], "mappings": [],
"thresholds": { "thresholds": {
@ -65,16 +85,20 @@
"x": 0, "x": 0,
"y": 0 "y": 0
}, },
"id": 4, "id": 7,
"options": { "options": {
"bucketOffset": 0,
"legend": { "legend": {
"calcs": [], "calcs": [],
"displayMode": "list", "displayMode": "list",
"placement": "bottom", "placement": "bottom",
"showLegend": true "showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
} }
}, },
"pluginVersion": "10.0.0",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
@ -82,14 +106,41 @@
"uid": "f6b18033-5918-4e05-a1ca-4cb30343b129" "uid": "f6b18033-5918-4e05-a1ca-4cb30343b129"
}, },
"editorMode": "builder", "editorMode": "builder",
"expr": "avg(rate(request_latency_bucket{instance=\"llm:8000\"}[5m]))", "expr": "histogram_quantile(0.99, sum by(le) (rate(request_latency_bucket{instance=\"llm:8000\"}[$__rate_interval])))",
"instant": false, "instant": false,
"legendFormat": "99%",
"range": true, "range": true,
"refId": "A" "refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "f6b18033-5918-4e05-a1ca-4cb30343b129"
},
"editorMode": "builder",
"expr": "histogram_quantile(0.95, sum by(le) (rate(request_latency_bucket{instance=\"llm:8000\"}[$__rate_interval])))",
"hide": false,
"instant": false,
"legendFormat": "95%",
"range": true,
"refId": "B"
},
{
"datasource": {
"type": "prometheus",
"uid": "f6b18033-5918-4e05-a1ca-4cb30343b129"
},
"editorMode": "builder",
"expr": "histogram_quantile(0.75, sum by(le) (rate(request_latency_bucket{instance=\"llm:8000\"}[$__rate_interval])))",
"hide": false,
"instant": false,
"legendFormat": "75%",
"range": true,
"refId": "C"
} }
], ],
"title": "LLM latency", "title": "LLM latency",
"type": "histogram" "type": "timeseries"
}, },
{ {
"datasource": { "datasource": {
@ -99,7 +150,8 @@
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
"mode": "continuous-RdYlGr" "fixedColor": "red",
"mode": "fixed"
}, },
"custom": { "custom": {
"axisCenteredZero": false, "axisCenteredZero": false,
@ -108,7 +160,7 @@
"axisPlacement": "auto", "axisPlacement": "auto",
"barAlignment": 0, "barAlignment": 0,
"drawStyle": "line", "drawStyle": "line",
"fillOpacity": 39, "fillOpacity": 21,
"gradientMode": "none", "gradientMode": "none",
"hideFrom": { "hideFrom": {
"legend": false, "legend": false,
@ -125,12 +177,13 @@
"spanNulls": false, "spanNulls": false,
"stacking": { "stacking": {
"group": "A", "group": "A",
"mode": "percent" "mode": "none"
}, },
"thresholdsStyle": { "thresholdsStyle": {
"mode": "off" "mode": "off"
} }
}, },
"displayName": "error rate",
"mappings": [], "mappings": [],
"thresholds": { "thresholds": {
"mode": "absolute", "mode": "absolute",
@ -174,7 +227,7 @@
"uid": "f6b18033-5918-4e05-a1ca-4cb30343b129" "uid": "f6b18033-5918-4e05-a1ca-4cb30343b129"
}, },
"editorMode": "builder", "editorMode": "builder",
"expr": "sum by(status) (rate(processing_count_total[5m]))", "expr": "rate(processing_count_total{status=\"error\"}[$__rate_interval])",
"format": "time_series", "format": "time_series",
"instant": false, "instant": false,
"interval": "", "interval": "",
@ -270,6 +323,7 @@
"editorMode": "builder", "editorMode": "builder",
"expr": "rate(request_latency_count[1m])", "expr": "rate(request_latency_count[1m])",
"instant": false, "instant": false,
"legendFormat": "{{instance}}",
"range": true, "range": true,
"refId": "A" "refId": "A"
} }
@ -363,6 +417,7 @@
"editorMode": "builder", "editorMode": "builder",
"expr": "pulsar_msg_backlog", "expr": "pulsar_msg_backlog",
"instant": false, "instant": false,
"legendFormat": "{{topic}}",
"range": true, "range": true,
"refId": "A" "refId": "A"
} }
@ -379,7 +434,7 @@
"list": [] "list": []
}, },
"time": { "time": {
"from": "now-3h", "from": "now-30m",
"to": "now" "to": "now"
}, },
"timepicker": {}, "timepicker": {},