A fork of AWS CloudWatch Monitoring Scripts, which customises the metric's Filesystem
value to be the same as the Mount
value.
We added this customisation because we would like to be able to explicitly define the value of both Mount
and Filesystem
within the metric, which will then allow us to filter the metrics, in our case, when using CloudWatch Dashboard.
On the original code, the Filesystem
value is derived from /bin/df -k -l -P $df_path
which can differ between systems. This causes a problem where we can't guarantee what Filesystem
value to use when filtering the metrics.
Other than that, we also added HTTP proxy support which was extracted from Muhammet Arslan's aws-mon-scripts fork. This adds a new proxy flag --proxy="http://someproxy3128/"
. Credit goes to Muhammet for this feature.
We use MasterRoot24/cloudwatch Puppet module to provision AWS CloudWatch Monitoring Scripts, and then customise the zip_url
parameter value to point to this fork's released artifacts.
For example:
class { '::cloudwatch':
...
zip_url => 'https://github.com/shinesolutions/aws-scripts-mon/releases/download/1.3.0/shinesolutions-aws-scripts-mon-1.3.0.zip',
}
HTTP proxy can be passed as a flag, for example:
./mon-put-instance-data.pl --proxy="http://someproxy:3128/" --mem-util --disk-space-util --disk-path=/ --from-cron