Package github.com/shatil/snitch collects and (optionally) publishes ECS
Cluster capacity metrics.
AWS SDK requires you to specify the AWS Region you wish to interact with,
which you can do at runtime with environment variable AWS_REGION.
git clone into your $GOPATH/src/, which may be ~/go/src/.
git clone \
git@github.com:shatil/snitch.git \
$GOPATH/src/github.com/shatil/snitchFor deployment-worth artifacts built locally, I recommend make docker-build.
Summary of interesting Makefile targets:
make dep will fetch dependencies to vendor/.
make test runs all tests and make cover-html will do that and generate
HTML code coverage.
You can build and run the binaries or pick a binary and:
AWS_REGION=ca-central-1 go run cmd/snitch/main.gomake build builds all binaries in cmd/ and deposits them in this
folder.
make install installs the binaries to $GOPATH/bin/. You probably don't
love this repo enough to do that--it's there mostly to simplify compiling
this repository using Docker.