Skip to content

Commit

Permalink
dashboard for different network and a few fix (#1590)
Browse files Browse the repository at this point in the history
* dashboard for different network and a few fix
* Merge refs/heads/staging into dashboard-for-different-network
* Merge refs/heads/staging into dashboard-for-different-network
* Merge refs/heads/staging into dashboard-for-different-network
* Merge refs/heads/staging into dashboard-for-different-network
* Merge refs/heads/staging into dashboard-for-different-network
* Merge refs/heads/staging into dashboard-for-different-network
  • Loading branch information
ailisp authored and nearprotocol-bulldozer[bot] committed Nov 3, 2019
1 parent 97188f8 commit 183fec3
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 40 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,6 +2,7 @@
# will have compiled files and executables
target
docker-build
/conf/grafana-dashboard-main-testnet.json
**/target/
/storage/
/test-utils/node/storage
Expand Down
8 changes: 8 additions & 0 deletions conf/generate_dashboard_for_network.sh
@@ -0,0 +1,8 @@
#!/bin/bash

if [[ -z "${1}" ]]; then
echo "Usage: generate_dashboard_for_network.sh network_name_in_prometheus"
exit 1
fi

sed "s/staging-testnet/${1}/g" $(dirname $0)/grafana-dashboard.json > $(dirname $0)/grafana-dashboard-${1}.json
89 changes: 49 additions & 40 deletions conf/grafana-dashboard.json
Expand Up @@ -59,25 +59,25 @@
"steppedLine": false,
"targets": [
{
"expr": "block_processed_total",
"expr": "block_processed_total{job=\"staging-testnet\"}",
"format": "time_series",
"instant": false,
"intervalFactor": 1,
"legendFormat": "TotalBlocksProcessed",
"legendFormat": "TotalBlocksProcessed {{name}}",
"refId": "A"
},
{
"expr": "block_processed_successfully_total",
"expr": "block_processed_successfully_total{job=\"staging-testnet\"}",
"hide": false,
"legendFormat": "BlocksProcessSuccessfully",
"legendFormat": "BlocksProcessSuccessfully {{name}}",
"refId": "B"
}
],
"thresholds": [],
"timeFrom": "15m",
"timeRegions": [],
"timeShift": null,
"title": "Blocks Processed",
"title": "Blocks Processed by Nodes",
"tooltip": {
"shared": true,
"sort": 0,
Expand Down Expand Up @@ -156,7 +156,7 @@
"steppedLine": false,
"targets": [
{
"expr": "block_produced_total",
"expr": "block_produced_total{job=\"staging-testnet\"}",
"hide": false,
"legendFormat": "BlocksProduced",
"refId": "A"
Expand All @@ -166,7 +166,7 @@
"timeFrom": "15m",
"timeRegions": [],
"timeShift": null,
"title": "Blocks Produced",
"title": "Blocks Produced in Network",
"tooltip": {
"shared": true,
"sort": 0,
Expand Down Expand Up @@ -244,7 +244,8 @@
"pluginVersion": "6.4.3",
"targets": [
{
"expr": "(block_processing_time_sum / block_processing_time_count) * 1000",
"expr": "(block_processing_time_sum{job=\"staging-testnet\"} / block_processing_time_count{job=\"staging-testnet\"}) * 1000",
"legendFormat": "{{name}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -293,13 +294,13 @@
"steppedLine": false,
"targets": [
{
"expr": "transaction_processed_total",
"legendFormat": "Transaction Processed",
"expr": "transaction_processed_total{job=\"staging-testnet\"}",
"legendFormat": "Transaction Processed {{name}}",
"refId": "A"
},
{
"expr": "transaction_processed_successefully_total",
"legendFormat": "Transactions Processed Successfully",
"expr": "transaction_processed_successefully_total{job=\"staging-testnet\"}",
"legendFormat": "Transactions Processed Successfully {{name}}",
"refId": "B"
}
],
Expand Down Expand Up @@ -408,7 +409,7 @@
"tableColumn": "",
"targets": [
{
"expr": "max(block_height_head)",
"expr": "max(block_height_head{job=\"staging-testnet\"})",
"refId": "A"
}
],
Expand Down Expand Up @@ -491,7 +492,7 @@
"tableColumn": "",
"targets": [
{
"expr": "sum(http_rpc_requests_total)",
"expr": "sum(http_rpc_requests_total{job=\"staging-testnet\"})",
"refId": "A"
}
],
Expand Down Expand Up @@ -574,7 +575,7 @@
"tableColumn": "",
"targets": [
{
"expr": "sum(http_status_requests_total)",
"expr": "sum(http_status_requests_total{job=\"staging-testnet\"})",
"refId": "A"
}
],
Expand Down Expand Up @@ -657,7 +658,7 @@
"tableColumn": "",
"targets": [
{
"expr": "sum(http_prometheus_requests_total)",
"expr": "sum(http_prometheus_requests_total{job=\"staging-testnet\"})",
"refId": "A"
}
],
Expand Down Expand Up @@ -714,35 +715,43 @@
"pluginVersion": "6.4.3",
"targets": [
{
"expr": "action_create_account_total",
"expr": "sum(action_create_account_total{job=\"staging-testnet\"})",
"legendFormat": "Create Account",
"refId": "A"
},
{
"expr": "action_deploy_contract_total",
"expr": "sum(action_deploy_contract_total{job=\"staging-testnet\"})",
"legendFormat": "Deploy Contract",
"refId": "B"
},
{
"expr": "action_function_call_total",
"expr": "sum(action_function_call_total{job=\"staging-testnet\"})",
"legendFormat": "Function Call",
"refId": "C"
},
{
"expr": "action_transfer_total",
"expr": "sum(action_transfer_total{job=\"staging-testnet\"})",
"legendFormat": "Transfer",
"refId": "D"
},
{
"expr": "action_stake_total",
"expr": "sum(action_stake_total{job=\"staging-testnet\"})",
"legendFormat": "Stake",
"refId": "E"
},
{
"expr": "action_add_key_total",
"expr": "sum(action_add_key_total{job=\"staging-testnet\"})",
"legendFormat": "Add Key",
"refId": "F"
},
{
"expr": "action_delete_key_total",
"expr": "sum(action_delete_key_total{job=\"staging-testnet\"})",
"legendFormat": "Delete Key",
"refId": "G"
},
{
"expr": "action_delete_account_total",
"expr": "sum(action_delete_account_total{job=\"staging-testnet\"})",
"legendFormat": "Delete Account",
"refId": "H"
}
],
Expand Down Expand Up @@ -791,28 +800,28 @@
"pluginVersion": "6.4.3",
"targets": [
{
"expr": "peer_connections_total",
"legendFormat": "Peer Connections",
"expr": "peer_connections_total{job=\"staging-testnet\"}",
"legendFormat": "{{name}} Peer Connections",
"refId": "A"
},
{
"expr": "peer_block_received_total",
"legendFormat": "Peer Blocks Received",
"expr": "peer_block_received_total{job=\"staging-testnet\"}",
"legendFormat": "{{name}} Peer Blocks Received",
"refId": "B"
},
{
"expr": "peer_transaction_received_total",
"legendFormat": "Peer Transaction Received",
"expr": "peer_transaction_received_total{job=\"staging-testnet\"}",
"legendFormat": "{{name}} Peer Transaction Received",
"refId": "E"
},
{
"expr": "peer_message_received_total",
"legendFormat": "Peer Messages Received",
"expr": "peer_message_received_total{job=\"staging-testnet\"}",
"legendFormat": "{{name}} Peer Messages Received",
"refId": "D"
},
{
"expr": "peer_data_received_bytes",
"legendFormat": "Peer Bytes Received",
"expr": "peer_data_received_bytes{job=\"staging-testnet\"}",
"legendFormat": "{{name}} Peer Bytes Received",
"refId": "C"
}
],
Expand Down Expand Up @@ -885,7 +894,7 @@
"tableColumn": "",
"targets": [
{
"expr": "sum(validator_active_total)",
"expr": "sum(validator_active_total{job=\"staging-testnet\"})",
"legendFormat": "",
"refId": "A"
}
Expand Down Expand Up @@ -945,8 +954,8 @@
"steppedLine": false,
"targets": [
{
"expr": "validators_amount_staked",
"legendFormat": "Validator Staked Amount",
"expr": "validators_amount_staked{job=\"staging-testnet\"}",
"legendFormat": "Validator Staked Amount {{name}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -1018,7 +1027,7 @@
]
},
"timezone": "",
"title": "nearcore",
"uid": "qgvhAH2Wk",
"version": 7
"title": "staging-testnet",
"uid": "staging-testnet",
"version": 11
}

0 comments on commit 183fec3

Please sign in to comment.