{ "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "grafana", "uid": "-- Grafana --" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 1, "links": [], "panels": [ { "id": 1, "type": "row", "title": "Overview", "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 }, "panels": [] }, { "id": 2, "type": "stat", "title": "Queries (24h)", "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "gridPos": { "h": 4, "w": 4, "x": 0, "y": 1 }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 0, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "short", "noValue": "0" }, "overrides": [] }, "targets": [ { "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "editorMode": "code", "expr": "sum(sum_over_time(max_over_time(cf_d1_queries_detail_query_count{database_name=~\"$database_name\"}[1m])[24h:1m]))", "instant": true, "range": false, "legendFormat": "__auto", "refId": "A" } ], "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true } }, { "id": 3, "type": "stat", "title": "Errors (24h)", "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "gridPos": { "h": 4, "w": 4, "x": 4, "y": 1 }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 0, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "short", "noValue": "0" }, "overrides": [] }, "targets": [ { "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "editorMode": "code", "expr": "sum(sum_over_time(max_over_time(cf_d1_queries_detail_query_count{database_name=~\"$database_name\",error!=\"\"}[1m])[24h:1m]))", "instant": true, "range": false, "legendFormat": "__auto", "refId": "A" } ], "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true } }, { "id": 4, "type": "stat", "title": "Rows Read (24h)", "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "gridPos": { "h": 4, "w": 4, "x": 8, "y": 1 }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 0, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "short", "noValue": "0" }, "overrides": [] }, "targets": [ { "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "editorMode": "code", "expr": "sum(sum_over_time(max_over_time(cf_d1_queries_rows_read{database_name=~\"$database_name\"}[1m])[24h:1m]))", "instant": true, "range": false, "legendFormat": "__auto", "refId": "A" } ], "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true } }, { "id": 5, "type": "stat", "title": "Rows Written (24h)", "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "gridPos": { "h": 4, "w": 4, "x": 12, "y": 1 }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 0, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "short", "noValue": "0" }, "overrides": [] }, "targets": [ { "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "editorMode": "code", "expr": "sum(sum_over_time(max_over_time(cf_d1_queries_rows_written{database_name=~\"$database_name\"}[1m])[24h:1m]))", "instant": true, "range": false, "legendFormat": "__auto", "refId": "A" } ], "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true } }, { "id": 6, "type": "stat", "title": "Storage Bytes", "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "gridPos": { "h": 4, "w": 4, "x": 16, "y": 1 }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 0, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "decbytes", "noValue": "0" }, "overrides": [] }, "targets": [ { "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "editorMode": "code", "expr": "last_over_time((sum(cf_d1_storage_database_size_bytes{database_name=~\"$database_name\"}))[6h:])", "instant": true, "range": false, "legendFormat": "__auto", "refId": "A" } ], "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true } }, { "id": 7, "type": "stat", "title": "Query Duration p99", "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "gridPos": { "h": 4, "w": 4, "x": 20, "y": 1 }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 0, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "ms", "noValue": "0" }, "overrides": [] }, "targets": [ { "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "editorMode": "code", "expr": "max(cf_d1_queries_detail_query_duration_ms_p99{database_name=~\"$database_name\"})", "instant": true, "range": false, "legendFormat": "__auto", "refId": "A" } ], "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true } }, { "id": 8, "type": "row", "title": "Query Rate", "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 5 }, "panels": [] }, { "id": 9, "type": "timeseries", "title": "Queries per Database", "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 6 }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "decimals": 0, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "short", "custom": { "drawStyle": "line", "lineInterpolation": "smooth", "lineWidth": 1, "fillOpacity": 10, "gradientMode": "none", "spanNulls": true, "showPoints": "never", "pointSize": 5, "stacking": { "mode": "none", "group": "A" }, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "scaleDistribution": { "type": "linear" }, "thresholdsStyle": { "mode": "off" } } }, "overrides": [] }, "targets": [ { "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "editorMode": "code", "expr": "sum by (database_name) (max_over_time(cf_d1_queries_detail_query_count{database_name=~\"$database_name\"}[1m]))", "instant": false, "range": true, "legendFormat": "{{database_name}}", "refId": "A" } ], "options": { "legend": { "calcs": [ "mean", "max", "lastNotNull" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } } }, { "id": 10, "type": "timeseries", "title": "Errors per Database", "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 6 }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "decimals": 0, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "short", "custom": { "drawStyle": "line", "lineInterpolation": "smooth", "lineWidth": 1, "fillOpacity": 10, "gradientMode": "none", "spanNulls": false, "showPoints": "never", "pointSize": 5, "stacking": { "mode": "none", "group": "A" }, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "scaleDistribution": { "type": "linear" }, "thresholdsStyle": { "mode": "off" } } }, "overrides": [] }, "targets": [ { "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "editorMode": "code", "expr": "sum by (database_name) (max_over_time(cf_d1_queries_detail_query_count{database_name=~\"$database_name\",error!=\"\"}[1m]))", "instant": false, "range": true, "legendFormat": "{{database_name}}", "refId": "A" } ], "options": { "legend": { "calcs": [ "mean", "max", "lastNotNull" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } } }, { "id": 11, "type": "row", "title": "Rows", "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 14 }, "panels": [] }, { "id": 12, "type": "timeseries", "title": "Rows Read", "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 15 }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "decimals": 0, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "short", "custom": { "drawStyle": "line", "lineInterpolation": "smooth", "lineWidth": 1, "fillOpacity": 10, "gradientMode": "none", "spanNulls": true, "showPoints": "never", "pointSize": 5, "stacking": { "mode": "none", "group": "A" }, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "scaleDistribution": { "type": "linear" }, "thresholdsStyle": { "mode": "off" } } }, "overrides": [] }, "targets": [ { "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "editorMode": "code", "expr": "sum by (database_name) (max_over_time(cf_d1_queries_rows_read{database_name=~\"$database_name\"}[1m]))", "instant": false, "range": true, "legendFormat": "{{database_name}}", "refId": "A" } ], "options": { "legend": { "calcs": [ "mean", "max", "lastNotNull" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } } }, { "id": 13, "type": "timeseries", "title": "Rows Written", "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 15 }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "decimals": 0, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "short", "custom": { "drawStyle": "line", "lineInterpolation": "smooth", "lineWidth": 1, "fillOpacity": 10, "gradientMode": "none", "spanNulls": true, "showPoints": "never", "pointSize": 5, "stacking": { "mode": "none", "group": "A" }, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "scaleDistribution": { "type": "linear" }, "thresholdsStyle": { "mode": "off" } } }, "overrides": [] }, "targets": [ { "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "editorMode": "code", "expr": "sum by (database_name) (max_over_time(cf_d1_queries_rows_written{database_name=~\"$database_name\"}[1m]))", "instant": false, "range": true, "legendFormat": "{{database_name}}", "refId": "A" } ], "options": { "legend": { "calcs": [ "mean", "max", "lastNotNull" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } } }, { "id": 14, "type": "row", "title": "Duration Percentiles", "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 23 }, "panels": [] }, { "id": 15, "type": "timeseries", "title": "p50", "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 24 }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "decimals": 0, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "ms", "custom": { "drawStyle": "line", "lineInterpolation": "smooth", "lineWidth": 1, "fillOpacity": 10, "gradientMode": "none", "spanNulls": true, "showPoints": "never", "pointSize": 5, "stacking": { "mode": "none", "group": "A" }, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "scaleDistribution": { "type": "linear" }, "thresholdsStyle": { "mode": "off" } } }, "overrides": [] }, "targets": [ { "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "editorMode": "code", "expr": "max by (database_name) (max_over_time(cf_d1_queries_detail_query_duration_ms_p50{database_name=~\"$database_name\"}[1m]))", "instant": false, "range": true, "legendFormat": "{{database_name}}", "refId": "A" } ], "options": { "legend": { "calcs": [ "mean", "max", "lastNotNull" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } } }, { "id": 16, "type": "timeseries", "title": "p95", "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 24 }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "decimals": 0, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "ms", "custom": { "drawStyle": "line", "lineInterpolation": "smooth", "lineWidth": 1, "fillOpacity": 10, "gradientMode": "none", "spanNulls": true, "showPoints": "never", "pointSize": 5, "stacking": { "mode": "none", "group": "A" }, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "scaleDistribution": { "type": "linear" }, "thresholdsStyle": { "mode": "off" } } }, "overrides": [] }, "targets": [ { "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "editorMode": "code", "expr": "max by (database_name) (max_over_time(cf_d1_queries_detail_query_duration_ms_p95{database_name=~\"$database_name\"}[1m]))", "instant": false, "range": true, "legendFormat": "{{database_name}}", "refId": "A" } ], "options": { "legend": { "calcs": [ "mean", "max", "lastNotNull" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } } }, { "id": 17, "type": "timeseries", "title": "p99", "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 32 }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "decimals": 0, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "ms", "custom": { "drawStyle": "line", "lineInterpolation": "smooth", "lineWidth": 1, "fillOpacity": 10, "gradientMode": "none", "spanNulls": true, "showPoints": "never", "pointSize": 5, "stacking": { "mode": "none", "group": "A" }, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "scaleDistribution": { "type": "linear" }, "thresholdsStyle": { "mode": "off" } } }, "overrides": [] }, "targets": [ { "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "editorMode": "code", "expr": "max by (database_name) (max_over_time(cf_d1_queries_detail_query_duration_ms_p99{database_name=~\"$database_name\"}[1m]))", "instant": false, "range": true, "legendFormat": "{{database_name}}", "refId": "A" } ], "options": { "legend": { "calcs": [ "mean", "max", "lastNotNull" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } } }, { "id": 18, "type": "timeseries", "title": "Storage Size", "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 32 }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "decimals": 0, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "decbytes", "custom": { "drawStyle": "line", "lineInterpolation": "smooth", "lineWidth": 1, "fillOpacity": 10, "gradientMode": "none", "spanNulls": true, "showPoints": "never", "pointSize": 5, "stacking": { "mode": "none", "group": "A" }, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "scaleDistribution": { "type": "linear" }, "thresholdsStyle": { "mode": "off" } } }, "overrides": [] }, "targets": [ { "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "editorMode": "code", "expr": "last_over_time((sum by (database_name) (cf_d1_storage_database_size_bytes{database_name=~\"$database_name\"}))[6h:])", "instant": false, "range": true, "legendFormat": "{{database_name}}", "refId": "A" } ], "options": { "legend": { "calcs": [ "mean", "max", "lastNotNull" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } } }, { "id": 19, "type": "row", "title": "Cost Estimate", "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 40 }, "panels": [] }, { "id": 20, "type": "stat", "title": "Estimated Daily Cost", "description": "Before free tier.\nFree tier: 25B reads + 50M writes + 5GB storage/mo included", "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "gridPos": { "h": 4, "w": 6, "x": 0, "y": 41 }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 4, "mappings": [], "noValue": "$0.00", "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "yellow", "value": 0.1 }, { "color": "orange", "value": 1 }, { "color": "red", "value": 10 } ] }, "unit": "currencyUSD" }, "overrides": [] }, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "targets": [ { "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "editorMode": "code", "expr": "(sum(sum_over_time(max_over_time(cf_d1_queries_rows_read[1m])[24h:1m])) / 1e6 * 0.001) + (sum(sum_over_time(max_over_time(cf_d1_queries_rows_written[1m])[24h:1m])) / 1e6 * 1.00) + (last_over_time((sum(cf_d1_storage_database_size_bytes))[6h:]) / 1073741824 * 0.75 / 30)", "instant": true, "range": false, "refId": "A" } ] }, { "id": 21, "type": "stat", "title": "Projected Monthly Cost", "description": "30-day projection based on last 24h usage.\nFree tier: 25B reads + 50M writes + 5GB storage/mo included", "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "gridPos": { "h": 4, "w": 6, "x": 6, "y": 41 }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "decimals": 4, "mappings": [], "noValue": "$0.00", "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "yellow", "value": 0.1 }, { "color": "orange", "value": 1 }, { "color": "red", "value": 10 } ] }, "unit": "currencyUSD" }, "overrides": [] }, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "targets": [ { "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "editorMode": "code", "expr": "((sum(sum_over_time(max_over_time(cf_d1_queries_rows_read[1m])[24h:1m])) / 1e6 * 0.001) + (sum(sum_over_time(max_over_time(cf_d1_queries_rows_written[1m])[24h:1m])) / 1e6 * 1.00) + (last_over_time((sum(cf_d1_storage_database_size_bytes))[6h:]) / 1073741824 * 0.75 / 30)) * 30", "instant": true, "range": false, "refId": "A" } ] }, { "id": 22, "type": "timeseries", "title": "Hourly Cost Breakdown", "description": "Cost per hour by component, stacked.\nFree tier: 25B reads + 50M writes + 5GB storage/mo included", "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 41 }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "drawStyle": "line", "fillOpacity": 20, "gradientMode": "none", "lineInterpolation": "smooth", "lineWidth": 2, "pointSize": 5, "showPoints": "never", "spanNulls": true, "stacking": { "group": "A", "mode": "normal" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "currencyUSD" }, "overrides": [] }, "options": { "legend": { "calcs": [ "sum", "lastNotNull" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "editorMode": "code", "expr": "sum(sum_over_time(max_over_time(cf_d1_queries_rows_read[1m])[1h:1m])) / 1e6 * 0.001", "legendFormat": "Rows Read", "refId": "A", "instant": false, "range": true }, { "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "editorMode": "code", "expr": "sum(sum_over_time(max_over_time(cf_d1_queries_rows_written[1m])[1h:1m])) / 1e6 * 1.00", "legendFormat": "Rows Written", "refId": "B", "instant": false, "range": true }, { "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "editorMode": "code", "expr": "last_over_time((sum(cf_d1_storage_database_size_bytes))[6h:]) / 1073741824 * 0.75 / 30", "legendFormat": "Storage (daily)", "refId": "C", "instant": false, "range": true } ] } ], "tags": [ "cloudflare-workers", "cloudflare-metrics", "cloudflare-analytics" ], "templating": { "list": [ { "name": "database_name", "label": "Database", "type": "query", "datasource": { "type": "prometheus", "uid": "36979063-5384-4eb9-8679-565a727cbc13" }, "query": { "query": "label_values(cf_d1_queries_detail_query_count, database_name)", "refId": "StandardVariableQuery" }, "refresh": 2, "regex": "", "sort": 1, "includeAll": true, "allValue": ".*", "multi": true, "hide": 0, "definition": "label_values(cf_d1_queries_detail_query_count, database_name)", "options": [], "skipUrlSync": false, "current": { "selected": false, "text": "All", "value": "$__all" } } ] }, "time": { "from": "now-6h", "to": "now" }, "timepicker": {}, "timezone": "browser", "title": "Cloudflare — D1", "uid": "cf-d1", "version": 1, "weekStart": "" }