commercetools / mongo-metrics-reporter

Sends mongodb db.serverStatus() to the graphite.
Apache License 2.0
3 stars 3 forks source link
audit-backend

mongo-metrics-reporter

Join the chat at https://gitter.im/commercetools/mongo-metrics-reporter

Sends mongodb db.serverStatus() to the Graphite and InfluxDb.

Run

Application is distributed as a docker container, which can be found here:

https://registry.hub.docker.com/u/tenshi/mongo-metrics-reporter/

So you just need to pull it:

docker pull tenshi/mongo-metrics-reporter

and then run it:

docker run -d tenshi/mongo-metrics-reporter

Configure

The docker container accept following environment variables:

InfluxDB

MongoDB

Graphite

So if your carbon-cache is running on 192.168.10.105:8111, mongo is on host 192.168.10.105 and you would like to report status every 2 seconds, then you can use this config:

docker run -d \
  -e MONGO_HOST=192.168.10.105 \
  -e GRAPHITE_PORT=8111 \
  -e GRAPHITE_HOST=192.168.10.105 \
  -e "REPORT_INTERVAL=2 seconds" \
  tenshi/mongo-metrics-reporter