jlopp / statoshi

Bitcoin Core + StatsD integration
https://jlopp.github.io/statoshi/
MIT License
233 stars 26 forks source link

document statoshi features & utilities #3

Closed jlopp closed 9 years ago

jlopp commented 9 years ago

Need to add documentation for:

Node pool connection management daemon DisconnectPeer RPC function System metrics daemon Grafana installation + elasticsearch support

Add sample bitcoin.conf to note disablewallet and blocknotify=bitcoin-cli gettxoutsetinfo to populate UTXO set metrics

jlopp commented 9 years ago

blocknotify=sleep 10 && /path/to/statoshi/src/bitcoin-cli gettxoutsetinfo disablewallet=1

Storing long-term sparse data in whisper necessitates a slight change in the storage aggregation config. This only really affects the function timing metrics. The graphite/conf/storage-aggregation.conf needs to be:

[min] pattern = .min$ xFilesFactor = 0.0 aggregationMethod = min

[max] pattern = .max$ xFilesFactor = 0.0 aggregationMethod = max

[sum] pattern = .count$ xFilesFactor = 0.0 aggregationMethod = sum

[default_average] pattern = .* xFilesFactor = 0.0 aggregationMethod = average

And in order to apply the changes to your pre-existing whisper databases you can use this command:

cd /opt/graphite/storage/whisper/

find -name *.wsp -exec whisper-resize.py --xFilesFactor=0.0 --nobackup {} 10:2160 60:10080 600:262974 \;

jlopp commented 9 years ago

Updated https://jlopp.github.io/statoshi/