prom2timescale

command module
v0.0.0-...-01c1a02 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

README

prom2timescale

Migrate historical data from Prometheus to TimescaleDB

Installation

$ git clone https://github.com/buom/prom2timescale.git
$ cd prom2timescale
$ make build

Usage

$ prom2timescale -h

Example

$ curl -XPOST http://localhost:9090/api/v1/admin/tsdb/snapshot
{"status":"success","data":{"name":"20200928T034434Z-23ba198f9608ec46"}}

$ prom2timescale \
    -snapshot-path=/path/to/snapshots/20200928T034434Z-23ba198f9608ec46 \
    -label-key="__name__" \
    -label-value="up" \
    -db-name=PROM_TS_DB_NAME \
    -db-host=PROM_TS_DB_HOST \
    -db-user=PROM_TS_DB_USER \
    -db-password=PROM_TS_DB_PASSWORD

Credits

This works based on prometheus-tsdb-dump and timescale-prometheus

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL