An open API service indexing awesome lists of open source software.

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.

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).