Skip to content

nichdiekuh/node-mongo2influx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-mongo2influx

Migrates time series data from mongodb to influxdb.

It takes a mongodb and an influxdb database, reads ALL mongodb collections, passes each row to a "prepareData function" and inserts the results into influxdb.

Installation

npm install mongo2influx

Options

var mongo2influx = new Mongo2Influx({
        influxdb : {
            user        : 'my-database-user',
            password    : 'f4nyp4ss',
            hostname    : 'xx.xx.xx.xx',
            database    : 'my-dest-database'
        },
        mongodb : {
            hostname    : 'xx.xx.xx.xx',
            database    : 'source-database'

        },
        logging     : true, // defaults to true, logs progress to cli
        limit       : 4, // number of parallel requests, defaults to 4
        emptySeries : false // if true, empties influx series before inserting new rows. defaults to false
    });

Take a look /examples/migrate.js for further instructions.

This repository is under development.

About

Migration tool for time series data from mongodb to influxdb

Resources

License

Stars

Watchers

Forks

Packages

No packages published