Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
Mikhail f. Shiryaev 3b6339f6b6 Update usage in README.md 8 місяці тому
.gitignore Initial commit 3 роки тому
.travis.yml Initial commit 3 роки тому
LICENSE.md Initial commit 3 роки тому
Makefile Initial commit 3 роки тому
README.md Update usage in README.md 8 місяці тому
dump.go Improve logging on failure 8 місяці тому

README.md

whisper-to-graphite Build Status

Read and send metrics from whisper files to graphite - Used to migrate to different graphite backends

Basically this little helper calculated the metric name from the filename of a whisper file and sends all timestamp/value tuples using the graphite protocol. TCP and UDP are supported. Additionally there is a NOP protocol which logs all data instead of sending it.

Usage

% ./whisper-to-graphite -h
Usage of ./whisper-to-graphite:
  -basedirectory string
    	Base directory where whisper files are located. Used to retrieve the metric name from the filename. (default "/var/lib/graphite/whisper")
  -directory string
    	Directory containing the whisper files you want to send to graphite again (default "/var/lib/graphite/whisper/collectd")
  -from int
    	Starting timestamp to dump data from
  -host string
    	Hostname/IP of the graphite server (default "127.0.0.1")
  -port int
    	graphite Port (default 2003)
  -pps int
    	Number of maximum points per second to send (0 means rate limiter is disabled)
  -protocol string
    	Protocol to use to transfer graphite data (tcp/udp/nop) (default "tcp")
  -retries int
    	How many connection retries worker will make before failure. It is progressive and each next pause will be equal to 'retry * 1s' (default 3)
  -to int
    	Ending timestamp to dump data up to (default 2147483647)
  -workers int
    	Workers to run in parallel (default 5)

Assuming you don't want to use this as testcase for your IO subsystem, you might want to ensure that you don't send the data to the host you are reading it from.