awslabs / collectd-cloudwatch

A collectd plugin for sending data to Amazon CloudWatch
MIT License
200 stars 132 forks source link

support for CN region #22

Closed huoqi closed 7 years ago

huoqi commented 7 years ago

support for CN region, such as cn-north-1

huoqi commented 7 years ago

I confirm this contribution is under the terms of the MIT license.

yimuniao commented 7 years ago

The codes has something wrong. It will break the functionality of this plugin. In src/cloudwatch/modules/configuration/confighelper.py the line : return "https://monitoring." + self.region + ".amazonaws.com.cn/" should be as: self.endpoint = "https://monitoring." + self.region + ".amazonaws.com/"