10000 GitHub - buom/prom2timescale: Migrate historical data from Prometheus to TimescaleDB
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

buom/prom2timescale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Migrate historical data from Prometheus to TimescaleDB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0