https://github.com/xperimental/tsdb-migrate
Migrate Prometheus 1.x "local storage" to new 2.0 TSDB format.
https://github.com/xperimental/tsdb-migrate
cli database prometheus tool tsdb
Last synced: about 2 months ago
JSON representation
Migrate Prometheus 1.x "local storage" to new 2.0 TSDB format.
- Host: GitHub
- URL: https://github.com/xperimental/tsdb-migrate
- Owner: xperimental
- Created: 2017-08-20T02:15:51.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-08T19:07:32.000Z (over 8 years ago)
- Last Synced: 2025-04-04T18:11:25.639Z (about 1 year ago)
- Topics: cli, database, prometheus, tool, tsdb
- Language: Go
- Size: 9.18 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tsdb-migrate
This is a command-line tool for offline migration of [Prometheus](https://prometheus.io) 1.x "local storage" databases to the new [TSDB](https://github.com/prometheus/tsdb) format of Prometheus 2.0 (which is not released yet).
**Warning:** This is still in the very early stages, so please do not use it for anything important yet!
## Installation
Install Go and then `go get` the package:
```
go get github.com/xperimental/tsdb-migrate
```
As this is pre-release software no binaries are provided yet.
## Usage
```
Usage of tsdb-migrate:
-i, --input string Directory of local storage to convert.
-o, --output string Directory for new TSDB database.
-r, --retention duration Retention time of new database. (default 360h0m0s)
-s, --start-time string Starting time for conversion process. (default "2016-07-18T14:37:00Z")
--step-time duration Time slice to use for copying values. (default 24h0m0s)
```
- The retention time should match the one on the old storage.
- Long step times (such as the default) probably only work if you do not have a lot of series (still not tested on a large database).