awslabs / collectd-cloudwatch

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

Curl Plugin not available to blocked_metrics #54

Open obenziane21 opened 7 years ago

obenziane21 commented 7 years ago

I have setup a curl plugin and was not be able to capture it from the /opt/collectd-plugins/cloudwatch/config/blocked_metrics, Does anyone know if there are any additional steps to take ?

LoadPlugin curl

` <Page "google_main_site"> URL "http://google.com"; Digest false VerifyPeer false VerifyHost false MeasureResponseTime true MeasureResponseCode true

Regex "google" DSType "GaugeAverage" Instance "google_site"

`

yimuniao commented 7 years ago

Is there any error in /var/log/collectd.log?

obenziane21 commented 6 years ago

I'm pulling my hair out why this is happening, it works on one machine and not this one

[2017-11-30 19:46:36] [AmazonCloudWatchPlugin][cloudwatch.modules.configuration.confighelper] Fetched asg name as NONE [2017-11-30 19:46:36] [AmazonCloudWatchPlugin][cloudwatch.modules.collectd_integration.dataset] collectd.get_dataset() not found, using static dataset configuration, some multivalue metrics might have incorrect names. [2017-11-30 19:46:36] [AmazonCloudWatchPlugin][cloudwatch.modules.client.putclient] No proxy server is in use [2017-11-30 19:46:36] [AmazonCloudWatchPlugin][cloudwatch_writer] Initialization finished successfully. [2017-11-30 19:46:36] Initialization complete, entering read-loop. [2017-11-30 19:46:36] rrdtool plugin: Adjusting "RandomTimeout" to 0.000 seconds.

yimuniao commented 6 years ago

From the log, there is no error. Have both machines same OS version and Collectd version?

obenziane21 commented 6 years ago

Both running on Ubuntu 14.04.5 LTS and collected 5.4.0-3ubuntu2.2

The working one is on us-west-2 and the non working on eu-west-2

yimuniao commented 6 years ago

Could you paste full of the collectd.log? And I remember the is a "debug" flag, could you enable it? and restart collectd?

obenziane21 commented 6 years ago

I've go the metrics going on the second node. thanks

Sorry for asking this question. Is there a way to create an general alarm regardless what the host is from cloudwatch ? it seems like collected does have a way to filter by tag or group host