From 0c62cf898016993f1b7e185a92acce55b49ab26d Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Tue, 27 Aug 2019 13:04:20 -0700 Subject: [PATCH] Add metrics for snapshot generation (#5677) --- core/src/snapshot_package.rs | 14 +- .../dashboards/testnet-monitor.json | 1452 ++++++++++++----- 2 files changed, 1034 insertions(+), 432 deletions(-) diff --git a/core/src/snapshot_package.rs b/core/src/snapshot_package.rs index 471edff9da..a3b34df2a7 100644 --- a/core/src/snapshot_package.rs +++ b/core/src/snapshot_package.rs @@ -1,6 +1,7 @@ use crate::result::{Error, Result}; use crate::service::Service; use solana_measure::measure::Measure; +use solana_metrics::datapoint_info; use solana_runtime::accounts_db::AccountStorageEntry; use std::fs; use std::io::{Error as IOError, ErrorKind}; @@ -133,12 +134,21 @@ impl SnapshotPackagerService { // Once everything is successful, overwrite the previous tarball so that other validators // can fetch this newly packaged snapshot let _ = fs::remove_file(&snapshot_package.tar_output_file); + let metadata = fs::metadata(&temp_tar_path)?; fs::hard_link(&temp_tar_path, &snapshot_package.tar_output_file)?; + timer.stop(); info!( - "Successfully created tarball for root: {}, elapsed ms: {}", + "Successfully created tarball. slot: {}, elapsed ms: {}, size={}", snapshot_package.root, - timer.as_ms() + timer.as_ms(), + metadata.len() + ); + datapoint_info!( + "snapshot-package", + ("slot", snapshot_package.root, i64), + ("duration_ms", timer.as_ms(), i64), + ("size", metadata.len(), i64) ); Ok(()) } diff --git a/metrics/scripts/grafana-provisioning/dashboards/testnet-monitor.json b/metrics/scripts/grafana-provisioning/dashboards/testnet-monitor.json index 6327f4f712..f6c489c181 100644 --- a/metrics/scripts/grafana-provisioning/dashboards/testnet-monitor.json +++ b/metrics/scripts/grafana-provisioning/dashboards/testnet-monitor.json @@ -15,8 +15,8 @@ "editable": true, "gnetId": null, "graphTooltip": 0, - "id": 883, - "iteration": 1566852798488, + "id": 886, + "iteration": 1566928212712, "links": [ { "asDropdown": true, @@ -1776,6 +1776,7 @@ } }, { + "collapsed": true, "gridPos": { "h": 1, "w": 24, @@ -1783,365 +1784,367 @@ "y": 14 }, "id": 15, + "panels": [ + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fill": 1, + "gridPos": { + "h": 8, + "w": 14, + "x": 0, + "y": 15 + }, + "id": 16, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": false, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "cluster_info-vote-count", + "orderByTime": "ASC", + "policy": "autogen", + "query": "SELECT mean(\"duration_ms\") FROM \"$testnet\".\"autogen\".\"validator-confirmation\" WHERE host_id::tag =~ /$hostid/ AND $timeFilter GROUP BY time(1s) FILL(0)\n", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "count" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [] + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Validator Confirmation Time ($hostid)", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 1, + "format": "ms", + "label": "", + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": false + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fill": 1, + "gridPos": { + "h": 4, + "w": 10, + "x": 14, + "y": 15 + }, + "id": 17, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": false, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": true, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "cluster_info-vote-count", + "orderByTime": "ASC", + "policy": "autogen", + "query": "SELECT \"request_amount\" FROM \"$testnet\".\"autogen\".\"drone-airdrop\" WHERE $timeFilter fill(null)\n\n\n\n", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "count" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [] + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Airdrops", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fill": 1, + "gridPos": { + "h": 4, + "w": 10, + "x": 14, + "y": 19 + }, + "id": 18, + "legend": { + "alignAsTable": true, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": true, + "show": true, + "total": false, + "values": false + }, + "lines": false, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "cluster_info-vote-count", + "orderByTime": "ASC", + "policy": "autogen", + "query": "SELECT mean(\"duration_ms\") / 1000 AS \".\" FROM \"$testnet\".\"autogen\".\"thinclient\" WHERE $timeFilter GROUP BY time($__interval), \"op\" \n\n\n\n\n\n", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "count" + ], + "type": "field" + }, + { + "params": [], + "type": "sum" + } + ] + ], + "tags": [] + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Client Operation Mean Duration", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": false + } + ], + "yaxis": { + "align": true, + "alignLevel": null + } + } + ], "title": "Summary", "type": "row" }, - { - "aliasColors": {}, - "bars": true, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "fill": 1, - "gridPos": { - "h": 8, - "w": 14, - "x": 0, - "y": 15 - }, - "id": 16, - "legend": { - "alignAsTable": false, - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": false, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "cluster_info-vote-count", - "orderByTime": "ASC", - "policy": "autogen", - "query": "SELECT mean(\"duration_ms\") FROM \"$testnet\".\"autogen\".\"validator-confirmation\" WHERE host_id::tag =~ /$hostid/ AND $timeFilter GROUP BY time(1s) FILL(0)\n", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "count" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [] - } - ], - "thresholds": [], - "timeFrom": null, - "timeShift": null, - "title": "Validator Confirmation Time ($hostid)", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 1, - "format": "ms", - "label": "", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "fill": 1, - "gridPos": { - "h": 4, - "w": 10, - "x": 14, - "y": 15 - }, - "id": 17, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": true, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "cluster_info-vote-count", - "orderByTime": "ASC", - "policy": "autogen", - "query": "SELECT \"request_amount\" FROM \"$testnet\".\"autogen\".\"drone-airdrop\" WHERE $timeFilter fill(null)\n\n\n\n", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "count" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [] - } - ], - "thresholds": [], - "timeFrom": null, - "timeShift": null, - "title": "Airdrops", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": true, - "dashLength": 10, - "dashes": false, - "datasource": "$datasource", - "fill": 1, - "gridPos": { - "h": 4, - "w": 10, - "x": 14, - "y": 19 - }, - "id": 18, - "legend": { - "alignAsTable": true, - "avg": false, - "current": false, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "total": false, - "values": false - }, - "lines": false, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "cluster_info-vote-count", - "orderByTime": "ASC", - "policy": "autogen", - "query": "SELECT mean(\"duration_ms\") / 1000 AS \".\" FROM \"$testnet\".\"autogen\".\"thinclient\" WHERE $timeFilter GROUP BY time($__interval), \"op\" \n\n\n\n\n\n", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "count" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - } - ] - ], - "tags": [] - } - ], - "thresholds": [], - "timeFrom": null, - "timeShift": null, - "title": "Client Operation Mean Duration", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "show": true - }, - { - "format": "short", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": true, - "alignLevel": null - } - }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, - "y": 23 + "y": 15 }, "id": 19, "panels": [], @@ -2170,7 +2173,7 @@ "h": 2, "w": 5, "x": 0, - "y": 24 + "y": 16 }, "id": 20, "interval": null, @@ -2292,7 +2295,7 @@ "h": 2, "w": 4, "x": 5, - "y": 24 + "y": 16 }, "id": 21, "interval": null, @@ -2403,7 +2406,7 @@ "h": 2, "w": 3, "x": 9, - "y": 24 + "y": 16 }, "id": 22, "interval": null, @@ -2514,9 +2517,9 @@ "h": 2, "w": 3, "x": 12, - "y": 24 + "y": 16 }, - "id": 61, + "id": 23, "interval": null, "links": [], "mappingType": 1, @@ -2625,7 +2628,7 @@ "h": 2, "w": 3, "x": 15, - "y": 24 + "y": 16 }, "id": 24, "interval": null, @@ -2725,7 +2728,7 @@ "h": 4, "w": 6, "x": 18, - "y": 24 + "y": 16 }, "id": 25, "legend": { @@ -2843,7 +2846,7 @@ "h": 3, "w": 8, "x": 0, - "y": 26 + "y": 18 }, "id": 26, "legend": { @@ -2999,7 +3002,7 @@ "h": 6, "w": 10, "x": 8, - "y": 26 + "y": 18 }, "id": 27, "legend": { @@ -3156,7 +3159,7 @@ "h": 4, "w": 6, "x": 18, - "y": 28 + "y": 20 }, "id": 28, "legend": { @@ -3274,9 +3277,9 @@ "h": 3, "w": 8, "x": 0, - "y": 29 + "y": 21 }, - "id": 62, + "id": 29, "legend": { "alignAsTable": false, "avg": false, @@ -3427,9 +3430,9 @@ "h": 6, "w": 24, "x": 0, - "y": 32 + "y": 24 }, - "id": 29, + "id": 30, "links": [], "pageSize": null, "scroll": true, @@ -3512,9 +3515,9 @@ "h": 6, "w": 8, "x": 0, - "y": 38 + "y": 30 }, - "id": 30, + "id": 31, "links": [], "pageSize": null, "scroll": true, @@ -3597,9 +3600,9 @@ "h": 6, "w": 8, "x": 8, - "y": 38 + "y": 30 }, - "id": 31, + "id": 32, "links": [], "pageSize": null, "scroll": true, @@ -3685,9 +3688,9 @@ "h": 6, "w": 8, "x": 16, - "y": 38 + "y": 30 }, - "id": 32, + "id": 33, "legend": { "avg": false, "current": false, @@ -4053,9 +4056,9 @@ "h": 1, "w": 24, "x": 0, - "y": 44 + "y": 36 }, - "id": 33, + "id": 34, "panels": [], "title": "Bench TPS", "type": "row" @@ -4071,9 +4074,9 @@ "h": 5, "w": 12, "x": 0, - "y": 45 + "y": 37 }, - "id": 34, + "id": 35, "legend": { "avg": false, "current": false, @@ -4186,9 +4189,9 @@ "h": 5, "w": 12, "x": 12, - "y": 45 + "y": 37 }, - "id": 35, + "id": 36, "legend": { "alignAsTable": false, "avg": false, @@ -4372,9 +4375,9 @@ "h": 1, "w": 24, "x": 0, - "y": 50 + "y": 42 }, - "id": 36, + "id": 37, "panels": [], "title": "Bench Exchange", "type": "row" @@ -4390,9 +4393,9 @@ "h": 5, "w": 12, "x": 0, - "y": 51 + "y": 43 }, - "id": 37, + "id": 38, "legend": { "avg": false, "current": false, @@ -4541,9 +4544,9 @@ "h": 5, "w": 12, "x": 12, - "y": 51 + "y": 43 }, - "id": 38, + "id": 39, "legend": { "avg": false, "current": false, @@ -4724,9 +4727,9 @@ "h": 1, "w": 24, "x": 0, - "y": 56 + "y": 48 }, - "id": 39, + "id": 40, "panels": [], "title": "Fullnode Streamer", "type": "row" @@ -4742,9 +4745,9 @@ "h": 6, "w": 8, "x": 0, - "y": 57 + "y": 49 }, - "id": 40, + "id": 41, "legend": { "alignAsTable": false, "avg": false, @@ -5156,9 +5159,9 @@ "h": 6, "w": 8, "x": 8, - "y": 57 + "y": 49 }, - "id": 41, + "id": 42, "legend": { "alignAsTable": false, "avg": false, @@ -5502,9 +5505,9 @@ "h": 6, "w": 8, "x": 16, - "y": 57 + "y": 49 }, - "id": 42, + "id": 43, "legend": { "alignAsTable": false, "avg": false, @@ -5711,9 +5714,9 @@ "h": 6, "w": 8, "x": 0, - "y": 63 + "y": 55 }, - "id": 43, + "id": 44, "legend": { "alignAsTable": false, "avg": false, @@ -6029,9 +6032,9 @@ "h": 6, "w": 8, "x": 8, - "y": 63 + "y": 55 }, - "id": 44, + "id": 45, "legend": { "alignAsTable": false, "avg": false, @@ -6218,9 +6221,9 @@ "h": 6, "w": 8, "x": 16, - "y": 63 + "y": 55 }, - "id": 45, + "id": 46, "legend": { "alignAsTable": false, "avg": false, @@ -6412,9 +6415,9 @@ "h": 5, "w": 8, "x": 0, - "y": 69 + "y": 61 }, - "id": 46, + "id": 47, "legend": { "alignAsTable": false, "avg": false, @@ -6568,9 +6571,9 @@ "h": 5, "w": 8, "x": 8, - "y": 69 + "y": 61 }, - "id": 47, + "id": 48, "legend": { "alignAsTable": false, "avg": false, @@ -6687,9 +6690,9 @@ "h": 5, "w": 8, "x": 16, - "y": 69 + "y": 61 }, - "id": 48, + "id": 49, "legend": { "alignAsTable": false, "avg": false, @@ -6839,9 +6842,9 @@ "h": 5, "w": 12, "x": 0, - "y": 74 + "y": 66 }, - "id": 49, + "id": 50, "legend": { "alignAsTable": false, "avg": false, @@ -6992,9 +6995,9 @@ "h": 5, "w": 12, "x": 12, - "y": 74 + "y": 66 }, - "id": 50, + "id": 51, "legend": { "alignAsTable": false, "avg": false, @@ -7142,9 +7145,9 @@ "h": 1, "w": 24, "x": 0, - "y": 79 + "y": 71 }, - "id": 51, + "id": 52, "panels": [], "title": "Tower Consensus", "type": "row" @@ -7165,9 +7168,9 @@ "h": 5, "w": 8, "x": 0, - "y": 80 + "y": 72 }, - "id": 52, + "id": 53, "legend": { "alignAsTable": false, "avg": false, @@ -7325,9 +7328,9 @@ "h": 5, "w": 8, "x": 8, - "y": 80 + "y": 72 }, - "id": 53, + "id": 54, "legend": { "alignAsTable": false, "avg": false, @@ -7485,9 +7488,9 @@ "h": 5, "w": 8, "x": 16, - "y": 80 + "y": 72 }, - "id": 54, + "id": 55, "legend": { "alignAsTable": false, "avg": false, @@ -7596,9 +7599,9 @@ "h": 1, "w": 24, "x": 0, - "y": 85 + "y": 77 }, - "id": 55, + "id": 56, "panels": [], "repeat": null, "title": "IP Network", @@ -7615,9 +7618,9 @@ "h": 5, "w": 12, "x": 0, - "y": 86 + "y": 78 }, - "id": 56, + "id": 57, "legend": { "alignAsTable": false, "avg": false, @@ -7848,9 +7851,9 @@ "h": 5, "w": 12, "x": 12, - "y": 86 + "y": 78 }, - "id": 57, + "id": 58, "legend": { "alignAsTable": false, "avg": false, @@ -8001,9 +8004,9 @@ "h": 1, "w": 24, "x": 0, - "y": 91 + "y": 83 }, - "id": 58, + "id": 59, "panels": [], "title": "Signature Verification", "type": "row" @@ -8019,9 +8022,9 @@ "h": 5, "w": 12, "x": 0, - "y": 92 + "y": 84 }, - "id": 59, + "id": 60, "legend": { "avg": false, "current": false, @@ -8138,11 +8141,11 @@ "fill": 1, "gridPos": { "h": 5, - "w": 8, + "w": 12, "x": 12, - "y": 92 + "y": 84 }, - "id": 60, + "id": 61, "legend": { "alignAsTable": false, "avg": false, @@ -8282,6 +8285,595 @@ "align": false, "alignLevel": null } + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 89 + }, + "id": 63, + "panels": [], + "title": "Snapshots", + "type": "row" + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fill": 1, + "gridPos": { + "h": 6, + "w": 8, + "x": 0, + "y": 90 + }, + "id": 64, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": false, + "linewidth": 1, + "links": [], + "nullPointMode": "connected", + "percentage": false, + "pointradius": 5, + "points": true, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT MEAN(\"slot\") as \"Mean\" FROM \"$testnet\".\"autogen\".\"snapshot-package\" WHERE $timeFilter GROUP BY time($__interval)\n\n\n", + "rawQuery": true, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + }, + { + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT MAX(\"slot\") as \"Max\" FROM \"$testnet\".\"autogen\".\"snapshot-package\" WHERE $timeFilter GROUP BY time($__interval)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + }, + { + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT MIN(\"slot\") as \"Min\" FROM \"$testnet\".\"autogen\".\"snapshot-package\" WHERE $timeFilter GROUP BY time($__interval)", + "rawQuery": true, + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Slot", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": null, + "format": "none", + "label": "", + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": false + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fill": 1, + "gridPos": { + "h": 6, + "w": 8, + "x": 8, + "y": 90 + }, + "id": 65, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": false, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": true, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT MIN(\"size\") as \"Min\" FROM \"$testnet\".\"autogen\".\"snapshot-package\" WHERE $timeFilter GROUP BY time($__interval)", + "rawQuery": true, + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + }, + { + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT MAX(\"size\") as \"Max\" FROM \"$testnet\".\"autogen\".\"snapshot-package\" WHERE $timeFilter GROUP BY time($__interval)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + }, + { + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT MEAN(\"size\") as \"Mean\" FROM \"$testnet\".\"autogen\".\"snapshot-package\" WHERE $timeFilter GROUP BY time($__interval)\n\n\n", + "rawQuery": true, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Size", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": null, + "format": "decbytes", + "label": "", + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fill": 1, + "gridPos": { + "h": 6, + "w": 8, + "x": 16, + "y": 90 + }, + "id": 68, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": false, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": true, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT MIN(\"duration_ms\") as \"Min\" FROM \"$testnet\".\"autogen\".\"snapshot-package\" WHERE $timeFilter GROUP BY time($__interval)", + "rawQuery": true, + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + }, + { + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT MAX(\"duration_ms\") as \"Max\" FROM \"$testnet\".\"autogen\".\"snapshot-package\" WHERE $timeFilter GROUP BY time($__interval)", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + }, + { + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT MEAN(\"duration_ms\") as \"Mean\" FROM \"$testnet\".\"autogen\".\"snapshot-package\" WHERE $timeFilter GROUP BY time($__interval)\n\n\n", + "rawQuery": true, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + } + ], + "thresholds": [], + "timeFrom": null, + "timeShift": null, + "title": "Duration", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": null, + "format": "dtdurationms", + "label": "", + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": false + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } } ], "refresh": "60s", @@ -8381,4 +8973,4 @@ "title": "Testnet Monitor (edge)", "uid": "testnet-edge", "version": 1 -} \ No newline at end of file +}