diff --git a/data/grafana/grafana.db b/data/grafana/grafana.db deleted file mode 100755 index 45e0eb7..0000000 Binary files a/data/grafana/grafana.db and /dev/null differ diff --git a/data/prometheus/node_data.prom b/data/prometheus/node_data.prom deleted file mode 100644 index b1e8073..0000000 --- a/data/prometheus/node_data.prom +++ /dev/null @@ -1,126 +0,0 @@ -indy_node_validator_info_size{source="indy-node"} 42087 -indy_total_nodes_count{node_name="Node1",source="indy_node"} 4 -indy_reachable{node="Node1",node_name="Node1",source="indy_node"} 1 -indy_reachable{node="Node2",node_name="Node1",source="indy_node"} 1 -indy_reachable{node="Node3",node_name="Node1",source="indy_node"} 1 -indy_primary_node{node="Node3",node_name="Node1",source="indy_node"} 0 -indy_reachable{node="Node4",node_name="Node1",source="indy_node"} 1 -indy_reachable_nodes_count{node_name="Node1",source="indy_node"} 4 -indy_unreachable_nodes_count{node_name="Node1",source="indy_node"} 0 -indy_sovrin_version{version="unknown",node_name="Node1",source="indy_node"} 0 -indy_node_version{version="1.12.4",node_name="Node1",source="indy_node"} 0 -indy_node_current_timestamp{node_name="Node1",source="indy_node"} 1656964677000 -indy_delta{node_name="Node1",source="indy_node"} 0.1 -indy_lambda{node_name="Node1",source="indy_node"} 240.0 -indy_omega{node_name="Node1",source="indy_node"} 20.0 -indy_instances_started{node_name="Node1",source="indy_node",ident="0"} 9241582.557333816 -indy_ordered_request_counts{node_name="Node1",source="indy_node",ident="0"} 2813.0 -indy_ordered_request_durations{node_name="Node1",source="indy_node",ident="0"} 4998.5236960575 -indy_max_master_request_latencies{node_name="Node1",source="indy_node"} 0.0 -indy_client_avg_request_latencies{node_name="Node1",source="indy_node",ident="0"} 1.6602205066 -indy_throughput{node_name="Node1",source="indy_node",ident="0"} 0.059526375 -indy_master_throughput{node_name="Node1",source="indy_node"} 0.059526375 -indy_total_requests{node_name="Node1",source="indy_node"} 2807.0 -indy_average_per_second{node_name="Node1",source="indy_node",ident="read_transactions"} 0.7457233361 -indy_average_per_second{node_name="Node1",source="indy_node",ident="write_transactions"} 0.0097835779 -indy_transaction_count{node_name="Node1",source="indy_node",ident="ledger"} 363055.0 -indy_transaction_count{node_name="Node1",source="indy_node",ident="pool"} 4.0 -indy_transaction_count{node_name="Node1",source="indy_node",ident="config"} 0.0 -indy_transaction_count{node_name="Node1",source="indy_node",ident="audit"} 572264.0 -indy_uptime{node_name="Node1",source="indy_node"} 286909.0 -indy_last_view_change{node_name="Node1",source="indy_node"} -3600.0 -indy_consensus{node_name="Node1",source="indy_node"} 0 -indy_node_validator_info_size{source="indy-node"} 42087 -indy_total_nodes_count{node_name="Node2",source="indy_node"} 4 -indy_reachable{node="Node1",node_name="Node2",source="indy_node"} 1 -indy_reachable{node="Node2",node_name="Node2",source="indy_node"} 1 -indy_reachable{node="Node3",node_name="Node2",source="indy_node"} 1 -indy_primary_node{node="Node3",node_name="Node2",source="indy_node"} 0 -indy_reachable{node="Node4",node_name="Node2",source="indy_node"} 1 -indy_reachable_nodes_count{node_name="Node2",source="indy_node"} 4 -indy_unreachable_nodes_count{node_name="Node2",source="indy_node"} 0 -indy_sovrin_version{version="unknown",node_name="Node2",source="indy_node"} 0 -indy_node_version{version="1.12.4",node_name="Node2",source="indy_node"} 0 -indy_node_current_timestamp{node_name="Node2",source="indy_node"} 1656964677000 -indy_delta{node_name="Node2",source="indy_node"} 0.1 -indy_lambda{node_name="Node2",source="indy_node"} 240.0 -indy_omega{node_name="Node2",source="indy_node"} 20.0 -indy_instances_started{node_name="Node2",source="indy_node",ident="0"} 9241617.361843308 -indy_ordered_request_counts{node_name="Node2",source="indy_node",ident="0"} 2813.0 -indy_ordered_request_durations{node_name="Node2",source="indy_node",ident="0"} 5002.2084543444 -indy_max_master_request_latencies{node_name="Node2",source="indy_node"} 0.0 -indy_client_avg_request_latencies{node_name="Node2",source="indy_node",ident="0"} 1.6614998834 -indy_total_requests{node_name="Node2",source="indy_node"} 2803.0 -indy_average_per_second{node_name="Node2",source="indy_node",ident="read_transactions"} 0.7391644204 -indy_average_per_second{node_name="Node2",source="indy_node",ident="write_transactions"} 0.0097695987 -indy_transaction_count{node_name="Node2",source="indy_node",ident="ledger"} 363055.0 -indy_transaction_count{node_name="Node2",source="indy_node",ident="pool"} 4.0 -indy_transaction_count{node_name="Node2",source="indy_node",ident="config"} 0.0 -indy_transaction_count{node_name="Node2",source="indy_node",ident="audit"} 572264.0 -indy_uptime{node_name="Node2",source="indy_node"} 286910.0 -indy_last_view_change{node_name="Node2",source="indy_node"} -3600.0 -indy_consensus{node_name="Node2",source="indy_node"} 0 -indy_node_validator_info_size{source="indy-node"} 42087 -indy_total_nodes_count{node_name="Node3",source="indy_node"} 4 -indy_reachable{node="Node1",node_name="Node3",source="indy_node"} 1 -indy_reachable{node="Node2",node_name="Node3",source="indy_node"} 1 -indy_reachable{node="Node3",node_name="Node3",source="indy_node"} 1 -indy_primary_node{node="Node3",node_name="Node3",source="indy_node"} 0 -indy_reachable{node="Node4",node_name="Node3",source="indy_node"} 1 -indy_reachable_nodes_count{node_name="Node3",source="indy_node"} 4 -indy_unreachable_nodes_count{node_name="Node3",source="indy_node"} 0 -indy_sovrin_version{version="unknown",node_name="Node3",source="indy_node"} 0 -indy_node_version{version="1.12.4",node_name="Node3",source="indy_node"} 0 -indy_node_current_timestamp{node_name="Node3",source="indy_node"} 1656964677000 -indy_delta{node_name="Node3",source="indy_node"} 0.1 -indy_lambda{node_name="Node3",source="indy_node"} 240.0 -indy_omega{node_name="Node3",source="indy_node"} 20.0 -indy_instances_started{node_name="Node3",source="indy_node",ident="0"} 9241567.298552582 -indy_ordered_request_counts{node_name="Node3",source="indy_node",ident="0"} 2813.0 -indy_ordered_request_durations{node_name="Node3",source="indy_node",ident="0"} 4995.4871973787 -indy_max_master_request_latencies{node_name="Node3",source="indy_node"} 0.0 -indy_client_avg_request_latencies{node_name="Node3",source="indy_node",ident="0"} 1.6605351242 -indy_throughput{node_name="Node3",source="indy_node",ident="0"} 0.059526375 -indy_master_throughput{node_name="Node3",source="indy_node"} 0.059526375 -indy_total_requests{node_name="Node3",source="indy_node"} 2807.0 -indy_average_per_second{node_name="Node3",source="indy_node",ident="read_transactions"} 0.7381747334 -indy_average_per_second{node_name="Node3",source="indy_node",ident="write_transactions"} 0.0097835426 -indy_transaction_count{node_name="Node3",source="indy_node",ident="ledger"} 363055.0 -indy_transaction_count{node_name="Node3",source="indy_node",ident="pool"} 4.0 -indy_transaction_count{node_name="Node3",source="indy_node",ident="config"} 0.0 -indy_transaction_count{node_name="Node3",source="indy_node",ident="audit"} 572264.0 -indy_uptime{node_name="Node3",source="indy_node"} 286910.0 -indy_last_view_change{node_name="Node3",source="indy_node"} -3600.0 -indy_consensus{node_name="Node3",source="indy_node"} 0 -indy_node_validator_info_size{source="indy-node"} 42087 -indy_total_nodes_count{node_name="Node4",source="indy_node"} 4 -indy_reachable{node="Node1",node_name="Node4",source="indy_node"} 1 -indy_reachable{node="Node2",node_name="Node4",source="indy_node"} 1 -indy_reachable{node="Node3",node_name="Node4",source="indy_node"} 1 -indy_primary_node{node="Node3",node_name="Node4",source="indy_node"} 0 -indy_reachable{node="Node4",node_name="Node4",source="indy_node"} 1 -indy_reachable_nodes_count{node_name="Node4",source="indy_node"} 4 -indy_unreachable_nodes_count{node_name="Node4",source="indy_node"} 0 -indy_sovrin_version{version="unknown",node_name="Node4",source="indy_node"} 0 -indy_node_version{version="1.12.4",node_name="Node4",source="indy_node"} 0 -indy_node_current_timestamp{node_name="Node4",source="indy_node"} 1656964677000 -indy_delta{node_name="Node4",source="indy_node"} 0.1 -indy_lambda{node_name="Node4",source="indy_node"} 240.0 -indy_omega{node_name="Node4",source="indy_node"} 20.0 -indy_instances_started{node_name="Node4",source="indy_node",ident="0"} 9241578.641001696 -indy_ordered_request_counts{node_name="Node4",source="indy_node",ident="0"} 2813.0 -indy_ordered_request_durations{node_name="Node4",source="indy_node",ident="0"} 5004.3251404576 -indy_max_master_request_latencies{node_name="Node4",source="indy_node"} 0.0 -indy_client_avg_request_latencies{node_name="Node4",source="indy_node",ident="0"} 1.6601518776 -indy_throughput{node_name="Node4",source="indy_node",ident="0"} 0.059526375 -indy_master_throughput{node_name="Node4",source="indy_node"} 0.059526375 -indy_total_requests{node_name="Node4",source="indy_node"} 2807.0 -indy_average_per_second{node_name="Node4",source="indy_node",ident="read_transactions"} 0.7420719091 -indy_average_per_second{node_name="Node4",source="indy_node",ident="write_transactions"} 0.009783549 -indy_transaction_count{node_name="Node4",source="indy_node",ident="ledger"} 363055.0 -indy_transaction_count{node_name="Node4",source="indy_node",ident="pool"} 4.0 -indy_transaction_count{node_name="Node4",source="indy_node",ident="config"} 0.0 -indy_transaction_count{node_name="Node4",source="indy_node",ident="audit"} 572264.0 -indy_uptime{node_name="Node4",source="indy_node"} 286910.0 -indy_last_view_change{node_name="Node4",source="indy_node"} -3600.0 -indy_consensus{node_name="Node4",source="indy_node"} 0 diff --git a/indy-node-monitor/fetch-validator-status/setup_script.sh b/indy-node-monitor/fetch-validator-status/setup_script.sh deleted file mode 100755 index 735b563..0000000 --- a/indy-node-monitor/fetch-validator-status/setup_script.sh +++ /dev/null @@ -1,126 +0,0 @@ -#!/bin/bash - -source variables - - -## function to loop the fetch_status_prometheus.py script for give sample size and export the data into a .prom file -function prom_data_loop() { - counter=$1 - while [[ ${counter} > 0 ]] - do - counter=$(( ${counter} - 1 )) - python3 ./fetch_status_prometheus.py --genesis-url=${genesis_url} --net=${net} --seed=${seed} ${prometheus} | tee ${AMOS_PROJ_DIR}/data/prometheus/node_data.prom - sleep 60 - done -} - -function usage() -{ - cat << HEREDOC - - Usage: $progname [--net NET] [--genesis-url URL] [--seed SEED] [--samples SAMPLES] [--local JSON-LOCATION] [--prometheus] [--docker-setup] [--verbose] - - optional arguments: - -h, --help show this help message and exit - -n, --net NET pass in the network, default set to "bct" - -u, --genesis-url URL pass in the genesis url - -s, --seed SEED pass in the seed if different from 000000000000000000000000Trustee1 - -i, --samples SAMPLES pass the number of samples, default is set to 120 - -p, --prometheus output in prometheus format - -d, --docker-setup run the docker setup for prometheus and grafana if not already running - -v, --verbose increase the verbosity of the script - -l, --local convert the local json file to prometheus - -HEREDOC -} - -## building von-network docker container -##cd ${VON_NET_DIR} -##./manage build -##./manage start -##wait -##echo "sleeping for 15s to allow the von network to setup" -##sleep 15 - -progname=$(basename $0) -genesis_url="" -seed="000000000000000000000000Trustee1" -samples=120 -net="bct" -json_location="" -docker=false -verbose=0 -local=false -#node_exporter="False" - -OPTS=$(getopt -o "hn:u:s:i:l:pdv" --long "help,net:,genesis-url:,seed:,samples:,local:,prometheus,docker-setup,verbose" -n "$progname" -- "$@") -if [ $? != 0 ] ; then echo "Error in command line arguments." >&2 ; usage; exit 1 ; fi -eval set -- "$OPTS" - -while true; do - # uncomment the next line to see how shift is working - # echo "\$1:\"$1\" \$2:\"$2\"" - case "$1" in - -h | --help ) usage; exit; ;; - -n | --net ) net="$2"; shift 2 ;; - -u | --genesis-url ) genesis_url="$2"; shift 2 ;; - -s | --seed ) seed="$2"; shift 2 ;; - -i | --samples ) samples="$2"; shift 2 ;; - -l | --local ) local=true ; json_location="$2" ; shift 2;; - -p | --prometheus ) prometheus="-p"; shift ;; - -d | --docker-setup ) docker=true ; shift ;; - -v | --verbose ) verbose=$((verbose + 1)); shift ;; - -- ) shift; break ;; - * ) break ;; - esac -done - -if (( $verbose > 0 )); then - - # print out all the parameters we read in - cat <