cwput

command module
v0.0.0-...-21dae57 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2017 License: MIT Imports: 7 Imported by: 0

README

cwput - Standalone binary to write cloudwatch metrics

I know exists, I needed it anyway.. again.

Usage

It uses the standard s3cli authentication methods.

cwput --region=<region> --metric=LoadAverage --namespace="CustomNamespace" --unit=Count --value=1.0 --dimensions="Server=$(hostname -s)"

You can use environment variables to provide secret key & access key:

AWS_SECRET_KET=abc AWS_ACCESS_KEY=def cwput ...

Developing

Build the binary:

go build -o cwput *.go

Run the script:

./examples/collect-metrics.sh

Or both in one:

go build -o cwput *.go && ./examples/collect-metrics.sh

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL