{ "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "grafana", "uid": "-- Grafana --" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "target": { "limit": 100, "matchAny": false, "tags": [], "type": "dashboard" }, "type": "dashboard" } ] }, "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": 5, "links": [], "liveNow": false, "panels": [ { "datasource": { "type": "prometheus", "uid": "b1MKiB4Vz" }, "description": "More about quantile estimations: https://prometheus.io/docs/practices/histograms/#quantiles", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": 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 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 }, "id": 6, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "PABF2E7BD7AE7B0F4" }, "editorMode": "code", "expr": "histogram_quantile(0.95, sum by(le) (rate(prisma_client_queries_duration_histogram_ms_bucket[$__rate_interval])))", "hide": false, "legendFormat": "Prisma Query Elapsed Time", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "PABF2E7BD7AE7B0F4" }, "editorMode": "code", "expr": "histogram_quantile(0.95, sum by(le) (rate(prisma_datasource_queries_duration_histogram_ms_bucket[$__rate_interval])))", "hide": false, "legendFormat": "Datasource Query Elapsed Time", "range": true, "refId": "B" } ], "title": "95% Total Prisma Query Elapsed Time vs Datasource Query Elapsed Time", "type": "timeseries" }, { "datasource": {}, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": 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 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 }, "id": 4, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "PABF2E7BD7AE7B0F4" }, "editorMode": "code", "expr": "prisma_pool_connections_open", "legendFormat": "Active Connections", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "PABF2E7BD7AE7B0F4" }, "editorMode": "code", "expr": "prisma_pool_connections_idle", "hide": false, "legendFormat": "Idle Connections", "range": true, "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "PABF2E7BD7AE7B0F4" }, "editorMode": "code", "expr": "pool_wait_count", "hide": false, "legendFormat": "Waiting For Connection", "range": true, "refId": "C" } ], "title": "Active vs Idle connections", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "b1MKiB4Vz" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": 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 } ] } }, "overrides": [] }, "gridPos": { "h": 9, "w": 12, "x": 0, "y": 8 }, "id": 2, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "PABF2E7BD7AE7B0F4" }, "editorMode": "code", "expr": "rate(prisma_client_queries_total[$__rate_interval])", "legendFormat": "Prisma Query Count", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "PABF2E7BD7AE7B0F4" }, "editorMode": "code", "expr": "rate(prisma_datasource_queries_total[$__rate_interval])", "hide": false, "legendFormat": "Datasource Query Count", "range": true, "refId": "B" } ], "title": "Prisma Query Count vs Datasource Query (Per Unit Time)", "type": "timeseries" }, { "datasource": {}, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": 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 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 8 }, "id": 8, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "PABF2E7BD7AE7B0F4" }, "editorMode": "code", "expr": "prisma_client_queries_active", "legendFormat": "Active Transactions", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "PABF2E7BD7AE7B0F4" }, "editorMode": "code", "expr": "prisma_client_queries_wait", "hide": false, "legendFormat": "Queries Waiting for Connection", "range": true, "refId": "B" } ], "title": "Active Queries vs Waiting Queries", "type": "timeseries" } ], "refresh": "5s", "schemaVersion": 36, "style": "dark", "tags": [], "templating": { "list": [] }, "time": { "from": "now-2m", "to": "now" }, "timepicker": {}, "timezone": "", "title": "Prisma Metrics Example Dashboard", "uid": "qZbkmnr7k", "version": 2, "weekStart": "" }