Permalink
Browse files

Fixing ascii

  • Loading branch information...
1 parent e9b7870 commit 5c74b55f2be160953d8910adca9bfd00b5ce3e3b @MainframeEnzo MainframeEnzo committed Jan 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 modules/dao.js
View
@@ -49,10 +49,10 @@ DaoManagerModule.prototype.postCloudwatch = function (metricName, unit, value) {
params['MetricData.member.1.Unit'] = unit;
params['MetricData.member.1.Value'] = value;
params['MetricData.member.1.Dimensions.member.1.Name'] = 'InstanceID';
- params['MetricData.member.1.Dimensions.member.1.Value'] = process.env[Module.constants.strings.IP];
+ params['MetricData.member.1.Dimensions.member.1.Value'] = process.env[Module.constants.strings.IP].replace('.', '-');
Module.logger.write(Module.constants.levels.INFO, 'CloudWatch Namespace: ' + process.env[Module.constants.strings.CLOUDWATCH_NAMESPACE]);
- Module.logger.write(Module.constants.levels.INFO, 'CloudWatch IP: ' + process.env[Module.constants.strings.IP]);
+ Module.logger.write(Module.constants.levels.INFO, 'CloudWatch IP: ' + process.env[Module.constants.strings.IP].replace('.', '-'));
Module.logger.write(Module.constants.levels.INFO, 'CloudWatch MetricName: ' + metricName);
Module.logger.write(Module.constants.levels.INFO, 'CloudWatch Unit: ' + unit);
Module.logger.write(Module.constants.levels.INFO, 'CloudWatch Value: ' + value);

0 comments on commit 5c74b55

Please sign in to comment.