Skip to content

Ruby daemon for getting monitoring data from OpenNebula's XML-RPC API and storing it to InfluxDB.

License

Notifications You must be signed in to change notification settings

hydro-b/one2influx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

one2influx

One2influx is small ruby daemon for getting monitoring data from OpenNebula's XML-RPC API (4.12) and storing it to InfluxDB (0.9). It needs Ruby 2+ to run.

Installation

For Debian 8, install it as local gem:

$ sudo apt-get install ruby ruby-dev libghc-zlib-dev -y
$ gem install one2influx

or build it on your own:

$ sudo apt-get install ruby ruby-dev libghc-zlib-dev -y
$ git clone https://github.com/zidekmat/one2influx.git
$ cd one2influx && gem install bundle && bundle install

Then just set up your connection with ONE and InfluxDB and run

$ one2influx &

Settings

Can be found in lib/one2influx/config.rb. By default logs are stored in the directory from which the script was executed.

Testing

You can run this without working ONE instance. Executable test/one2influx_fake will provide you with some testing XML data that can be modified in test/fake_lib/fake_one.rb.

About

Ruby daemon for getting monitoring data from OpenNebula's XML-RPC API and storing it to InfluxDB.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%