Download the PHP package fustundag/awscw-custom-metrics without Composer
On this page you can find all versions of the php package fustundag/awscw-custom-metrics. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fustundag/awscw-custom-metrics
More information about fustundag/awscw-custom-metrics
Files in fustundag/awscw-custom-metrics
Package awscw-custom-metrics
Short Description Send custom metric data to AWS CloudWatch for PHP
License MIT
Homepage http://github.com/fustundag/awscw-custom-metrics
Informations about the package awscw-custom-metrics
AWS CloudWatch Custom Metrics

You can send custom metrics to AWS CloudWatch like disk/memory usage
Features
- Send custom metrics to AWS CloudWatch
- Add new metrics what you need by metric plugins
- Configure different cron time for each metric plugin
Requirements
- PHP 5.5+
- aws/aws-sdk-php
- mtdowling/cron-expression
Usage
Basic usage
-
Create php file like awscw-agent.php
- Add to cron like :
Auto Discover InstanceId
For AWS EC2 instances, some meta-data can be obtained from system like instance-id :
While creating Sender object, if you dont give instance-id param, class tries to find instance-id using above cmd.
Cron for Metric Plugins
Each metric plugin can be configured to run at specified time. Time can be defined at crontab format. For more info: https://github.com/mtdowling/cron-expression
Installation
You can use Composer to install :
TODO
NOT TESTED.86% Coverage100% Coverage- MORE PLUGINS.
Contributing
You can contribute by forking the repo and creating pull requests. You can also create issues or feature requests.
Disclaimer
Your AWS CloudWatch usage my be charged. Please check CloudWatch pricing page : https://aws.amazon.com/cloudwatch/pricing/
License
This project is licensed under the MIT license. LICENSE
file can be found in this repository.
All versions of awscw-custom-metrics with dependencies
ext-memcached Version *
aws/aws-sdk-php Version 3.*@stable
mtdowling/cron-expression Version 1.2.*@stable
guzzlehttp/guzzle Version 6.2.*@stable