-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(stats): Chart migration 7 (#1162)
schedule was taken [from here] * new contracts 24h * new verified contracts 24h * independent total verified contracts to double-ensuere consistency (and it's still fast) * find timeslot script improvement for accurate representation * adjust new accounts schedule to not intersect with completed txns * restructure utils + single readme + improve readme
- Loading branch information
Showing
27 changed files
with
776 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Update timeslots visualization | ||
|
||
## Preparations | ||
|
||
1. Install tkinter (e.g. `apt-get install python3-tk` or `brew install python-tk`) for `find_free_timeslot.py` GUI | ||
2. Install other dependencies from `requirements.txt`: `pip install -r requirements.txt` | ||
|
||
## `find_free_timeslot.py` | ||
|
||
It's a tool to roughly visualize the busyness of update schedule to find a timeslot for some new update group. | ||
|
||
### Usage | ||
|
||
Just run `python find_free_timeslot.py` and use GUI to find less crowded timeslots. | ||
You can regenerate durations config for more accurate representation. | ||
See below for details | ||
|
||
## Durations config | ||
|
||
This is a script to generate a config for an accurate visualization within `find_free_timeslot` script. | ||
|
||
### Usage | ||
|
||
1. Get data fetch time statistics (e.g. from grafana) (example: `data.csv.example`). In our case, you can: | ||
- Open "Microservices > Stats" dashboard | ||
- Find "Average data fetch time" | ||
- [Three dots] > [Inspect] > [Data] | ||
- [Data options] > [Show data frame] > [Series joined by time] | ||
- [Formatted data] = off | ||
- [Download CSV] | ||
2. Run the script (preferably from this folder, to correctly use default parameters) (see `--help` for details) | ||
3. Enjoy newly generated `durations.json` after running `find_free_timeslot` script. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
"Time","accountsGrowth_DAY","accountsGrowth_MONTH","accountsGrowth_WEEK","accountsGrowth_YEAR","activeAccounts_DAY","averageBlockRewards_DAY","averageBlockRewards_MONTH","averageBlockRewards_WEEK","averageBlockRewards_YEAR","averageBlockSize_DAY","averageBlockSize_MONTH","averageBlockSize_WEEK","averageBlockSize_YEAR","averageBlockTime_DAY","averageGasLimit_DAY","averageGasLimit_MONTH","averageGasLimit_WEEK","averageGasLimit_YEAR","averageGasPrice_DAY","averageGasPrice_MONTH","averageGasPrice_WEEK","averageGasPrice_YEAR","averageTxnFee_DAY","averageTxnFee_MONTH","averageTxnFee_WEEK","averageTxnFee_YEAR","completedTxns_DAY","gasUsedGrowth_DAY","gasUsedGrowth_MONTH","gasUsedGrowth_WEEK","gasUsedGrowth_YEAR","lastNewVerifiedContracts_DAY","newAccounts_DAY","newAccounts_MONTH","newAccounts_WEEK","newAccounts_YEAR","newBlockRewards_DAY","newBlocks_DAY","newBlocks_MONTH","newBlocks_WEEK","newBlocks_YEAR","newNativeCoinTransfers_DAY","newNativeCoinTransfers_MONTH","newNativeCoinTransfers_WEEK","newNativeCoinTransfers_YEAR","newTxns_DAY","newTxns_MONTH","newTxns_WEEK","newTxns_YEAR","newVerifiedContracts_DAY","newVerifiedContracts_MONTH","newVerifiedContracts_WEEK","newVerifiedContracts_YEAR","totalAccounts_DAY","totalAddresses_DAY","totalBlocks_DAY","totalNativeCoinTransfers_DAY","totalTokens_DAY","totalTxns_DAY","totalVerifiedContracts_DAY","txnsFee_DAY","txnsFee_MONTH","txnsFee_WEEK","txnsFee_YEAR","txnsGrowth_DAY","txnsGrowth_MONTH","txnsGrowth_WEEK","txnsGrowth_YEAR","txnsSuccessRate_DAY","txnsSuccessRate_MONTH","txnsSuccessRate_WEEK","txnsSuccessRate_YEAR","verifiedContractsGrowth_DAY","verifiedContractsGrowth_MONTH","verifiedContractsGrowth_WEEK","verifiedContractsGrowth_YEAR" | ||
1735022010000,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34,12.34 |
42 changes: 42 additions & 0 deletions
42
stats/config/utils/free_timeslots/durations/durations.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"active_accounts_group": 1, | ||
"average_block_time_group": 1, | ||
"completed_txns_group": 19, | ||
"pending_txns_group": 1, | ||
"total_addresses_group": 3, | ||
"total_blocks_group": 1, | ||
"total_txns_group": 1, | ||
"total_operational_txns_group": 1, | ||
"total_tokens_group": 1, | ||
"yesterday_txns_group": 1, | ||
"active_recurring_accounts_daily_recurrence60_days_group": 1, | ||
"active_recurring_accounts_monthly_recurrence60_days_group": 1, | ||
"active_recurring_accounts_weekly_recurrence60_days_group": 1, | ||
"active_recurring_accounts_yearly_recurrence60_days_group": 1, | ||
"active_recurring_accounts_daily_recurrence90_days_group": 1, | ||
"active_recurring_accounts_monthly_recurrence90_days_group": 1, | ||
"active_recurring_accounts_weekly_recurrence90_days_group": 1, | ||
"active_recurring_accounts_yearly_recurrence90_days_group": 1, | ||
"active_recurring_accounts_daily_recurrence120_days_group": 1, | ||
"active_recurring_accounts_monthly_recurrence120_days_group": 1, | ||
"active_recurring_accounts_weekly_recurrence120_days_group": 1, | ||
"active_recurring_accounts_yearly_recurrence120_days_group": 1, | ||
"new_txns_window_group": 1, | ||
"average_block_rewards_group": 1, | ||
"average_block_size_group": 1, | ||
"average_gas_limit_group": 1, | ||
"average_gas_price_group": 1, | ||
"average_txn_fee_group": 1, | ||
"gas_used_growth_group": 1, | ||
"native_coin_supply_group": 1, | ||
"new_blocks_group": 1, | ||
"txns_fee_group": 1, | ||
"txns_success_rate_group": 2, | ||
"txns_stats24h_group": 1, | ||
"new_accounts_group": 102, | ||
"new_contracts_group": 1, | ||
"new_txns_group": 1, | ||
"new_verified_contracts_group": 1, | ||
"native_coin_holders_growth_group": 1, | ||
"new_native_coin_transfers_group": 1 | ||
} |
Oops, something went wrong.