promethize

command module
v0.0.0-...-f66c02e Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

README

promethize

Insert seed data into Prometheus database.

Setup/build

$ dep ensure
$ go build
$ go install

Import data

Prepare data in Prometheus scrape format (datafile.txt):

# TYPE xyz counter
xyz{label1="one",label2="aaa"} 100 1543252259148
xyz{label1="one",label2="bbb"} 200 1543252259148
xyz{label1="one",label2="aaa"} 150 1543252319148
xyz{label1="one",label2="bbb"} 250 1543252319148
...
# Initialize a database
$ promethize init /path/to/prometheus/database

# Load data to the database
$ promethize load /path/to/prometheus/database datafile.txt

Notes

  1. Only counter metrics were tested.
  2. Running multiple successive load commands was not tested.

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