The monitoring back-end of T-NOVA's Virtual Infrastructure Manager (VIM).
Primarily developed by SPACE Hellas and released under the GNU General Public License v3.0.
Step 1. Download collectd's types.db:
mkdir tnova_vim
cd tnova_vim
curl -LO https://github.com/collectd/collectd/raw/master/src/types.db
Step 2. Launch an InfluxDB container:
docker run -d --name tnova-monitoring-influxdb \
--restart always \
-p 8083:8083 -p 8086:8086 -p 25826:25826/udp \
-v $PWD/influxdata:/var/lib/influxdb \
-v $PWD/types.db:/usr/share/collectd/types.db \
-e INFLUXDB_REPORTING_DISABLED=true \
-e INFLUXDB_COLLECTD_ENABLED=true \
-e INFLUXDB_COLLECTD_BIND_ADDRESS=":25826" \
-e INFLUXDB_COLLECTD_DATABASE="statsdb" \
-e INFLUXDB_COLLECTD_TYPESDB="/usr/share/collectd/types.db" \
influxdb:alpine
Step 3. Launch the monitoring container:
docker run --name=tnova-vim-backend -d \
--link tnova-monitoring-influxdb:influxdb \
--publish 8080:3000 \
tnova/vim-backend:latest
Although it is recommended to run the back-end inside a Docker container as described here, it is possible to run it locally.
Before running the application, make sure that an InfluxDB service is available and that the default configuration file, config/default.json is properly modified.
git clone git@github.com:spacehellas/tnova-vim-backend.git # or clone your own fork
cd tnova-vim-backend
npm install
node app.js