neighbourhoodie / aws-couchwatch

Feeds metrics from a CouchDB instance to AWS CloudWatch.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NOTE: This is unmaintained, unsupported code.

  • It worked the last time we ran it.
  • PRs welcome, but we may not fix issues anytime soon.

aws-couchwatch

Feeds metrics from a CouchDB cluster to AWS CloudWatch.

Install

git clone git@github.com:neighbourhoodie/aws-couchwatch.git
cd aws-couchwatch
npm i
npm link

Now you can run aws-couchwatch to begin posting metrics to AWS CloudWatch, provided you have credentials already specified.

For usage information, run aws-couchwatch -h.

NOTE: Remember to do aws configure before using AWS-CouchWatch! Otherwise it will not work.

Usage

# set the AWS_REGION env var to your target region

aws-couchwatch

Periodically scan a CouchDB instance and upload the results to AWS CloudWatch.

Commands:
  aws-couchwatch start  Periodically scan a CouchDB instance and upload the
                        results to AWS CloudWatch.                     [default]
  aws-couchwatch scan   Scan a CouchDB instance once and upload the results to
                        AWS CloudWatch.

Options:
  --help, -h      Show help                                            [boolean]
  --version       Show version number                                  [boolean]
  --url, -u       URL for the CouchDB cluster to scan. Defaults to the COUCH_URL
                  environment variable.
                               [default: "http://admin:password@localhost:5984"]
  --scanDb, -s    Scan each database in addition to each node.  [default: false]
  --interval, -i  Interval between scanning for metrics in milliseconds.
                                                                [default: 60000]

License

Apache 2.0

(c) Neighbourhoodie Software.

About

Feeds metrics from a CouchDB instance to AWS CloudWatch.

License:Apache License 2.0


Languages

Language:JavaScript 100.0%