https://github.com/influxdata/whisper-migrator
A tool for migrating data from Graphite Whisper files to InfluxDB TSM files (version 0.10.0).
https://github.com/influxdata/whisper-migrator
Last synced: about 2 months ago
JSON representation
A tool for migrating data from Graphite Whisper files to InfluxDB TSM files (version 0.10.0).
- Host: GitHub
- URL: https://github.com/influxdata/whisper-migrator
- Owner: influxdata
- License: apache-2.0
- Created: 2016-01-15T15:46:44.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-09T12:33:11.000Z (over 7 years ago)
- Last Synced: 2025-03-24T22:42:09.814Z (3 months ago)
- Language: Go
- Size: 17.6 KB
- Stars: 33
- Watchers: 13
- Forks: 14
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# whisper-migrator
A tool for migrating data from Graphite Whisper files to InfluxDB TSM files (version 0.10.0).This tool can be used in three modes
1. Get whisper file information. This option displays, number of points in the file
and oldest timestamp in the filemigration.go -wspinfo -wspPath=whisper folder
2. Write to influxdb using go client, clientv2
It uses influxdb go client, clientv2. And migrates data calling HTTP APIs.
This option can be invoked asmigration.go -option=ClientV2 -wspPath=whisper folder -from=<2015-11-01> -until=<2015-12-30> -dbname=migrated
-host=http://localhost -port=8086, -retentionPolicy=default -tagconfig=config.json3. Write to influxdb using TSMWriter
This option, uses TSMWriter and creates .tsm file directly in the influxData folder.
This option will write the graphite data faster than the option 1
This option can be invoked as followsmigration.go -option=TSMW -wspPath=whisper folder -influxDataDir=influx data folder -from=<2015-11-01> -until=<2015-12-30>
-dbname=migrated -retentionPolicy=default -tagconfig=config.jsonThe influxd daemon process must be restarted to see the migrated data.
Tag Config file
This file is required to specify tags and measurement name for a given pattern. Please see the sample tagconfig file, migration_config.json