prometheus-junkyard / migrate

Migration tool for Prometheus configs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prometheus Migration Tool

A tool for upgrading Prometheus setups to a newer version.

Currently, it migrates ASCII protcol buffer configurations from pre-v0.14 setups to the respective YAML equivalent.

Install:

$ go get github.com/tools/godep
$ cd $GOPATH/src/github.com/prometheus/migrate
$ godep go install

Binary releases are also provided for download.

Usage:

migrate -out=new_conf.yml old_conf.conf

Migration will not preserve comments. It is generally recommended for larger files that are tedious to translate by hand.

Reading the configuration documentation will provide you with further insight about new possibilities.

Using Docker

You can also do the migration using the prom/migrate Docker image.

For example:

docker pull prom/migrate

docker run --rm -ti -v $PWD/prom_migrate:/prom_migrate \
        prom/migrate -out=/prom_migrate/new_conf.yml /prom_migrate/old_conf.conf

About

Migration tool for Prometheus configs.

License:Apache License 2.0


Languages

Language:Go 82.9%Language:Protocol Buffer 13.1%Language:Makefile 4.0%