Skip to content

be9/promethize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Insert seed data into Prometheus database

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages