Builds container for a MongoDB monitoring reporter that speaks statsd protocol
469
Small go process which polls mongodb for server status shipping as metrics to statsd
Make sure golang is installed and GOPATH is defined in your environment.
Then run ./build.sh.
The simplest form is just to run it this way and it will attempt to connect via unauthorized fashion to a mongodb instance on localhost.
./mgo-statsd -statsd_host="statsd.hostname"
Launch a container using the image on Docker Hub built from this source repo:
$ docker run -dit --name mgo-statsd scullxbones/mgo-statsd [optional parameters]
To build a local image from this repo using:
$ docker build -t mgo-statsd .
If you have both Docker and Docker Compose installed, you can launch a complete development stack with a single command by using the provided docker-compose.yml file.
The stack defines the following containers:
Start the stack by running:
$ docker-compose up
Stop it by CTRL+C'ing it. See Docker Compose docs for help operating the stack.
See mgo-statsd Godoc documentation.
Content type
Image
Digest
Size
3.7 MB
Last updated
almost 8 years ago
docker pull scullxbones/mgo-statsd