diff --git a/Cargo.lock b/Cargo.lock index a238194b5b..95983fba7a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -307,6 +307,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "021e862c184ae977658b36c4500f7feac3221ca5da43e3f25bd04ab6c79a29b5" dependencies = [ "axum-core 0.5.2", + "axum-macros", "bytes", "form_urlencoded", "futures-util", @@ -399,6 +400,17 @@ dependencies = [ "tower-service", ] +[[package]] +name = "axum-macros" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "604fde5e028fea851ce1d8570bbdc034bec850d157f7569d10f347d06808c05c" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.104", +] + [[package]] name = "axum-test" version = "17.3.0" diff --git a/Cargo.toml b/Cargo.toml index 0ded9e27f6..561a054ef8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -127,7 +127,7 @@ features = ["uuid"] [workspace.dependencies.axum] version = "0.8" -features = ["http2"] +features = ["http2", "macros"] [workspace.dependencies.axum-extra] version = "0.10.1" diff --git a/engine/docker/dev-host/grafana/dashboards/api.json b/engine/docker/dev-host/grafana/dashboards/api.json index 87a2584411..9dcc005c91 100644 --- a/engine/docker/dev-host/grafana/dashboards/api.json +++ b/engine/docker/dev-host/grafana/dashboards/api.json @@ -699,8 +699,8 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(rate(rivet_api_request_errors_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",status=~\"4[0-9][0-9]\",path=~\"$path\",method=~\"$method\",error_code!=\"API_CANCELLED\"}[$__rate_interval])) by (rivet_datacenter, method, path, status, error_code)", - "legendFormat": "{{rivet_datacenter}} {{method}} {{path}}: {{status}} ({{error_code}})", + "expr": "sum(rate(rivet_api_request_errors_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",status=~\"4[0-9][0-9]\",path=~\"$path\",method=~\"$method\",error!=\"API_CANCELLED\"}[$__rate_interval])) by (rivet_datacenter, method, path, status, error)", + "legendFormat": "{{rivet_datacenter}} {{method}} {{path}}: {{status}} ({{error}})", "range": true, "refId": "A" } @@ -797,8 +797,8 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(rate(rivet_api_request_errors_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",path=~\"$path\",status=~\"5[0-9][0-9]\",method=~\"$method\",error_code!=\"API_CANCELLED\"}[$__rate_interval])) by (rivet_datacenter, method, path, status, error_code)", - "legendFormat": "{{rivet_datacenter}} {{method}} {{path}}: {{status}} ({{error_code}})", + "expr": "sum(rate(rivet_api_request_errors_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",path=~\"$path\",status=~\"5[0-9][0-9]\",method=~\"$method\",error!=\"API_CANCELLED\"}[$__rate_interval])) by (rivet_datacenter, method, path, status, error)", + "legendFormat": "{{rivet_datacenter}} {{method}} {{path}}: {{status}} ({{error}})", "range": true, "refId": "A" } @@ -896,8 +896,8 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(rate(\n rivet_api_request_duration_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",path=~\"$path\",method=~\"$method\",status=~\"(200|5[0-9][0-9])\",error_code!=\"API_CANCELLED\"}\n [$__rate_interval])) by (status, error_code)", - "legendFormat": "{{method}} {{path}}: {{status}} {{error_code}}", + "expr": "sum(rate(\n rivet_api_request_duration_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",path=~\"$path\",method=~\"$method\",status=~\"(200|5[0-9][0-9])\",error!=\"API_CANCELLED\"}\n [$__rate_interval])) by (status, error)", + "legendFormat": "{{method}} {{path}}: {{status}} {{error}}", "range": true, "refId": "A" } diff --git a/engine/docker/dev-host/grafana/dashboards/cache.json b/engine/docker/dev-host/grafana/dashboards/cache.json index 802c056290..282e099a8e 100644 --- a/engine/docker/dev-host/grafana/dashboards/cache.json +++ b/engine/docker/dev-host/grafana/dashboards/cache.json @@ -18,8 +18,8 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, + "id": 7, "links": [], - "liveNow": false, "panels": [ { "datasource": { @@ -39,6 +39,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -69,8 +70,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -97,10 +97,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -136,6 +138,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -166,8 +169,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -193,10 +195,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -232,6 +236,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -262,8 +267,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -290,10 +294,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -329,6 +335,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -359,8 +366,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -387,10 +393,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -398,7 +406,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(irate(rivet_cache_value_miss_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval]) / rate(rivet_cache_value_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval])) by (key)", + "expr": "sum by (key) (rate(rivet_cache_value_miss_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval])) / sum by (key) (rate(rivet_cache_value_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval]))", "instant": false, "legendFormat": "{{key}}", "range": true, @@ -426,6 +434,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -456,8 +465,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -484,10 +492,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -523,6 +533,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -553,8 +564,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -581,10 +591,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -592,7 +604,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(irate(rivet_cache_value_empty_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval]) / rate(rivet_cache_value_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval])) by (key)", + "expr": "sum by (key) (rate(rivet_cache_value_empty_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval])) / sum by (key) (rate(rivet_cache_value_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval]))", "instant": false, "legendFormat": "{{key}}", "range": true, @@ -620,6 +632,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -650,8 +663,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -678,10 +690,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -717,6 +731,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -747,8 +762,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -775,10 +789,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -797,16 +813,15 @@ "type": "timeseries" } ], + "preload": false, "refresh": "5s", - "schemaVersion": 39, + "schemaVersion": 41, "tags": [], "templating": { "list": [ { "current": { - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -833,9 +848,7 @@ }, { "current": { - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -862,10 +875,7 @@ }, { "current": { - "selected": true, - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -875,7 +885,6 @@ "uid": "prometheus" }, "definition": "label_values(rivet_cache_request_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\"},key)", - "hide": 0, "includeAll": true, "label": "Cache Key", "multi": true, @@ -887,8 +896,6 @@ }, "refresh": 1, "regex": "", - "skipUrlSync": false, - "sort": 0, "type": "query" } ] @@ -901,6 +908,5 @@ "timezone": "", "title": "Cache", "uid": "c35233ed-b698-4838-9426-18e1586017f1", - "version": 1, - "weekStart": "" + "version": 3 } \ No newline at end of file diff --git a/engine/docker/dev-host/grafana/dashboards/foundationdb.json b/engine/docker/dev-host/grafana/dashboards/foundationdb.json deleted file mode 100644 index 40acb297a3..0000000000 --- a/engine/docker/dev-host/grafana/dashboards/foundationdb.json +++ /dev/null @@ -1,1845 +0,0 @@ -{ - "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": 0, - "id": 58, - "links": [], - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "op/s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 0 - }, - "id": 14, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "irate(fdb_workload_op_count_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\",op=~\"reads|writes\"}[1m])", - "instant": false, - "legendFormat": "{{instance}} ({{op}})", - "range": true, - "refId": "A" - } - ], - "title": "Operations", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "txn/s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 0 - }, - "id": 13, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "irate(fdb_workload_transaction_count_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\",state=~\"started|committed|conflicted\"}[1m])", - "instant": false, - "legendFormat": "{{instance}} ({{state}})", - "range": true, - "refId": "A" - } - ], - "title": "Transactions", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "k/s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 8 - }, - "id": 12, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "irate(fdb_storage_keys_queried_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}[1m])", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Keys Queried", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "binBps" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 8 - }, - "id": 15, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "irate(fdb_workload_bytes_read_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}[1m])", - "instant": false, - "legendFormat": "{{instance}} (read)", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "irate(fdb_workload_bytes_written_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}[1m])", - "hide": false, - "instant": false, - "legendFormat": "{{instance}} (written)", - "range": true, - "refId": "B" - } - ], - "title": "Workload Data", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1, - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 16 - }, - "id": 3, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_memory_used_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"} / on(instance) fdb_memory_limit_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Memory Utilization", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1, - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 16 - }, - "id": 8, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_process_cpu_utilization{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "CPU Utilization", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 2, - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "k/s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 24 - }, - "id": 16, - "options": { - "legend": { - "calcs": [ - "lastNotNull" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Last *", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "sum by (type) (irate(rivet_fdb_key_pack_count[1m]))", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Keys Packed", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 2, - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "k/s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 24 - }, - "id": 17, - "options": { - "legend": { - "calcs": [ - "lastNotNull" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Last *", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "sum by (type) (irate(rivet_fdb_key_unpack_count[1m]))", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Keys Unpacked", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 32 - }, - "id": 2, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_total_disk_used_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"} / on(instance) fdb_disk_total_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Disk Utilization", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 32 - }, - "id": 5, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_total_disk_used_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Disk Usage", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - } - }, - "decimals": 0, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 40 - }, - "id": 9, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_client_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Clients", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "bool" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 40 - }, - "id": 4, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "1 - fdb_database_available{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Database Unavailable", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 48 - }, - "id": 7, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_storage_data_lag_seconds{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Data Lag", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 10, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 48 - }, - "id": 1, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_degraded_process_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Degraded Processes", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 56 - }, - "id": 6, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_average_partition_size_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Avg Partition Size", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 56 - }, - "id": 11, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_moving_data_in_flight_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"} + fdb_moving_data_in_queue_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Moving Data", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 64 - }, - "id": 10, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_log_queue_disk_used_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"} / on(instance) fdb_log_queue_disk_total_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Log Queue Utilization", - "type": "timeseries" - } - ], - "preload": false, - "refresh": "", - "schemaVersion": 40, - "tags": [], - "templating": { - "list": [ - { - "current": { - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "definition": "label_values(rivet_project)", - "includeAll": true, - "label": "Project", - "multi": true, - "name": "project", - "options": [], - "query": { - "qryType": 1, - "query": "label_values(rivet_project)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 1, - "regex": "", - "sort": 1, - "type": "query" - }, - { - "current": { - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "definition": "label_values({rivet_project=~\"$project\"},rivet_datacenter)", - "includeAll": true, - "label": "Datacenter", - "multi": true, - "name": "datacenter", - "options": [], - "query": { - "qryType": 1, - "query": "label_values({rivet_project=~\"$project\"},rivet_datacenter)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 1, - "regex": "", - "sort": 1, - "type": "query" - }, - { - "current": { - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "definition": "label_values(fdb_database_available{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\"},instance)", - "includeAll": true, - "label": "Instance", - "multi": true, - "name": "instance", - "options": [], - "query": { - "qryType": 1, - "query": "label_values(fdb_database_available{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\"},instance)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 1, - "regex": "", - "type": "query" - } - ] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": {}, - "timezone": "utc", - "title": "FoundationDB", - "uid": "aef2tiqr8tnghe", - "version": 2, - "weekStart": "" -} \ No newline at end of file diff --git a/engine/docker/dev-host/grafana/dashboards/gasoline.json b/engine/docker/dev-host/grafana/dashboards/gasoline.json index 672ac40493..36dcbfa7e8 100644 --- a/engine/docker/dev-host/grafana/dashboards/gasoline.json +++ b/engine/docker/dev-host/grafana/dashboards/gasoline.json @@ -18,7 +18,7 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 1, - "id": 7, + "id": 2, "links": [], "panels": [ { @@ -71,8 +71,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -107,7 +106,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -175,8 +174,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -211,7 +209,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -279,8 +277,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -315,7 +312,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -384,8 +381,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -420,7 +416,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -428,9 +424,9 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum by (workflow_name, error_code) (rivet_gasoline_workflow_dead{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",workflow_name=~\"$workflow_name\"})", + "expr": "sum by (workflow_name, error) (rivet_gasoline_workflow_dead{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",workflow_name=~\"$workflow_name\"})", "instant": false, - "legendFormat": "({{workflow_name}}) {{error_code}}", + "legendFormat": "{{workflow_name}}: {{error}}", "range": true, "refId": "A" } @@ -488,8 +484,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -524,7 +519,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -592,8 +587,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -628,7 +622,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -716,7 +710,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -804,7 +798,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -873,8 +867,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -910,7 +903,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -979,8 +972,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1016,7 +1008,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1104,7 +1096,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1192,7 +1184,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1280,7 +1272,7 @@ "unit": "" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1368,7 +1360,7 @@ "unit": "percentunit" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1469,7 +1461,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1536,8 +1528,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1574,7 +1565,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1582,8 +1573,8 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(rate(rivet_gasoline_activity_errors{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",workflow_name=~\"$workflow_name\"}[$__rate_interval])) by (activity_name, error_code)", - "legendFormat": "{{activity_name}}: {{error_code}}", + "expr": "sum(rate(rivet_gasoline_activity_errors{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",workflow_name=~\"$workflow_name\"}[$__rate_interval])) by (activity_name, error)", + "legendFormat": "{{activity_name}}: {{error}}", "range": true, "refId": "A" } @@ -1661,7 +1652,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1728,8 +1719,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1766,7 +1756,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1853,7 +1843,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1941,7 +1931,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -2029,7 +2019,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -2117,7 +2107,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -2137,16 +2127,14 @@ } ], "preload": false, - "refresh": "5s", - "schemaVersion": 40, + "refresh": "10s", + "schemaVersion": 41, "tags": [], "templating": { "list": [ { "current": { - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -2173,9 +2161,7 @@ }, { "current": { - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -2202,9 +2188,7 @@ }, { "current": { - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -2231,13 +2215,12 @@ ] }, "time": { - "from": "now-5m", + "from": "now-15m", "to": "now" }, "timepicker": {}, "timezone": "", "title": "Gasoline", "uid": "636d22f9-d18f-4086-8b45-7c50886a105c", - "version": 1, - "weekStart": "" + "version": 3 } \ No newline at end of file diff --git a/engine/docker/dev-host/grafana/dashboards/operation.json b/engine/docker/dev-host/grafana/dashboards/operation.json index aef24f0c6f..d08127f92b 100644 --- a/engine/docker/dev-host/grafana/dashboards/operation.json +++ b/engine/docker/dev-host/grafana/dashboards/operation.json @@ -133,7 +133,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(increase(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error_code!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (le)", + "expr": "sum(increase(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (le)", "format": "heatmap", "legendFormat": "{{le}}", "range": true, @@ -548,7 +548,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "(\r\n sum(rate(rivet_gasoline_operation_duration_sum{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error_code!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (operation_name) /\r\n sum(rate(rivet_gasoline_operation_duration_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error_code!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (operation_name)\r\n) > 0", + "expr": "(\r\n sum(rate(rivet_gasoline_operation_duration_sum{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (operation_name) /\r\n sum(rate(rivet_gasoline_operation_duration_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (operation_name)\r\n) > 0", "format": "heatmap", "legendFormat": "{{operation_name}}", "range": true, @@ -649,7 +649,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "histogram_quantile(0.95, \r\n sum(rate(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error_code!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) \r\n by (le, operation_name)\r\n) > 0\r\n", + "expr": "histogram_quantile(0.95, \r\n sum(rate(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) \r\n by (le, operation_name)\r\n) > 0\r\n", "format": "heatmap", "legendFormat": "{{operation_name}}", "range": true, @@ -750,7 +750,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "histogram_quantile(0.99, \r\n sum(rate(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error_code!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) \r\n by (le, operation_name)\r\n) > 0", + "expr": "histogram_quantile(0.99, \r\n sum(rate(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) \r\n by (le, operation_name)\r\n) > 0", "format": "heatmap", "legendFormat": "{{operation_name}}", "range": true, diff --git a/engine/docker/dev-multidc-multinode/core/grafana/dashboards/api.json b/engine/docker/dev-multidc-multinode/core/grafana/dashboards/api.json index 87a2584411..9dcc005c91 100644 --- a/engine/docker/dev-multidc-multinode/core/grafana/dashboards/api.json +++ b/engine/docker/dev-multidc-multinode/core/grafana/dashboards/api.json @@ -699,8 +699,8 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(rate(rivet_api_request_errors_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",status=~\"4[0-9][0-9]\",path=~\"$path\",method=~\"$method\",error_code!=\"API_CANCELLED\"}[$__rate_interval])) by (rivet_datacenter, method, path, status, error_code)", - "legendFormat": "{{rivet_datacenter}} {{method}} {{path}}: {{status}} ({{error_code}})", + "expr": "sum(rate(rivet_api_request_errors_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",status=~\"4[0-9][0-9]\",path=~\"$path\",method=~\"$method\",error!=\"API_CANCELLED\"}[$__rate_interval])) by (rivet_datacenter, method, path, status, error)", + "legendFormat": "{{rivet_datacenter}} {{method}} {{path}}: {{status}} ({{error}})", "range": true, "refId": "A" } @@ -797,8 +797,8 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(rate(rivet_api_request_errors_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",path=~\"$path\",status=~\"5[0-9][0-9]\",method=~\"$method\",error_code!=\"API_CANCELLED\"}[$__rate_interval])) by (rivet_datacenter, method, path, status, error_code)", - "legendFormat": "{{rivet_datacenter}} {{method}} {{path}}: {{status}} ({{error_code}})", + "expr": "sum(rate(rivet_api_request_errors_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",path=~\"$path\",status=~\"5[0-9][0-9]\",method=~\"$method\",error!=\"API_CANCELLED\"}[$__rate_interval])) by (rivet_datacenter, method, path, status, error)", + "legendFormat": "{{rivet_datacenter}} {{method}} {{path}}: {{status}} ({{error}})", "range": true, "refId": "A" } @@ -896,8 +896,8 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(rate(\n rivet_api_request_duration_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",path=~\"$path\",method=~\"$method\",status=~\"(200|5[0-9][0-9])\",error_code!=\"API_CANCELLED\"}\n [$__rate_interval])) by (status, error_code)", - "legendFormat": "{{method}} {{path}}: {{status}} {{error_code}}", + "expr": "sum(rate(\n rivet_api_request_duration_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",path=~\"$path\",method=~\"$method\",status=~\"(200|5[0-9][0-9])\",error!=\"API_CANCELLED\"}\n [$__rate_interval])) by (status, error)", + "legendFormat": "{{method}} {{path}}: {{status}} {{error}}", "range": true, "refId": "A" } diff --git a/engine/docker/dev-multidc-multinode/core/grafana/dashboards/cache.json b/engine/docker/dev-multidc-multinode/core/grafana/dashboards/cache.json index 802c056290..282e099a8e 100644 --- a/engine/docker/dev-multidc-multinode/core/grafana/dashboards/cache.json +++ b/engine/docker/dev-multidc-multinode/core/grafana/dashboards/cache.json @@ -18,8 +18,8 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, + "id": 7, "links": [], - "liveNow": false, "panels": [ { "datasource": { @@ -39,6 +39,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -69,8 +70,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -97,10 +97,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -136,6 +138,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -166,8 +169,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -193,10 +195,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -232,6 +236,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -262,8 +267,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -290,10 +294,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -329,6 +335,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -359,8 +366,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -387,10 +393,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -398,7 +406,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(irate(rivet_cache_value_miss_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval]) / rate(rivet_cache_value_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval])) by (key)", + "expr": "sum by (key) (rate(rivet_cache_value_miss_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval])) / sum by (key) (rate(rivet_cache_value_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval]))", "instant": false, "legendFormat": "{{key}}", "range": true, @@ -426,6 +434,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -456,8 +465,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -484,10 +492,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -523,6 +533,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -553,8 +564,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -581,10 +591,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -592,7 +604,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(irate(rivet_cache_value_empty_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval]) / rate(rivet_cache_value_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval])) by (key)", + "expr": "sum by (key) (rate(rivet_cache_value_empty_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval])) / sum by (key) (rate(rivet_cache_value_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval]))", "instant": false, "legendFormat": "{{key}}", "range": true, @@ -620,6 +632,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -650,8 +663,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -678,10 +690,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -717,6 +731,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -747,8 +762,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -775,10 +789,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -797,16 +813,15 @@ "type": "timeseries" } ], + "preload": false, "refresh": "5s", - "schemaVersion": 39, + "schemaVersion": 41, "tags": [], "templating": { "list": [ { "current": { - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -833,9 +848,7 @@ }, { "current": { - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -862,10 +875,7 @@ }, { "current": { - "selected": true, - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -875,7 +885,6 @@ "uid": "prometheus" }, "definition": "label_values(rivet_cache_request_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\"},key)", - "hide": 0, "includeAll": true, "label": "Cache Key", "multi": true, @@ -887,8 +896,6 @@ }, "refresh": 1, "regex": "", - "skipUrlSync": false, - "sort": 0, "type": "query" } ] @@ -901,6 +908,5 @@ "timezone": "", "title": "Cache", "uid": "c35233ed-b698-4838-9426-18e1586017f1", - "version": 1, - "weekStart": "" + "version": 3 } \ No newline at end of file diff --git a/engine/docker/dev-multidc-multinode/core/grafana/dashboards/foundationdb.json b/engine/docker/dev-multidc-multinode/core/grafana/dashboards/foundationdb.json deleted file mode 100644 index 40acb297a3..0000000000 --- a/engine/docker/dev-multidc-multinode/core/grafana/dashboards/foundationdb.json +++ /dev/null @@ -1,1845 +0,0 @@ -{ - "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": 0, - "id": 58, - "links": [], - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "op/s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 0 - }, - "id": 14, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "irate(fdb_workload_op_count_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\",op=~\"reads|writes\"}[1m])", - "instant": false, - "legendFormat": "{{instance}} ({{op}})", - "range": true, - "refId": "A" - } - ], - "title": "Operations", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "txn/s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 0 - }, - "id": 13, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "irate(fdb_workload_transaction_count_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\",state=~\"started|committed|conflicted\"}[1m])", - "instant": false, - "legendFormat": "{{instance}} ({{state}})", - "range": true, - "refId": "A" - } - ], - "title": "Transactions", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "k/s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 8 - }, - "id": 12, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "irate(fdb_storage_keys_queried_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}[1m])", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Keys Queried", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "binBps" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 8 - }, - "id": 15, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "irate(fdb_workload_bytes_read_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}[1m])", - "instant": false, - "legendFormat": "{{instance}} (read)", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "irate(fdb_workload_bytes_written_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}[1m])", - "hide": false, - "instant": false, - "legendFormat": "{{instance}} (written)", - "range": true, - "refId": "B" - } - ], - "title": "Workload Data", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1, - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 16 - }, - "id": 3, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_memory_used_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"} / on(instance) fdb_memory_limit_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Memory Utilization", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1, - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 16 - }, - "id": 8, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_process_cpu_utilization{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "CPU Utilization", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 2, - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "k/s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 24 - }, - "id": 16, - "options": { - "legend": { - "calcs": [ - "lastNotNull" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Last *", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "sum by (type) (irate(rivet_fdb_key_pack_count[1m]))", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Keys Packed", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 2, - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "k/s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 24 - }, - "id": 17, - "options": { - "legend": { - "calcs": [ - "lastNotNull" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Last *", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "sum by (type) (irate(rivet_fdb_key_unpack_count[1m]))", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Keys Unpacked", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 32 - }, - "id": 2, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_total_disk_used_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"} / on(instance) fdb_disk_total_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Disk Utilization", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 32 - }, - "id": 5, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_total_disk_used_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Disk Usage", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - } - }, - "decimals": 0, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 40 - }, - "id": 9, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_client_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Clients", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "bool" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 40 - }, - "id": 4, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "1 - fdb_database_available{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Database Unavailable", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 48 - }, - "id": 7, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_storage_data_lag_seconds{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Data Lag", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 10, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 48 - }, - "id": 1, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_degraded_process_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Degraded Processes", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 56 - }, - "id": 6, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_average_partition_size_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Avg Partition Size", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 56 - }, - "id": 11, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_moving_data_in_flight_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"} + fdb_moving_data_in_queue_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Moving Data", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 64 - }, - "id": 10, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_log_queue_disk_used_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"} / on(instance) fdb_log_queue_disk_total_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Log Queue Utilization", - "type": "timeseries" - } - ], - "preload": false, - "refresh": "", - "schemaVersion": 40, - "tags": [], - "templating": { - "list": [ - { - "current": { - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "definition": "label_values(rivet_project)", - "includeAll": true, - "label": "Project", - "multi": true, - "name": "project", - "options": [], - "query": { - "qryType": 1, - "query": "label_values(rivet_project)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 1, - "regex": "", - "sort": 1, - "type": "query" - }, - { - "current": { - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "definition": "label_values({rivet_project=~\"$project\"},rivet_datacenter)", - "includeAll": true, - "label": "Datacenter", - "multi": true, - "name": "datacenter", - "options": [], - "query": { - "qryType": 1, - "query": "label_values({rivet_project=~\"$project\"},rivet_datacenter)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 1, - "regex": "", - "sort": 1, - "type": "query" - }, - { - "current": { - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "definition": "label_values(fdb_database_available{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\"},instance)", - "includeAll": true, - "label": "Instance", - "multi": true, - "name": "instance", - "options": [], - "query": { - "qryType": 1, - "query": "label_values(fdb_database_available{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\"},instance)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 1, - "regex": "", - "type": "query" - } - ] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": {}, - "timezone": "utc", - "title": "FoundationDB", - "uid": "aef2tiqr8tnghe", - "version": 2, - "weekStart": "" -} \ No newline at end of file diff --git a/engine/docker/dev-multidc-multinode/core/grafana/dashboards/gasoline.json b/engine/docker/dev-multidc-multinode/core/grafana/dashboards/gasoline.json index 672ac40493..36dcbfa7e8 100644 --- a/engine/docker/dev-multidc-multinode/core/grafana/dashboards/gasoline.json +++ b/engine/docker/dev-multidc-multinode/core/grafana/dashboards/gasoline.json @@ -18,7 +18,7 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 1, - "id": 7, + "id": 2, "links": [], "panels": [ { @@ -71,8 +71,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -107,7 +106,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -175,8 +174,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -211,7 +209,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -279,8 +277,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -315,7 +312,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -384,8 +381,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -420,7 +416,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -428,9 +424,9 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum by (workflow_name, error_code) (rivet_gasoline_workflow_dead{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",workflow_name=~\"$workflow_name\"})", + "expr": "sum by (workflow_name, error) (rivet_gasoline_workflow_dead{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",workflow_name=~\"$workflow_name\"})", "instant": false, - "legendFormat": "({{workflow_name}}) {{error_code}}", + "legendFormat": "{{workflow_name}}: {{error}}", "range": true, "refId": "A" } @@ -488,8 +484,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -524,7 +519,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -592,8 +587,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -628,7 +622,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -716,7 +710,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -804,7 +798,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -873,8 +867,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -910,7 +903,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -979,8 +972,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1016,7 +1008,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1104,7 +1096,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1192,7 +1184,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1280,7 +1272,7 @@ "unit": "" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1368,7 +1360,7 @@ "unit": "percentunit" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1469,7 +1461,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1536,8 +1528,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1574,7 +1565,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1582,8 +1573,8 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(rate(rivet_gasoline_activity_errors{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",workflow_name=~\"$workflow_name\"}[$__rate_interval])) by (activity_name, error_code)", - "legendFormat": "{{activity_name}}: {{error_code}}", + "expr": "sum(rate(rivet_gasoline_activity_errors{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",workflow_name=~\"$workflow_name\"}[$__rate_interval])) by (activity_name, error)", + "legendFormat": "{{activity_name}}: {{error}}", "range": true, "refId": "A" } @@ -1661,7 +1652,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1728,8 +1719,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1766,7 +1756,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1853,7 +1843,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1941,7 +1931,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -2029,7 +2019,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -2117,7 +2107,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -2137,16 +2127,14 @@ } ], "preload": false, - "refresh": "5s", - "schemaVersion": 40, + "refresh": "10s", + "schemaVersion": 41, "tags": [], "templating": { "list": [ { "current": { - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -2173,9 +2161,7 @@ }, { "current": { - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -2202,9 +2188,7 @@ }, { "current": { - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -2231,13 +2215,12 @@ ] }, "time": { - "from": "now-5m", + "from": "now-15m", "to": "now" }, "timepicker": {}, "timezone": "", "title": "Gasoline", "uid": "636d22f9-d18f-4086-8b45-7c50886a105c", - "version": 1, - "weekStart": "" + "version": 3 } \ No newline at end of file diff --git a/engine/docker/dev-multidc-multinode/core/grafana/dashboards/operation.json b/engine/docker/dev-multidc-multinode/core/grafana/dashboards/operation.json index aef24f0c6f..d08127f92b 100644 --- a/engine/docker/dev-multidc-multinode/core/grafana/dashboards/operation.json +++ b/engine/docker/dev-multidc-multinode/core/grafana/dashboards/operation.json @@ -133,7 +133,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(increase(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error_code!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (le)", + "expr": "sum(increase(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (le)", "format": "heatmap", "legendFormat": "{{le}}", "range": true, @@ -548,7 +548,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "(\r\n sum(rate(rivet_gasoline_operation_duration_sum{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error_code!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (operation_name) /\r\n sum(rate(rivet_gasoline_operation_duration_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error_code!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (operation_name)\r\n) > 0", + "expr": "(\r\n sum(rate(rivet_gasoline_operation_duration_sum{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (operation_name) /\r\n sum(rate(rivet_gasoline_operation_duration_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (operation_name)\r\n) > 0", "format": "heatmap", "legendFormat": "{{operation_name}}", "range": true, @@ -649,7 +649,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "histogram_quantile(0.95, \r\n sum(rate(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error_code!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) \r\n by (le, operation_name)\r\n) > 0\r\n", + "expr": "histogram_quantile(0.95, \r\n sum(rate(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) \r\n by (le, operation_name)\r\n) > 0\r\n", "format": "heatmap", "legendFormat": "{{operation_name}}", "range": true, @@ -750,7 +750,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "histogram_quantile(0.99, \r\n sum(rate(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error_code!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) \r\n by (le, operation_name)\r\n) > 0", + "expr": "histogram_quantile(0.99, \r\n sum(rate(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) \r\n by (le, operation_name)\r\n) > 0", "format": "heatmap", "legendFormat": "{{operation_name}}", "range": true, diff --git a/engine/docker/dev-multidc/core/grafana/dashboards/api.json b/engine/docker/dev-multidc/core/grafana/dashboards/api.json index 87a2584411..9dcc005c91 100644 --- a/engine/docker/dev-multidc/core/grafana/dashboards/api.json +++ b/engine/docker/dev-multidc/core/grafana/dashboards/api.json @@ -699,8 +699,8 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(rate(rivet_api_request_errors_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",status=~\"4[0-9][0-9]\",path=~\"$path\",method=~\"$method\",error_code!=\"API_CANCELLED\"}[$__rate_interval])) by (rivet_datacenter, method, path, status, error_code)", - "legendFormat": "{{rivet_datacenter}} {{method}} {{path}}: {{status}} ({{error_code}})", + "expr": "sum(rate(rivet_api_request_errors_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",status=~\"4[0-9][0-9]\",path=~\"$path\",method=~\"$method\",error!=\"API_CANCELLED\"}[$__rate_interval])) by (rivet_datacenter, method, path, status, error)", + "legendFormat": "{{rivet_datacenter}} {{method}} {{path}}: {{status}} ({{error}})", "range": true, "refId": "A" } @@ -797,8 +797,8 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(rate(rivet_api_request_errors_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",path=~\"$path\",status=~\"5[0-9][0-9]\",method=~\"$method\",error_code!=\"API_CANCELLED\"}[$__rate_interval])) by (rivet_datacenter, method, path, status, error_code)", - "legendFormat": "{{rivet_datacenter}} {{method}} {{path}}: {{status}} ({{error_code}})", + "expr": "sum(rate(rivet_api_request_errors_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",path=~\"$path\",status=~\"5[0-9][0-9]\",method=~\"$method\",error!=\"API_CANCELLED\"}[$__rate_interval])) by (rivet_datacenter, method, path, status, error)", + "legendFormat": "{{rivet_datacenter}} {{method}} {{path}}: {{status}} ({{error}})", "range": true, "refId": "A" } @@ -896,8 +896,8 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(rate(\n rivet_api_request_duration_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",path=~\"$path\",method=~\"$method\",status=~\"(200|5[0-9][0-9])\",error_code!=\"API_CANCELLED\"}\n [$__rate_interval])) by (status, error_code)", - "legendFormat": "{{method}} {{path}}: {{status}} {{error_code}}", + "expr": "sum(rate(\n rivet_api_request_duration_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",path=~\"$path\",method=~\"$method\",status=~\"(200|5[0-9][0-9])\",error!=\"API_CANCELLED\"}\n [$__rate_interval])) by (status, error)", + "legendFormat": "{{method}} {{path}}: {{status}} {{error}}", "range": true, "refId": "A" } diff --git a/engine/docker/dev-multidc/core/grafana/dashboards/cache.json b/engine/docker/dev-multidc/core/grafana/dashboards/cache.json index 802c056290..282e099a8e 100644 --- a/engine/docker/dev-multidc/core/grafana/dashboards/cache.json +++ b/engine/docker/dev-multidc/core/grafana/dashboards/cache.json @@ -18,8 +18,8 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, + "id": 7, "links": [], - "liveNow": false, "panels": [ { "datasource": { @@ -39,6 +39,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -69,8 +70,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -97,10 +97,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -136,6 +138,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -166,8 +169,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -193,10 +195,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -232,6 +236,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -262,8 +267,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -290,10 +294,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -329,6 +335,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -359,8 +366,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -387,10 +393,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -398,7 +406,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(irate(rivet_cache_value_miss_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval]) / rate(rivet_cache_value_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval])) by (key)", + "expr": "sum by (key) (rate(rivet_cache_value_miss_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval])) / sum by (key) (rate(rivet_cache_value_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval]))", "instant": false, "legendFormat": "{{key}}", "range": true, @@ -426,6 +434,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -456,8 +465,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -484,10 +492,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -523,6 +533,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -553,8 +564,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -581,10 +591,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -592,7 +604,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(irate(rivet_cache_value_empty_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval]) / rate(rivet_cache_value_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval])) by (key)", + "expr": "sum by (key) (rate(rivet_cache_value_empty_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval])) / sum by (key) (rate(rivet_cache_value_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval]))", "instant": false, "legendFormat": "{{key}}", "range": true, @@ -620,6 +632,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -650,8 +663,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -678,10 +690,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -717,6 +731,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -747,8 +762,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -775,10 +789,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -797,16 +813,15 @@ "type": "timeseries" } ], + "preload": false, "refresh": "5s", - "schemaVersion": 39, + "schemaVersion": 41, "tags": [], "templating": { "list": [ { "current": { - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -833,9 +848,7 @@ }, { "current": { - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -862,10 +875,7 @@ }, { "current": { - "selected": true, - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -875,7 +885,6 @@ "uid": "prometheus" }, "definition": "label_values(rivet_cache_request_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\"},key)", - "hide": 0, "includeAll": true, "label": "Cache Key", "multi": true, @@ -887,8 +896,6 @@ }, "refresh": 1, "regex": "", - "skipUrlSync": false, - "sort": 0, "type": "query" } ] @@ -901,6 +908,5 @@ "timezone": "", "title": "Cache", "uid": "c35233ed-b698-4838-9426-18e1586017f1", - "version": 1, - "weekStart": "" + "version": 3 } \ No newline at end of file diff --git a/engine/docker/dev-multidc/core/grafana/dashboards/foundationdb.json b/engine/docker/dev-multidc/core/grafana/dashboards/foundationdb.json deleted file mode 100644 index 40acb297a3..0000000000 --- a/engine/docker/dev-multidc/core/grafana/dashboards/foundationdb.json +++ /dev/null @@ -1,1845 +0,0 @@ -{ - "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": 0, - "id": 58, - "links": [], - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "op/s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 0 - }, - "id": 14, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "irate(fdb_workload_op_count_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\",op=~\"reads|writes\"}[1m])", - "instant": false, - "legendFormat": "{{instance}} ({{op}})", - "range": true, - "refId": "A" - } - ], - "title": "Operations", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "txn/s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 0 - }, - "id": 13, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "irate(fdb_workload_transaction_count_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\",state=~\"started|committed|conflicted\"}[1m])", - "instant": false, - "legendFormat": "{{instance}} ({{state}})", - "range": true, - "refId": "A" - } - ], - "title": "Transactions", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "k/s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 8 - }, - "id": 12, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "irate(fdb_storage_keys_queried_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}[1m])", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Keys Queried", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "binBps" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 8 - }, - "id": 15, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "irate(fdb_workload_bytes_read_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}[1m])", - "instant": false, - "legendFormat": "{{instance}} (read)", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "irate(fdb_workload_bytes_written_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}[1m])", - "hide": false, - "instant": false, - "legendFormat": "{{instance}} (written)", - "range": true, - "refId": "B" - } - ], - "title": "Workload Data", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1, - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 16 - }, - "id": 3, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_memory_used_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"} / on(instance) fdb_memory_limit_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Memory Utilization", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1, - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 16 - }, - "id": 8, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_process_cpu_utilization{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "CPU Utilization", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 2, - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "k/s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 24 - }, - "id": 16, - "options": { - "legend": { - "calcs": [ - "lastNotNull" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Last *", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "sum by (type) (irate(rivet_fdb_key_pack_count[1m]))", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Keys Packed", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 2, - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "k/s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 24 - }, - "id": 17, - "options": { - "legend": { - "calcs": [ - "lastNotNull" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Last *", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "sum by (type) (irate(rivet_fdb_key_unpack_count[1m]))", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Keys Unpacked", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 32 - }, - "id": 2, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_total_disk_used_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"} / on(instance) fdb_disk_total_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Disk Utilization", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 32 - }, - "id": 5, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_total_disk_used_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Disk Usage", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - } - }, - "decimals": 0, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 40 - }, - "id": 9, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_client_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Clients", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "bool" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 40 - }, - "id": 4, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "1 - fdb_database_available{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Database Unavailable", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 48 - }, - "id": 7, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_storage_data_lag_seconds{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Data Lag", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 10, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 48 - }, - "id": 1, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_degraded_process_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Degraded Processes", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 56 - }, - "id": 6, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_average_partition_size_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Avg Partition Size", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 56 - }, - "id": 11, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_moving_data_in_flight_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"} + fdb_moving_data_in_queue_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Moving Data", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 64 - }, - "id": 10, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_log_queue_disk_used_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"} / on(instance) fdb_log_queue_disk_total_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Log Queue Utilization", - "type": "timeseries" - } - ], - "preload": false, - "refresh": "", - "schemaVersion": 40, - "tags": [], - "templating": { - "list": [ - { - "current": { - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "definition": "label_values(rivet_project)", - "includeAll": true, - "label": "Project", - "multi": true, - "name": "project", - "options": [], - "query": { - "qryType": 1, - "query": "label_values(rivet_project)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 1, - "regex": "", - "sort": 1, - "type": "query" - }, - { - "current": { - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "definition": "label_values({rivet_project=~\"$project\"},rivet_datacenter)", - "includeAll": true, - "label": "Datacenter", - "multi": true, - "name": "datacenter", - "options": [], - "query": { - "qryType": 1, - "query": "label_values({rivet_project=~\"$project\"},rivet_datacenter)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 1, - "regex": "", - "sort": 1, - "type": "query" - }, - { - "current": { - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "definition": "label_values(fdb_database_available{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\"},instance)", - "includeAll": true, - "label": "Instance", - "multi": true, - "name": "instance", - "options": [], - "query": { - "qryType": 1, - "query": "label_values(fdb_database_available{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\"},instance)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 1, - "regex": "", - "type": "query" - } - ] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": {}, - "timezone": "utc", - "title": "FoundationDB", - "uid": "aef2tiqr8tnghe", - "version": 2, - "weekStart": "" -} \ No newline at end of file diff --git a/engine/docker/dev-multidc/core/grafana/dashboards/gasoline.json b/engine/docker/dev-multidc/core/grafana/dashboards/gasoline.json index 672ac40493..36dcbfa7e8 100644 --- a/engine/docker/dev-multidc/core/grafana/dashboards/gasoline.json +++ b/engine/docker/dev-multidc/core/grafana/dashboards/gasoline.json @@ -18,7 +18,7 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 1, - "id": 7, + "id": 2, "links": [], "panels": [ { @@ -71,8 +71,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -107,7 +106,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -175,8 +174,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -211,7 +209,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -279,8 +277,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -315,7 +312,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -384,8 +381,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -420,7 +416,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -428,9 +424,9 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum by (workflow_name, error_code) (rivet_gasoline_workflow_dead{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",workflow_name=~\"$workflow_name\"})", + "expr": "sum by (workflow_name, error) (rivet_gasoline_workflow_dead{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",workflow_name=~\"$workflow_name\"})", "instant": false, - "legendFormat": "({{workflow_name}}) {{error_code}}", + "legendFormat": "{{workflow_name}}: {{error}}", "range": true, "refId": "A" } @@ -488,8 +484,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -524,7 +519,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -592,8 +587,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -628,7 +622,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -716,7 +710,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -804,7 +798,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -873,8 +867,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -910,7 +903,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -979,8 +972,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1016,7 +1008,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1104,7 +1096,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1192,7 +1184,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1280,7 +1272,7 @@ "unit": "" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1368,7 +1360,7 @@ "unit": "percentunit" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1469,7 +1461,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1536,8 +1528,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1574,7 +1565,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1582,8 +1573,8 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(rate(rivet_gasoline_activity_errors{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",workflow_name=~\"$workflow_name\"}[$__rate_interval])) by (activity_name, error_code)", - "legendFormat": "{{activity_name}}: {{error_code}}", + "expr": "sum(rate(rivet_gasoline_activity_errors{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",workflow_name=~\"$workflow_name\"}[$__rate_interval])) by (activity_name, error)", + "legendFormat": "{{activity_name}}: {{error}}", "range": true, "refId": "A" } @@ -1661,7 +1652,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1728,8 +1719,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1766,7 +1756,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1853,7 +1843,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1941,7 +1931,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -2029,7 +2019,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -2117,7 +2107,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -2137,16 +2127,14 @@ } ], "preload": false, - "refresh": "5s", - "schemaVersion": 40, + "refresh": "10s", + "schemaVersion": 41, "tags": [], "templating": { "list": [ { "current": { - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -2173,9 +2161,7 @@ }, { "current": { - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -2202,9 +2188,7 @@ }, { "current": { - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -2231,13 +2215,12 @@ ] }, "time": { - "from": "now-5m", + "from": "now-15m", "to": "now" }, "timepicker": {}, "timezone": "", "title": "Gasoline", "uid": "636d22f9-d18f-4086-8b45-7c50886a105c", - "version": 1, - "weekStart": "" + "version": 3 } \ No newline at end of file diff --git a/engine/docker/dev-multidc/core/grafana/dashboards/operation.json b/engine/docker/dev-multidc/core/grafana/dashboards/operation.json index aef24f0c6f..d08127f92b 100644 --- a/engine/docker/dev-multidc/core/grafana/dashboards/operation.json +++ b/engine/docker/dev-multidc/core/grafana/dashboards/operation.json @@ -133,7 +133,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(increase(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error_code!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (le)", + "expr": "sum(increase(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (le)", "format": "heatmap", "legendFormat": "{{le}}", "range": true, @@ -548,7 +548,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "(\r\n sum(rate(rivet_gasoline_operation_duration_sum{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error_code!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (operation_name) /\r\n sum(rate(rivet_gasoline_operation_duration_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error_code!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (operation_name)\r\n) > 0", + "expr": "(\r\n sum(rate(rivet_gasoline_operation_duration_sum{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (operation_name) /\r\n sum(rate(rivet_gasoline_operation_duration_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (operation_name)\r\n) > 0", "format": "heatmap", "legendFormat": "{{operation_name}}", "range": true, @@ -649,7 +649,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "histogram_quantile(0.95, \r\n sum(rate(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error_code!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) \r\n by (le, operation_name)\r\n) > 0\r\n", + "expr": "histogram_quantile(0.95, \r\n sum(rate(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) \r\n by (le, operation_name)\r\n) > 0\r\n", "format": "heatmap", "legendFormat": "{{operation_name}}", "range": true, @@ -750,7 +750,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "histogram_quantile(0.99, \r\n sum(rate(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error_code!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) \r\n by (le, operation_name)\r\n) > 0", + "expr": "histogram_quantile(0.99, \r\n sum(rate(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) \r\n by (le, operation_name)\r\n) > 0", "format": "heatmap", "legendFormat": "{{operation_name}}", "range": true, diff --git a/engine/docker/dev-multinode/grafana/dashboards/api.json b/engine/docker/dev-multinode/grafana/dashboards/api.json index 87a2584411..9dcc005c91 100644 --- a/engine/docker/dev-multinode/grafana/dashboards/api.json +++ b/engine/docker/dev-multinode/grafana/dashboards/api.json @@ -699,8 +699,8 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(rate(rivet_api_request_errors_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",status=~\"4[0-9][0-9]\",path=~\"$path\",method=~\"$method\",error_code!=\"API_CANCELLED\"}[$__rate_interval])) by (rivet_datacenter, method, path, status, error_code)", - "legendFormat": "{{rivet_datacenter}} {{method}} {{path}}: {{status}} ({{error_code}})", + "expr": "sum(rate(rivet_api_request_errors_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",status=~\"4[0-9][0-9]\",path=~\"$path\",method=~\"$method\",error!=\"API_CANCELLED\"}[$__rate_interval])) by (rivet_datacenter, method, path, status, error)", + "legendFormat": "{{rivet_datacenter}} {{method}} {{path}}: {{status}} ({{error}})", "range": true, "refId": "A" } @@ -797,8 +797,8 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(rate(rivet_api_request_errors_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",path=~\"$path\",status=~\"5[0-9][0-9]\",method=~\"$method\",error_code!=\"API_CANCELLED\"}[$__rate_interval])) by (rivet_datacenter, method, path, status, error_code)", - "legendFormat": "{{rivet_datacenter}} {{method}} {{path}}: {{status}} ({{error_code}})", + "expr": "sum(rate(rivet_api_request_errors_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",path=~\"$path\",status=~\"5[0-9][0-9]\",method=~\"$method\",error!=\"API_CANCELLED\"}[$__rate_interval])) by (rivet_datacenter, method, path, status, error)", + "legendFormat": "{{rivet_datacenter}} {{method}} {{path}}: {{status}} ({{error}})", "range": true, "refId": "A" } @@ -896,8 +896,8 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(rate(\n rivet_api_request_duration_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",path=~\"$path\",method=~\"$method\",status=~\"(200|5[0-9][0-9])\",error_code!=\"API_CANCELLED\"}\n [$__rate_interval])) by (status, error_code)", - "legendFormat": "{{method}} {{path}}: {{status}} {{error_code}}", + "expr": "sum(rate(\n rivet_api_request_duration_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",path=~\"$path\",method=~\"$method\",status=~\"(200|5[0-9][0-9])\",error!=\"API_CANCELLED\"}\n [$__rate_interval])) by (status, error)", + "legendFormat": "{{method}} {{path}}: {{status}} {{error}}", "range": true, "refId": "A" } diff --git a/engine/docker/dev-multinode/grafana/dashboards/cache.json b/engine/docker/dev-multinode/grafana/dashboards/cache.json index 802c056290..282e099a8e 100644 --- a/engine/docker/dev-multinode/grafana/dashboards/cache.json +++ b/engine/docker/dev-multinode/grafana/dashboards/cache.json @@ -18,8 +18,8 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, + "id": 7, "links": [], - "liveNow": false, "panels": [ { "datasource": { @@ -39,6 +39,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -69,8 +70,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -97,10 +97,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -136,6 +138,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -166,8 +169,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -193,10 +195,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -232,6 +236,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -262,8 +267,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -290,10 +294,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -329,6 +335,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -359,8 +366,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -387,10 +393,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -398,7 +406,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(irate(rivet_cache_value_miss_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval]) / rate(rivet_cache_value_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval])) by (key)", + "expr": "sum by (key) (rate(rivet_cache_value_miss_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval])) / sum by (key) (rate(rivet_cache_value_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval]))", "instant": false, "legendFormat": "{{key}}", "range": true, @@ -426,6 +434,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -456,8 +465,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -484,10 +492,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -523,6 +533,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -553,8 +564,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -581,10 +591,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -592,7 +604,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(irate(rivet_cache_value_empty_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval]) / rate(rivet_cache_value_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval])) by (key)", + "expr": "sum by (key) (rate(rivet_cache_value_empty_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval])) / sum by (key) (rate(rivet_cache_value_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval]))", "instant": false, "legendFormat": "{{key}}", "range": true, @@ -620,6 +632,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -650,8 +663,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -678,10 +690,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -717,6 +731,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -747,8 +762,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -775,10 +789,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -797,16 +813,15 @@ "type": "timeseries" } ], + "preload": false, "refresh": "5s", - "schemaVersion": 39, + "schemaVersion": 41, "tags": [], "templating": { "list": [ { "current": { - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -833,9 +848,7 @@ }, { "current": { - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -862,10 +875,7 @@ }, { "current": { - "selected": true, - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -875,7 +885,6 @@ "uid": "prometheus" }, "definition": "label_values(rivet_cache_request_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\"},key)", - "hide": 0, "includeAll": true, "label": "Cache Key", "multi": true, @@ -887,8 +896,6 @@ }, "refresh": 1, "regex": "", - "skipUrlSync": false, - "sort": 0, "type": "query" } ] @@ -901,6 +908,5 @@ "timezone": "", "title": "Cache", "uid": "c35233ed-b698-4838-9426-18e1586017f1", - "version": 1, - "weekStart": "" + "version": 3 } \ No newline at end of file diff --git a/engine/docker/dev-multinode/grafana/dashboards/foundationdb.json b/engine/docker/dev-multinode/grafana/dashboards/foundationdb.json deleted file mode 100644 index 40acb297a3..0000000000 --- a/engine/docker/dev-multinode/grafana/dashboards/foundationdb.json +++ /dev/null @@ -1,1845 +0,0 @@ -{ - "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": 0, - "id": 58, - "links": [], - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "op/s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 0 - }, - "id": 14, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "irate(fdb_workload_op_count_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\",op=~\"reads|writes\"}[1m])", - "instant": false, - "legendFormat": "{{instance}} ({{op}})", - "range": true, - "refId": "A" - } - ], - "title": "Operations", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "txn/s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 0 - }, - "id": 13, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "irate(fdb_workload_transaction_count_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\",state=~\"started|committed|conflicted\"}[1m])", - "instant": false, - "legendFormat": "{{instance}} ({{state}})", - "range": true, - "refId": "A" - } - ], - "title": "Transactions", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "k/s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 8 - }, - "id": 12, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "irate(fdb_storage_keys_queried_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}[1m])", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Keys Queried", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "binBps" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 8 - }, - "id": 15, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "irate(fdb_workload_bytes_read_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}[1m])", - "instant": false, - "legendFormat": "{{instance}} (read)", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "irate(fdb_workload_bytes_written_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}[1m])", - "hide": false, - "instant": false, - "legendFormat": "{{instance}} (written)", - "range": true, - "refId": "B" - } - ], - "title": "Workload Data", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1, - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 16 - }, - "id": 3, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_memory_used_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"} / on(instance) fdb_memory_limit_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Memory Utilization", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1, - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 16 - }, - "id": 8, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_process_cpu_utilization{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "CPU Utilization", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 2, - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "k/s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 24 - }, - "id": 16, - "options": { - "legend": { - "calcs": [ - "lastNotNull" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Last *", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "sum by (type) (irate(rivet_fdb_key_pack_count[1m]))", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Keys Packed", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 2, - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "k/s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 24 - }, - "id": 17, - "options": { - "legend": { - "calcs": [ - "lastNotNull" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Last *", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "sum by (type) (irate(rivet_fdb_key_unpack_count[1m]))", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Keys Unpacked", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 32 - }, - "id": 2, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_total_disk_used_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"} / on(instance) fdb_disk_total_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Disk Utilization", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 32 - }, - "id": 5, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_total_disk_used_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Disk Usage", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - } - }, - "decimals": 0, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 40 - }, - "id": 9, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_client_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Clients", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "bool" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 40 - }, - "id": 4, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "1 - fdb_database_available{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Database Unavailable", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 48 - }, - "id": 7, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_storage_data_lag_seconds{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Data Lag", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 10, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 48 - }, - "id": 1, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_degraded_process_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Degraded Processes", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 56 - }, - "id": 6, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_average_partition_size_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Avg Partition Size", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 56 - }, - "id": 11, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_moving_data_in_flight_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"} + fdb_moving_data_in_queue_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Moving Data", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 64 - }, - "id": 10, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_log_queue_disk_used_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"} / on(instance) fdb_log_queue_disk_total_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Log Queue Utilization", - "type": "timeseries" - } - ], - "preload": false, - "refresh": "", - "schemaVersion": 40, - "tags": [], - "templating": { - "list": [ - { - "current": { - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "definition": "label_values(rivet_project)", - "includeAll": true, - "label": "Project", - "multi": true, - "name": "project", - "options": [], - "query": { - "qryType": 1, - "query": "label_values(rivet_project)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 1, - "regex": "", - "sort": 1, - "type": "query" - }, - { - "current": { - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "definition": "label_values({rivet_project=~\"$project\"},rivet_datacenter)", - "includeAll": true, - "label": "Datacenter", - "multi": true, - "name": "datacenter", - "options": [], - "query": { - "qryType": 1, - "query": "label_values({rivet_project=~\"$project\"},rivet_datacenter)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 1, - "regex": "", - "sort": 1, - "type": "query" - }, - { - "current": { - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "definition": "label_values(fdb_database_available{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\"},instance)", - "includeAll": true, - "label": "Instance", - "multi": true, - "name": "instance", - "options": [], - "query": { - "qryType": 1, - "query": "label_values(fdb_database_available{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\"},instance)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 1, - "regex": "", - "type": "query" - } - ] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": {}, - "timezone": "utc", - "title": "FoundationDB", - "uid": "aef2tiqr8tnghe", - "version": 2, - "weekStart": "" -} \ No newline at end of file diff --git a/engine/docker/dev-multinode/grafana/dashboards/gasoline.json b/engine/docker/dev-multinode/grafana/dashboards/gasoline.json index 672ac40493..36dcbfa7e8 100644 --- a/engine/docker/dev-multinode/grafana/dashboards/gasoline.json +++ b/engine/docker/dev-multinode/grafana/dashboards/gasoline.json @@ -18,7 +18,7 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 1, - "id": 7, + "id": 2, "links": [], "panels": [ { @@ -71,8 +71,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -107,7 +106,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -175,8 +174,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -211,7 +209,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -279,8 +277,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -315,7 +312,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -384,8 +381,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -420,7 +416,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -428,9 +424,9 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum by (workflow_name, error_code) (rivet_gasoline_workflow_dead{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",workflow_name=~\"$workflow_name\"})", + "expr": "sum by (workflow_name, error) (rivet_gasoline_workflow_dead{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",workflow_name=~\"$workflow_name\"})", "instant": false, - "legendFormat": "({{workflow_name}}) {{error_code}}", + "legendFormat": "{{workflow_name}}: {{error}}", "range": true, "refId": "A" } @@ -488,8 +484,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -524,7 +519,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -592,8 +587,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -628,7 +622,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -716,7 +710,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -804,7 +798,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -873,8 +867,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -910,7 +903,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -979,8 +972,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1016,7 +1008,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1104,7 +1096,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1192,7 +1184,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1280,7 +1272,7 @@ "unit": "" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1368,7 +1360,7 @@ "unit": "percentunit" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1469,7 +1461,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1536,8 +1528,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1574,7 +1565,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1582,8 +1573,8 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(rate(rivet_gasoline_activity_errors{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",workflow_name=~\"$workflow_name\"}[$__rate_interval])) by (activity_name, error_code)", - "legendFormat": "{{activity_name}}: {{error_code}}", + "expr": "sum(rate(rivet_gasoline_activity_errors{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",workflow_name=~\"$workflow_name\"}[$__rate_interval])) by (activity_name, error)", + "legendFormat": "{{activity_name}}: {{error}}", "range": true, "refId": "A" } @@ -1661,7 +1652,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1728,8 +1719,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1766,7 +1756,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1853,7 +1843,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1941,7 +1931,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -2029,7 +2019,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -2117,7 +2107,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -2137,16 +2127,14 @@ } ], "preload": false, - "refresh": "5s", - "schemaVersion": 40, + "refresh": "10s", + "schemaVersion": 41, "tags": [], "templating": { "list": [ { "current": { - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -2173,9 +2161,7 @@ }, { "current": { - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -2202,9 +2188,7 @@ }, { "current": { - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -2231,13 +2215,12 @@ ] }, "time": { - "from": "now-5m", + "from": "now-15m", "to": "now" }, "timepicker": {}, "timezone": "", "title": "Gasoline", "uid": "636d22f9-d18f-4086-8b45-7c50886a105c", - "version": 1, - "weekStart": "" + "version": 3 } \ No newline at end of file diff --git a/engine/docker/dev-multinode/grafana/dashboards/operation.json b/engine/docker/dev-multinode/grafana/dashboards/operation.json index aef24f0c6f..d08127f92b 100644 --- a/engine/docker/dev-multinode/grafana/dashboards/operation.json +++ b/engine/docker/dev-multinode/grafana/dashboards/operation.json @@ -133,7 +133,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(increase(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error_code!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (le)", + "expr": "sum(increase(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (le)", "format": "heatmap", "legendFormat": "{{le}}", "range": true, @@ -548,7 +548,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "(\r\n sum(rate(rivet_gasoline_operation_duration_sum{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error_code!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (operation_name) /\r\n sum(rate(rivet_gasoline_operation_duration_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error_code!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (operation_name)\r\n) > 0", + "expr": "(\r\n sum(rate(rivet_gasoline_operation_duration_sum{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (operation_name) /\r\n sum(rate(rivet_gasoline_operation_duration_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (operation_name)\r\n) > 0", "format": "heatmap", "legendFormat": "{{operation_name}}", "range": true, @@ -649,7 +649,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "histogram_quantile(0.95, \r\n sum(rate(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error_code!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) \r\n by (le, operation_name)\r\n) > 0\r\n", + "expr": "histogram_quantile(0.95, \r\n sum(rate(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) \r\n by (le, operation_name)\r\n) > 0\r\n", "format": "heatmap", "legendFormat": "{{operation_name}}", "range": true, @@ -750,7 +750,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "histogram_quantile(0.99, \r\n sum(rate(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error_code!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) \r\n by (le, operation_name)\r\n) > 0", + "expr": "histogram_quantile(0.99, \r\n sum(rate(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) \r\n by (le, operation_name)\r\n) > 0", "format": "heatmap", "legendFormat": "{{operation_name}}", "range": true, diff --git a/engine/docker/dev/grafana/dashboards/api.json b/engine/docker/dev/grafana/dashboards/api.json index 87a2584411..9dcc005c91 100644 --- a/engine/docker/dev/grafana/dashboards/api.json +++ b/engine/docker/dev/grafana/dashboards/api.json @@ -699,8 +699,8 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(rate(rivet_api_request_errors_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",status=~\"4[0-9][0-9]\",path=~\"$path\",method=~\"$method\",error_code!=\"API_CANCELLED\"}[$__rate_interval])) by (rivet_datacenter, method, path, status, error_code)", - "legendFormat": "{{rivet_datacenter}} {{method}} {{path}}: {{status}} ({{error_code}})", + "expr": "sum(rate(rivet_api_request_errors_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",status=~\"4[0-9][0-9]\",path=~\"$path\",method=~\"$method\",error!=\"API_CANCELLED\"}[$__rate_interval])) by (rivet_datacenter, method, path, status, error)", + "legendFormat": "{{rivet_datacenter}} {{method}} {{path}}: {{status}} ({{error}})", "range": true, "refId": "A" } @@ -797,8 +797,8 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(rate(rivet_api_request_errors_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",path=~\"$path\",status=~\"5[0-9][0-9]\",method=~\"$method\",error_code!=\"API_CANCELLED\"}[$__rate_interval])) by (rivet_datacenter, method, path, status, error_code)", - "legendFormat": "{{rivet_datacenter}} {{method}} {{path}}: {{status}} ({{error_code}})", + "expr": "sum(rate(rivet_api_request_errors_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",path=~\"$path\",status=~\"5[0-9][0-9]\",method=~\"$method\",error!=\"API_CANCELLED\"}[$__rate_interval])) by (rivet_datacenter, method, path, status, error)", + "legendFormat": "{{rivet_datacenter}} {{method}} {{path}}: {{status}} ({{error}})", "range": true, "refId": "A" } @@ -896,8 +896,8 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(rate(\n rivet_api_request_duration_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",path=~\"$path\",method=~\"$method\",status=~\"(200|5[0-9][0-9])\",error_code!=\"API_CANCELLED\"}\n [$__rate_interval])) by (status, error_code)", - "legendFormat": "{{method}} {{path}}: {{status}} {{error_code}}", + "expr": "sum(rate(\n rivet_api_request_duration_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",path=~\"$path\",method=~\"$method\",status=~\"(200|5[0-9][0-9])\",error!=\"API_CANCELLED\"}\n [$__rate_interval])) by (status, error)", + "legendFormat": "{{method}} {{path}}: {{status}} {{error}}", "range": true, "refId": "A" } diff --git a/engine/docker/dev/grafana/dashboards/cache.json b/engine/docker/dev/grafana/dashboards/cache.json index 802c056290..282e099a8e 100644 --- a/engine/docker/dev/grafana/dashboards/cache.json +++ b/engine/docker/dev/grafana/dashboards/cache.json @@ -18,8 +18,8 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, + "id": 7, "links": [], - "liveNow": false, "panels": [ { "datasource": { @@ -39,6 +39,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -69,8 +70,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -97,10 +97,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -136,6 +138,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -166,8 +169,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -193,10 +195,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -232,6 +236,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -262,8 +267,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -290,10 +294,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -329,6 +335,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -359,8 +366,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -387,10 +393,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -398,7 +406,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(irate(rivet_cache_value_miss_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval]) / rate(rivet_cache_value_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval])) by (key)", + "expr": "sum by (key) (rate(rivet_cache_value_miss_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval])) / sum by (key) (rate(rivet_cache_value_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval]))", "instant": false, "legendFormat": "{{key}}", "range": true, @@ -426,6 +434,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -456,8 +465,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -484,10 +492,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -523,6 +533,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -553,8 +564,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -581,10 +591,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -592,7 +604,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(irate(rivet_cache_value_empty_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval]) / rate(rivet_cache_value_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval])) by (key)", + "expr": "sum by (key) (rate(rivet_cache_value_empty_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval])) / sum by (key) (rate(rivet_cache_value_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval]))", "instant": false, "legendFormat": "{{key}}", "range": true, @@ -620,6 +632,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -650,8 +663,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -678,10 +690,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -717,6 +731,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -747,8 +762,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -775,10 +789,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -797,16 +813,15 @@ "type": "timeseries" } ], + "preload": false, "refresh": "5s", - "schemaVersion": 39, + "schemaVersion": 41, "tags": [], "templating": { "list": [ { "current": { - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -833,9 +848,7 @@ }, { "current": { - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -862,10 +875,7 @@ }, { "current": { - "selected": true, - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -875,7 +885,6 @@ "uid": "prometheus" }, "definition": "label_values(rivet_cache_request_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\"},key)", - "hide": 0, "includeAll": true, "label": "Cache Key", "multi": true, @@ -887,8 +896,6 @@ }, "refresh": 1, "regex": "", - "skipUrlSync": false, - "sort": 0, "type": "query" } ] @@ -901,6 +908,5 @@ "timezone": "", "title": "Cache", "uid": "c35233ed-b698-4838-9426-18e1586017f1", - "version": 1, - "weekStart": "" + "version": 3 } \ No newline at end of file diff --git a/engine/docker/dev/grafana/dashboards/foundationdb.json b/engine/docker/dev/grafana/dashboards/foundationdb.json deleted file mode 100644 index 40acb297a3..0000000000 --- a/engine/docker/dev/grafana/dashboards/foundationdb.json +++ /dev/null @@ -1,1845 +0,0 @@ -{ - "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": 0, - "id": 58, - "links": [], - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "op/s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 0 - }, - "id": 14, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "irate(fdb_workload_op_count_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\",op=~\"reads|writes\"}[1m])", - "instant": false, - "legendFormat": "{{instance}} ({{op}})", - "range": true, - "refId": "A" - } - ], - "title": "Operations", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "txn/s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 0 - }, - "id": 13, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "irate(fdb_workload_transaction_count_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\",state=~\"started|committed|conflicted\"}[1m])", - "instant": false, - "legendFormat": "{{instance}} ({{state}})", - "range": true, - "refId": "A" - } - ], - "title": "Transactions", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "k/s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 8 - }, - "id": 12, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "irate(fdb_storage_keys_queried_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}[1m])", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Keys Queried", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "binBps" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 8 - }, - "id": 15, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "irate(fdb_workload_bytes_read_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}[1m])", - "instant": false, - "legendFormat": "{{instance}} (read)", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "irate(fdb_workload_bytes_written_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}[1m])", - "hide": false, - "instant": false, - "legendFormat": "{{instance}} (written)", - "range": true, - "refId": "B" - } - ], - "title": "Workload Data", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1, - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 16 - }, - "id": 3, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_memory_used_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"} / on(instance) fdb_memory_limit_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Memory Utilization", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1, - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 16 - }, - "id": 8, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_process_cpu_utilization{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "CPU Utilization", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 2, - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "k/s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 24 - }, - "id": 16, - "options": { - "legend": { - "calcs": [ - "lastNotNull" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Last *", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "sum by (type) (irate(rivet_fdb_key_pack_count[1m]))", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Keys Packed", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 2, - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "k/s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 24 - }, - "id": 17, - "options": { - "legend": { - "calcs": [ - "lastNotNull" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Last *", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "sum by (type) (irate(rivet_fdb_key_unpack_count[1m]))", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Keys Unpacked", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 32 - }, - "id": 2, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_total_disk_used_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"} / on(instance) fdb_disk_total_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Disk Utilization", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 32 - }, - "id": 5, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_total_disk_used_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Disk Usage", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - } - }, - "decimals": 0, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 40 - }, - "id": 9, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_client_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Clients", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "bool" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 40 - }, - "id": 4, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "1 - fdb_database_available{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Database Unavailable", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 48 - }, - "id": 7, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_storage_data_lag_seconds{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Data Lag", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 10, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 48 - }, - "id": 1, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_degraded_process_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Degraded Processes", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 56 - }, - "id": 6, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_average_partition_size_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Avg Partition Size", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 56 - }, - "id": 11, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_moving_data_in_flight_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"} + fdb_moving_data_in_queue_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Moving Data", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 64 - }, - "id": 10, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_log_queue_disk_used_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"} / on(instance) fdb_log_queue_disk_total_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Log Queue Utilization", - "type": "timeseries" - } - ], - "preload": false, - "refresh": "", - "schemaVersion": 40, - "tags": [], - "templating": { - "list": [ - { - "current": { - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "definition": "label_values(rivet_project)", - "includeAll": true, - "label": "Project", - "multi": true, - "name": "project", - "options": [], - "query": { - "qryType": 1, - "query": "label_values(rivet_project)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 1, - "regex": "", - "sort": 1, - "type": "query" - }, - { - "current": { - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "definition": "label_values({rivet_project=~\"$project\"},rivet_datacenter)", - "includeAll": true, - "label": "Datacenter", - "multi": true, - "name": "datacenter", - "options": [], - "query": { - "qryType": 1, - "query": "label_values({rivet_project=~\"$project\"},rivet_datacenter)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 1, - "regex": "", - "sort": 1, - "type": "query" - }, - { - "current": { - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "definition": "label_values(fdb_database_available{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\"},instance)", - "includeAll": true, - "label": "Instance", - "multi": true, - "name": "instance", - "options": [], - "query": { - "qryType": 1, - "query": "label_values(fdb_database_available{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\"},instance)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 1, - "regex": "", - "type": "query" - } - ] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": {}, - "timezone": "utc", - "title": "FoundationDB", - "uid": "aef2tiqr8tnghe", - "version": 2, - "weekStart": "" -} \ No newline at end of file diff --git a/engine/docker/dev/grafana/dashboards/gasoline.json b/engine/docker/dev/grafana/dashboards/gasoline.json index 672ac40493..36dcbfa7e8 100644 --- a/engine/docker/dev/grafana/dashboards/gasoline.json +++ b/engine/docker/dev/grafana/dashboards/gasoline.json @@ -18,7 +18,7 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 1, - "id": 7, + "id": 2, "links": [], "panels": [ { @@ -71,8 +71,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -107,7 +106,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -175,8 +174,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -211,7 +209,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -279,8 +277,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -315,7 +312,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -384,8 +381,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -420,7 +416,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -428,9 +424,9 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum by (workflow_name, error_code) (rivet_gasoline_workflow_dead{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",workflow_name=~\"$workflow_name\"})", + "expr": "sum by (workflow_name, error) (rivet_gasoline_workflow_dead{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",workflow_name=~\"$workflow_name\"})", "instant": false, - "legendFormat": "({{workflow_name}}) {{error_code}}", + "legendFormat": "{{workflow_name}}: {{error}}", "range": true, "refId": "A" } @@ -488,8 +484,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -524,7 +519,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -592,8 +587,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -628,7 +622,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -716,7 +710,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -804,7 +798,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -873,8 +867,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -910,7 +903,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -979,8 +972,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1016,7 +1008,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1104,7 +1096,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1192,7 +1184,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1280,7 +1272,7 @@ "unit": "" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1368,7 +1360,7 @@ "unit": "percentunit" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1469,7 +1461,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1536,8 +1528,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1574,7 +1565,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1582,8 +1573,8 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(rate(rivet_gasoline_activity_errors{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",workflow_name=~\"$workflow_name\"}[$__rate_interval])) by (activity_name, error_code)", - "legendFormat": "{{activity_name}}: {{error_code}}", + "expr": "sum(rate(rivet_gasoline_activity_errors{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",workflow_name=~\"$workflow_name\"}[$__rate_interval])) by (activity_name, error)", + "legendFormat": "{{activity_name}}: {{error}}", "range": true, "refId": "A" } @@ -1661,7 +1652,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1728,8 +1719,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1766,7 +1756,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1853,7 +1843,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1941,7 +1931,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -2029,7 +2019,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -2117,7 +2107,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -2137,16 +2127,14 @@ } ], "preload": false, - "refresh": "5s", - "schemaVersion": 40, + "refresh": "10s", + "schemaVersion": 41, "tags": [], "templating": { "list": [ { "current": { - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -2173,9 +2161,7 @@ }, { "current": { - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -2202,9 +2188,7 @@ }, { "current": { - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -2231,13 +2215,12 @@ ] }, "time": { - "from": "now-5m", + "from": "now-15m", "to": "now" }, "timepicker": {}, "timezone": "", "title": "Gasoline", "uid": "636d22f9-d18f-4086-8b45-7c50886a105c", - "version": 1, - "weekStart": "" + "version": 3 } \ No newline at end of file diff --git a/engine/docker/dev/grafana/dashboards/operation.json b/engine/docker/dev/grafana/dashboards/operation.json index aef24f0c6f..d08127f92b 100644 --- a/engine/docker/dev/grafana/dashboards/operation.json +++ b/engine/docker/dev/grafana/dashboards/operation.json @@ -133,7 +133,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(increase(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error_code!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (le)", + "expr": "sum(increase(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (le)", "format": "heatmap", "legendFormat": "{{le}}", "range": true, @@ -548,7 +548,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "(\r\n sum(rate(rivet_gasoline_operation_duration_sum{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error_code!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (operation_name) /\r\n sum(rate(rivet_gasoline_operation_duration_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error_code!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (operation_name)\r\n) > 0", + "expr": "(\r\n sum(rate(rivet_gasoline_operation_duration_sum{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (operation_name) /\r\n sum(rate(rivet_gasoline_operation_duration_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (operation_name)\r\n) > 0", "format": "heatmap", "legendFormat": "{{operation_name}}", "range": true, @@ -649,7 +649,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "histogram_quantile(0.95, \r\n sum(rate(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error_code!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) \r\n by (le, operation_name)\r\n) > 0\r\n", + "expr": "histogram_quantile(0.95, \r\n sum(rate(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) \r\n by (le, operation_name)\r\n) > 0\r\n", "format": "heatmap", "legendFormat": "{{operation_name}}", "range": true, @@ -750,7 +750,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "histogram_quantile(0.99, \r\n sum(rate(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error_code!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) \r\n by (le, operation_name)\r\n) > 0", + "expr": "histogram_quantile(0.99, \r\n sum(rate(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) \r\n by (le, operation_name)\r\n) > 0", "format": "heatmap", "legendFormat": "{{operation_name}}", "range": true, diff --git a/engine/docker/template/grafana-dashboards/api.json b/engine/docker/template/grafana-dashboards/api.json index 87a2584411..9dcc005c91 100644 --- a/engine/docker/template/grafana-dashboards/api.json +++ b/engine/docker/template/grafana-dashboards/api.json @@ -699,8 +699,8 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(rate(rivet_api_request_errors_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",status=~\"4[0-9][0-9]\",path=~\"$path\",method=~\"$method\",error_code!=\"API_CANCELLED\"}[$__rate_interval])) by (rivet_datacenter, method, path, status, error_code)", - "legendFormat": "{{rivet_datacenter}} {{method}} {{path}}: {{status}} ({{error_code}})", + "expr": "sum(rate(rivet_api_request_errors_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",status=~\"4[0-9][0-9]\",path=~\"$path\",method=~\"$method\",error!=\"API_CANCELLED\"}[$__rate_interval])) by (rivet_datacenter, method, path, status, error)", + "legendFormat": "{{rivet_datacenter}} {{method}} {{path}}: {{status}} ({{error}})", "range": true, "refId": "A" } @@ -797,8 +797,8 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(rate(rivet_api_request_errors_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",path=~\"$path\",status=~\"5[0-9][0-9]\",method=~\"$method\",error_code!=\"API_CANCELLED\"}[$__rate_interval])) by (rivet_datacenter, method, path, status, error_code)", - "legendFormat": "{{rivet_datacenter}} {{method}} {{path}}: {{status}} ({{error_code}})", + "expr": "sum(rate(rivet_api_request_errors_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",path=~\"$path\",status=~\"5[0-9][0-9]\",method=~\"$method\",error!=\"API_CANCELLED\"}[$__rate_interval])) by (rivet_datacenter, method, path, status, error)", + "legendFormat": "{{rivet_datacenter}} {{method}} {{path}}: {{status}} ({{error}})", "range": true, "refId": "A" } @@ -896,8 +896,8 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(rate(\n rivet_api_request_duration_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",path=~\"$path\",method=~\"$method\",status=~\"(200|5[0-9][0-9])\",error_code!=\"API_CANCELLED\"}\n [$__rate_interval])) by (status, error_code)", - "legendFormat": "{{method}} {{path}}: {{status}} {{error_code}}", + "expr": "sum(rate(\n rivet_api_request_duration_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",path=~\"$path\",method=~\"$method\",status=~\"(200|5[0-9][0-9])\",error!=\"API_CANCELLED\"}\n [$__rate_interval])) by (status, error)", + "legendFormat": "{{method}} {{path}}: {{status}} {{error}}", "range": true, "refId": "A" } diff --git a/engine/docker/template/grafana-dashboards/cache.json b/engine/docker/template/grafana-dashboards/cache.json index 802c056290..282e099a8e 100644 --- a/engine/docker/template/grafana-dashboards/cache.json +++ b/engine/docker/template/grafana-dashboards/cache.json @@ -18,8 +18,8 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, + "id": 7, "links": [], - "liveNow": false, "panels": [ { "datasource": { @@ -39,6 +39,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -69,8 +70,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -97,10 +97,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -136,6 +138,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -166,8 +169,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -193,10 +195,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -232,6 +236,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -262,8 +267,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -290,10 +294,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -329,6 +335,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -359,8 +366,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -387,10 +393,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -398,7 +406,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(irate(rivet_cache_value_miss_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval]) / rate(rivet_cache_value_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval])) by (key)", + "expr": "sum by (key) (rate(rivet_cache_value_miss_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval])) / sum by (key) (rate(rivet_cache_value_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval]))", "instant": false, "legendFormat": "{{key}}", "range": true, @@ -426,6 +434,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -456,8 +465,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -484,10 +492,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -523,6 +533,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -553,8 +564,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -581,10 +591,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -592,7 +604,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(irate(rivet_cache_value_empty_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval]) / rate(rivet_cache_value_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval])) by (key)", + "expr": "sum by (key) (rate(rivet_cache_value_empty_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval])) / sum by (key) (rate(rivet_cache_value_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",key=~\"$key\"}[$__rate_interval]))", "instant": false, "legendFormat": "{{key}}", "range": true, @@ -620,6 +632,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -650,8 +663,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -678,10 +690,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -717,6 +731,7 @@ "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, + "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", @@ -747,8 +762,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -775,10 +789,12 @@ "showLegend": true }, "tooltip": { + "hideZeros": false, "mode": "single", "sort": "none" } }, + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -797,16 +813,15 @@ "type": "timeseries" } ], + "preload": false, "refresh": "5s", - "schemaVersion": 39, + "schemaVersion": 41, "tags": [], "templating": { "list": [ { "current": { - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -833,9 +848,7 @@ }, { "current": { - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -862,10 +875,7 @@ }, { "current": { - "selected": true, - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -875,7 +885,6 @@ "uid": "prometheus" }, "definition": "label_values(rivet_cache_request_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\"},key)", - "hide": 0, "includeAll": true, "label": "Cache Key", "multi": true, @@ -887,8 +896,6 @@ }, "refresh": 1, "regex": "", - "skipUrlSync": false, - "sort": 0, "type": "query" } ] @@ -901,6 +908,5 @@ "timezone": "", "title": "Cache", "uid": "c35233ed-b698-4838-9426-18e1586017f1", - "version": 1, - "weekStart": "" + "version": 3 } \ No newline at end of file diff --git a/engine/docker/template/grafana-dashboards/foundationdb.json b/engine/docker/template/grafana-dashboards/foundationdb.json deleted file mode 100644 index 40acb297a3..0000000000 --- a/engine/docker/template/grafana-dashboards/foundationdb.json +++ /dev/null @@ -1,1845 +0,0 @@ -{ - "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": 0, - "id": 58, - "links": [], - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "op/s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 0 - }, - "id": 14, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "irate(fdb_workload_op_count_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\",op=~\"reads|writes\"}[1m])", - "instant": false, - "legendFormat": "{{instance}} ({{op}})", - "range": true, - "refId": "A" - } - ], - "title": "Operations", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "txn/s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 0 - }, - "id": 13, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "irate(fdb_workload_transaction_count_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\",state=~\"started|committed|conflicted\"}[1m])", - "instant": false, - "legendFormat": "{{instance}} ({{state}})", - "range": true, - "refId": "A" - } - ], - "title": "Transactions", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "k/s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 8 - }, - "id": 12, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "irate(fdb_storage_keys_queried_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}[1m])", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Keys Queried", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "binBps" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 8 - }, - "id": 15, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "irate(fdb_workload_bytes_read_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}[1m])", - "instant": false, - "legendFormat": "{{instance}} (read)", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "irate(fdb_workload_bytes_written_total{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}[1m])", - "hide": false, - "instant": false, - "legendFormat": "{{instance}} (written)", - "range": true, - "refId": "B" - } - ], - "title": "Workload Data", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1, - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 16 - }, - "id": 3, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_memory_used_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"} / on(instance) fdb_memory_limit_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Memory Utilization", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1, - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 16 - }, - "id": 8, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_process_cpu_utilization{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "CPU Utilization", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 2, - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "k/s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 24 - }, - "id": 16, - "options": { - "legend": { - "calcs": [ - "lastNotNull" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Last *", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "sum by (type) (irate(rivet_fdb_key_pack_count[1m]))", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Keys Packed", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 2, - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "k/s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 24 - }, - "id": 17, - "options": { - "legend": { - "calcs": [ - "lastNotNull" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Last *", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "sum by (type) (irate(rivet_fdb_key_unpack_count[1m]))", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Keys Unpacked", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 32 - }, - "id": 2, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_total_disk_used_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"} / on(instance) fdb_disk_total_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Disk Utilization", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 32 - }, - "id": 5, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_total_disk_used_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Disk Usage", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - } - }, - "decimals": 0, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 40 - }, - "id": 9, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_client_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Clients", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "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": "bool" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 40 - }, - "id": 4, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "1 - fdb_database_available{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Database Unavailable", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 48 - }, - "id": 7, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_storage_data_lag_seconds{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Data Lag", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 10, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 48 - }, - "id": 1, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_degraded_process_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Degraded Processes", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 56 - }, - "id": 6, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_average_partition_size_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Avg Partition Size", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 56 - }, - "id": 11, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_moving_data_in_flight_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"} + fdb_moving_data_in_queue_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "{{instance}}", - "range": true, - "refId": "A" - } - ], - "title": "Moving Data", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMax": 1, - "barAlignment": 0, - "barWidthFactor": 0.6, - "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" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 64 - }, - "id": 10, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.5.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "editorMode": "code", - "expr": "fdb_log_queue_disk_used_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"} / on(instance) fdb_log_queue_disk_total_bytes{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",instance=~\"$instance\"}", - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Log Queue Utilization", - "type": "timeseries" - } - ], - "preload": false, - "refresh": "", - "schemaVersion": 40, - "tags": [], - "templating": { - "list": [ - { - "current": { - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "definition": "label_values(rivet_project)", - "includeAll": true, - "label": "Project", - "multi": true, - "name": "project", - "options": [], - "query": { - "qryType": 1, - "query": "label_values(rivet_project)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 1, - "regex": "", - "sort": 1, - "type": "query" - }, - { - "current": { - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "definition": "label_values({rivet_project=~\"$project\"},rivet_datacenter)", - "includeAll": true, - "label": "Datacenter", - "multi": true, - "name": "datacenter", - "options": [], - "query": { - "qryType": 1, - "query": "label_values({rivet_project=~\"$project\"},rivet_datacenter)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 1, - "regex": "", - "sort": 1, - "type": "query" - }, - { - "current": { - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "datasource": { - "type": "prometheus", - "uid": "prometheus" - }, - "definition": "label_values(fdb_database_available{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\"},instance)", - "includeAll": true, - "label": "Instance", - "multi": true, - "name": "instance", - "options": [], - "query": { - "qryType": 1, - "query": "label_values(fdb_database_available{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\"},instance)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 1, - "regex": "", - "type": "query" - } - ] - }, - "time": { - "from": "now-1h", - "to": "now" - }, - "timepicker": {}, - "timezone": "utc", - "title": "FoundationDB", - "uid": "aef2tiqr8tnghe", - "version": 2, - "weekStart": "" -} \ No newline at end of file diff --git a/engine/docker/template/grafana-dashboards/gasoline.json b/engine/docker/template/grafana-dashboards/gasoline.json index 672ac40493..36dcbfa7e8 100644 --- a/engine/docker/template/grafana-dashboards/gasoline.json +++ b/engine/docker/template/grafana-dashboards/gasoline.json @@ -18,7 +18,7 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 1, - "id": 7, + "id": 2, "links": [], "panels": [ { @@ -71,8 +71,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -107,7 +106,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -175,8 +174,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -211,7 +209,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -279,8 +277,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -315,7 +312,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -384,8 +381,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -420,7 +416,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -428,9 +424,9 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum by (workflow_name, error_code) (rivet_gasoline_workflow_dead{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",workflow_name=~\"$workflow_name\"})", + "expr": "sum by (workflow_name, error) (rivet_gasoline_workflow_dead{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",workflow_name=~\"$workflow_name\"})", "instant": false, - "legendFormat": "({{workflow_name}}) {{error_code}}", + "legendFormat": "{{workflow_name}}: {{error}}", "range": true, "refId": "A" } @@ -488,8 +484,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -524,7 +519,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -592,8 +587,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -628,7 +622,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -716,7 +710,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -804,7 +798,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -873,8 +867,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -910,7 +903,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -979,8 +972,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1016,7 +1008,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1104,7 +1096,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1192,7 +1184,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1280,7 +1272,7 @@ "unit": "" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1368,7 +1360,7 @@ "unit": "percentunit" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1469,7 +1461,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1536,8 +1528,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1574,7 +1565,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1582,8 +1573,8 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(rate(rivet_gasoline_activity_errors{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",workflow_name=~\"$workflow_name\"}[$__rate_interval])) by (activity_name, error_code)", - "legendFormat": "{{activity_name}}: {{error_code}}", + "expr": "sum(rate(rivet_gasoline_activity_errors{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",workflow_name=~\"$workflow_name\"}[$__rate_interval])) by (activity_name, error)", + "legendFormat": "{{activity_name}}: {{error}}", "range": true, "refId": "A" } @@ -1661,7 +1652,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1728,8 +1719,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1766,7 +1756,7 @@ "sort": "none" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1853,7 +1843,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -1941,7 +1931,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -2029,7 +2019,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -2117,7 +2107,7 @@ "unit": "s" } }, - "pluginVersion": "11.5.2", + "pluginVersion": "11.6.7", "targets": [ { "datasource": { @@ -2137,16 +2127,14 @@ } ], "preload": false, - "refresh": "5s", - "schemaVersion": 40, + "refresh": "10s", + "schemaVersion": 41, "tags": [], "templating": { "list": [ { "current": { - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -2173,9 +2161,7 @@ }, { "current": { - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -2202,9 +2188,7 @@ }, { "current": { - "text": [ - "All" - ], + "text": "All", "value": [ "$__all" ] @@ -2231,13 +2215,12 @@ ] }, "time": { - "from": "now-5m", + "from": "now-15m", "to": "now" }, "timepicker": {}, "timezone": "", "title": "Gasoline", "uid": "636d22f9-d18f-4086-8b45-7c50886a105c", - "version": 1, - "weekStart": "" + "version": 3 } \ No newline at end of file diff --git a/engine/docker/template/grafana-dashboards/operation.json b/engine/docker/template/grafana-dashboards/operation.json index aef24f0c6f..d08127f92b 100644 --- a/engine/docker/template/grafana-dashboards/operation.json +++ b/engine/docker/template/grafana-dashboards/operation.json @@ -133,7 +133,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "sum(increase(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error_code!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (le)", + "expr": "sum(increase(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (le)", "format": "heatmap", "legendFormat": "{{le}}", "range": true, @@ -548,7 +548,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "(\r\n sum(rate(rivet_gasoline_operation_duration_sum{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error_code!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (operation_name) /\r\n sum(rate(rivet_gasoline_operation_duration_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error_code!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (operation_name)\r\n) > 0", + "expr": "(\r\n sum(rate(rivet_gasoline_operation_duration_sum{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (operation_name) /\r\n sum(rate(rivet_gasoline_operation_duration_count{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) by (operation_name)\r\n) > 0", "format": "heatmap", "legendFormat": "{{operation_name}}", "range": true, @@ -649,7 +649,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "histogram_quantile(0.95, \r\n sum(rate(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error_code!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) \r\n by (le, operation_name)\r\n) > 0\r\n", + "expr": "histogram_quantile(0.95, \r\n sum(rate(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) \r\n by (le, operation_name)\r\n) > 0\r\n", "format": "heatmap", "legendFormat": "{{operation_name}}", "range": true, @@ -750,7 +750,7 @@ "uid": "prometheus" }, "editorMode": "code", - "expr": "histogram_quantile(0.99, \r\n sum(rate(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error_code!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) \r\n by (le, operation_name)\r\n) > 0", + "expr": "histogram_quantile(0.99, \r\n sum(rate(rivet_gasoline_operation_duration_bucket{rivet_project=~\"$project\",rivet_datacenter=~\"$datacenter\",error!=\"1004\",operation_name=~\"$operation_name\"} [$__rate_interval])) \r\n by (le, operation_name)\r\n) > 0", "format": "heatmap", "legendFormat": "{{operation_name}}", "range": true, diff --git a/engine/packages/api-builder/src/metrics.rs b/engine/packages/api-builder/src/metrics.rs index e7aa94df99..4added6a14 100644 --- a/engine/packages/api-builder/src/metrics.rs +++ b/engine/packages/api-builder/src/metrics.rs @@ -7,26 +7,26 @@ lazy_static::lazy_static! { register_int_gauge_vec_with_registry!( "api_request_pending", "Total number of requests in progress.", - &["method", "path"], + &["router", "method", "path"], *REGISTRY ).unwrap(); pub static ref API_REQUEST_TOTAL: IntCounterVec = register_int_counter_vec_with_registry!( "api_request_total", "Total number of requests.", - &["method", "path"], + &["router", "method", "path"], *REGISTRY ).unwrap(); pub static ref API_REQUEST_DURATION: HistogramVec = register_histogram_vec_with_registry!( "api_request_duration", "Duration of API requests.", - &["method", "path", "status", "error_code"], + &["router", "method", "path", "status", "error"], BUCKETS.to_vec(), *REGISTRY ).unwrap(); pub static ref API_REQUEST_ERRORS: IntCounterVec = register_int_counter_vec_with_registry!( "api_request_errors_total", "All errors made to this request.", - &["method", "path", "status", "error_code"], + &["router", "method", "path", "status", "error"], *REGISTRY, ) .unwrap(); diff --git a/engine/packages/api-builder/src/middleware.rs b/engine/packages/api-builder/src/middleware.rs index d587e8212b..4503a722a5 100644 --- a/engine/packages/api-builder/src/middleware.rs +++ b/engine/packages/api-builder/src/middleware.rs @@ -14,7 +14,7 @@ use tower_http::trace::TraceLayer; use tracing::Instrument; use tracing_opentelemetry::OpenTelemetrySpanExt; -use crate::{ErrorExt, RequestIds, metrics}; +use crate::{ErrorExt, RequestIds, RouterName, metrics}; pub const X_RIVET_RAY_ID: HeaderName = HeaderName::from_static("x-rivet-ray-id"); @@ -29,6 +29,7 @@ pub fn create_trace_layer() /// HTTP request logging and metrics middleware pub async fn http_logging_middleware( State(config): State, + State(RouterName(router_name)): State, mut req: Request, next: Next, ) -> Result { @@ -99,10 +100,10 @@ pub async fn http_logging_middleware( // Metrics metrics::API_REQUEST_PENDING - .with_label_values(&[method.as_str(), path.as_str()]) + .with_label_values(&[router_name, method.as_str(), path.as_str()]) .inc(); metrics::API_REQUEST_TOTAL - .with_label_values(&[method.as_str(), path.as_str()]) + .with_label_values(&[router_name, method.as_str(), path.as_str()]) .inc(); // Clone values for the async block @@ -177,9 +178,9 @@ pub async fn http_logging_middleware( ); // Update metrics - metrics::API_REQUEST_PENDING.with_label_values(&[method_clone.as_str(), path_clone.as_str()]).dec(); + metrics::API_REQUEST_PENDING.with_label_values(&[router_name, method_clone.as_str(), path_clone.as_str()]).dec(); - let error_code: String = if status.is_success() { + let error_str: String = if status.is_success() { String::new() } else if let Some(err) = &error { format!("{}.{}", err.group, err.code) @@ -187,12 +188,12 @@ pub async fn http_logging_middleware( String::new() }; metrics::API_REQUEST_DURATION - .with_label_values(&[method_clone.as_str(), path_clone.as_str(), status.as_str(), error_code.as_str()]) + .with_label_values(&[router_name, method_clone.as_str(), path_clone.as_str(), status.as_str(), error_str.as_str()]) .observe(duration); if !status.is_success() { metrics::API_REQUEST_ERRORS - .with_label_values(&[method_clone.as_str(), path_clone.as_str(), status.as_str(), error_code.as_str()]) + .with_label_values(&[router_name, method_clone.as_str(), path_clone.as_str(), status.as_str(), error_str.as_str()]) .inc(); } diff --git a/engine/packages/api-builder/src/router.rs b/engine/packages/api-builder/src/router.rs index 57fad10fa4..c144761b7b 100644 --- a/engine/packages/api-builder/src/router.rs +++ b/engine/packages/api-builder/src/router.rs @@ -17,6 +17,15 @@ use crate::{ pub type ApiRouter = Router; +#[derive(Clone, Copy)] +pub struct RouterName(pub &'static str); + +#[derive(Clone, axum::extract::FromRef)] +pub struct LoggingMiddlewareState { + config: rivet_config::Config, + router_name: RouterName, +} + /// Middleware to build ApiCtx and expose it as an extension async fn api_ctx_middleware( State(global_ctx): State, @@ -59,7 +68,10 @@ pub async fn create_router( .route("/health", axum_get(health_check)) .merge(user_router) .layer(middleware::from_fn_with_state( - config, + LoggingMiddlewareState { + config, + router_name: RouterName(name), + }, http_logging_middleware, )) .route_layer(middleware::from_fn_with_state( diff --git a/engine/packages/env/src/lib.rs b/engine/packages/env/src/lib.rs index a6ef192574..e1ec984c8f 100644 --- a/engine/packages/env/src/lib.rs +++ b/engine/packages/env/src/lib.rs @@ -1,30 +1,12 @@ use lazy_static::lazy_static; use std::env; -use uuid::Uuid; lazy_static! { static ref SERVICE_NAME: String = env::var("RIVET_SERVICE_NAME").unwrap_or_else(|_| "rivet".to_string()); - static ref SERVICE_INSTANCE: String = - env::var("RIVET_SERVICE_INSTANCE").unwrap_or_else(|_| Uuid::new_v4().to_string()); - static ref SOURCE_HASH: String = - env::var("RIVET_SOURCE_HASH").unwrap_or_else(|_| "unknown".to_string()); } /// Generic name used to differentiate pools of servers. pub fn service_name() -> &'static str { &SERVICE_NAME } - -/// Unique string for this instance of the service. -pub fn service_instance() -> &'static str { - &SERVICE_INSTANCE -} - -/// Returns the source hash. Used to identify if the source code has changed in order to purge -/// caches. -/// -/// This will use the `RIVET_SOURCE_HASH` and fall back to the Git hash otherwise. -pub fn source_hash() -> &'static str { - &SOURCE_HASH -} diff --git a/engine/packages/epoxy/src/ops/propose.rs b/engine/packages/epoxy/src/ops/propose.rs index 73aff0881d..62c443a518 100644 --- a/engine/packages/epoxy/src/ops/propose.rs +++ b/engine/packages/epoxy/src/ops/propose.rs @@ -348,6 +348,8 @@ async fn purge_optimistic_cache(ctx: OperationCtx, keys: Vec) -> Result< .dispatch() .await?; ctx.signal(crate::workflows::purger::Purge { keys: keys.clone() }) + // This is ok because double purging is idempotent + .bypass_signal_from_workflow_I_KNOW_WHAT_IM_DOING() .to_workflow_id(workflow_id) .send() .await?; diff --git a/engine/packages/gasoline/src/builder/workflow/lupe.rs b/engine/packages/gasoline/src/builder/workflow/lupe.rs index ff0e396902..8b45b79615 100644 --- a/engine/packages/gasoline/src/builder/workflow/lupe.rs +++ b/engine/packages/gasoline/src/builder/workflow/lupe.rs @@ -136,7 +136,7 @@ impl<'a, S: Serialize + DeserializeOwned> LoopBuilder<'a, S> { // Set branch loop location to the current loop iteration_branch.set_loop_location(loop_location.clone()); - let i = iteration; + let previous_iteration = iteration; // Async block for instrumentation purposes let res = async { @@ -275,7 +275,7 @@ impl<'a, S: Serialize + DeserializeOwned> LoopBuilder<'a, S> { } } } - .instrument(tracing::info_span!("iteration", iteration=%i)) + .instrument(tracing::info_span!("iteration", iteration=%previous_iteration)) .await?; // Validate no leftover events diff --git a/engine/packages/gasoline/src/ctx/common.rs b/engine/packages/gasoline/src/ctx/common.rs index 6fd373a7cf..c0da28c4ad 100644 --- a/engine/packages/gasoline/src/ctx/common.rs +++ b/engine/packages/gasoline/src/ctx/common.rs @@ -116,15 +116,15 @@ where // Record metrics { - let error_code_str = match &res { + let error_str = match &res { Ok(Err(err)) => { - let error_code_str = err.to_string(); + let error_str = err.to_string(); crate::metrics::OPERATION_ERRORS - .with_label_values(&[I::Operation::NAME, error_code_str.as_str()]) + .with_label_values(&[I::Operation::NAME, error_str.as_str()]) .inc(); - error_code_str + error_str } Ok(_) => String::new(), Err(_) => "timeout".to_string(), @@ -136,7 +136,7 @@ where .with_label_values(&[I::Operation::NAME]) .dec(); crate::metrics::OPERATION_DURATION - .with_label_values(&[I::Operation::NAME, error_code_str.as_str()]) + .with_label_values(&[I::Operation::NAME, error_str.as_str()]) .observe(dt); } diff --git a/engine/packages/gasoline/src/metrics.rs b/engine/packages/gasoline/src/metrics.rs index e8be6a9646..bc43edf8a3 100644 --- a/engine/packages/gasoline/src/metrics.rs +++ b/engine/packages/gasoline/src/metrics.rs @@ -104,14 +104,14 @@ lazy_static::lazy_static! { pub static ref ACTIVITY_DURATION: HistogramVec = register_histogram_vec_with_registry!( "gasoline_activity_duration", "Total duration of an activity.", - &["workflow_name", "activity_name", "error_code"], + &["workflow_name", "activity_name", "error"], BUCKETS.to_vec(), *REGISTRY ).unwrap(); pub static ref ACTIVITY_ERRORS: IntCounterVec = register_int_counter_vec_with_registry!( "gasoline_activity_errors", "All errors made in an activity.", - &["workflow_name", "activity_name", "error_code"], + &["workflow_name", "activity_name", "error"], *REGISTRY ).unwrap(); diff --git a/engine/packages/metrics/src/registry.rs b/engine/packages/metrics/src/registry.rs index 1dadc1c612..c6bd268591 100644 --- a/engine/packages/metrics/src/registry.rs +++ b/engine/packages/metrics/src/registry.rs @@ -3,9 +3,5 @@ use prometheus::*; lazy_static::lazy_static! { pub static ref REGISTRY: Registry = Registry::new_custom( Some("rivet".to_string()), - Some(labels! { - "service".to_owned() => rivet_env::service_name().to_string(), - "kubernetes_pod_id".to_owned() => std::env::var("KUBERNETES_POD_ID").unwrap_or_default(), - "worker_source_hash".to_owned() => rivet_env::source_hash().to_string(), - })).unwrap(); + Some(labels! { })).unwrap(); } diff --git a/scripts/misc/endian-converter.ts b/scripts/misc/endian-converter.ts index 50eb67101a..5022af02c6 100755 --- a/scripts/misc/endian-converter.ts +++ b/scripts/misc/endian-converter.ts @@ -26,18 +26,26 @@ console.log('='.repeat(50)); const beBuf = Buffer.allocUnsafe(8); beBuf.writeBigUInt64BE(num); console.log('\nOriginal (Big Endian):'); -console.log(` Decimal: ${num}`); +console.log(` Decimal (u64): ${num}`); console.log(` Hex: 0x${num.toString(16).padStart(16, '0')}`); console.log(` Bytes: ${Array.from(beBuf).map(b => b.toString(16).padStart(2, '0')).join(' ')}`); +// Show as signed integer +const beI64 = beBuf.readBigInt64BE(); +console.log(` Decimal (i64): ${beI64}`); + // Convert to little endian const leBuf = Buffer.allocUnsafe(8); leBuf.writeBigUInt64LE(num); -const littleEndianValue = leBuf.readBigUInt64BE(); // Read the LE bytes as if they were BE + +const leU64 = leBuf.readBigUInt64BE(); +const leI64 = leBuf.readBigInt64BE(); console.log('\nConverted (Little Endian):'); -console.log(` Decimal: ${littleEndianValue}`); -console.log(` Hex: 0x${littleEndianValue.toString(16).padStart(16, '0')}`); +console.log(` Decimal (u64): ${leU64}`); +console.log(` Decimal (i64): ${leI64}`); +console.log(` Hex: 0x${leU64.toString(16).padStart(16, '0')}`); console.log(` Bytes: ${Array.from(leBuf).map(b => b.toString(16).padStart(2, '0')).join(' ')}`); + console.log('\n' + '='.repeat(50) + '\n');