migrate

command module
v0.0.0-...-8308f14 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2015 License: Apache-2.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Godeps
_workspace/src/github.com/golang/protobuf/proto
Package proto converts data structures to and from the wire format of protocol buffers.
Package proto converts data structures to and from the wire format of protocol buffers.
_workspace/src/github.com/prometheus/client_golang/model
Package model contains core representation of Prometheus client primitives.
Package model contains core representation of Prometheus client primitives.
_workspace/src/gopkg.in/yaml.v2
Package yaml implements YAML support for the Go language.
Package yaml implements YAML support for the Go language.
generated
Package io_prometheus is a generated protocol buffer package.
Package io_prometheus is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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