Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with CloudWatch sender #22

Open
mohag1412 opened this issue Jan 30, 2020 · 0 comments
Open

Issue with CloudWatch sender #22

mohag1412 opened this issue Jan 30, 2020 · 0 comments

Comments

@mohag1412
Copy link

Hi Team,

I have installed cloudwatch-sender via gem. I have created the required config.yaml file as below :


metric_prefix: "cloudwatch"
influx_options:
influx_host: "3.9x.xx.xx"
influx_database: telegraf
influx_username: "username"
influx_password: "password"
influx_port: 8086

metric_types:

EC2 Metrics

  • namespace: "AWS/EC2"
    #ec2_tag_key: "Owner"
    #ec2_tag_value: "mohag"
    metrics:

    name: "CPUUtilization"
    unit: "Percent"
    statistics:
    - Average
    

===================================================
When I try to run cloudwatch-sender send_metrics /opt/config.yaml --region=us-east-1 --access-key-id="ACCESSKEY" --secret-access-key="secret"

I get the below error :
/usr/local/share/gems/gems/aws-sdk-core-3.89.1/lib/aws-sdk-core/param_validator.rb:33:in `validate!': parameter validator found 2 errors: (ArgumentError)

  • expected params[:filters][0][:values][0] to be a String, got value nil (class: NilClass) instead.
  • expected params[:filters][1][:values][0] to be a String, got value nil (class: NilClass) instead.

Could you please help me fixing this error ?

Also I would like to know is it possible to send metrics to Influx Cloud ? If yes, what are the changes required in config files?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant