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

SQS metricset reports misleading error message #22946

Closed
kaiyan-sheng opened this issue Dec 5, 2020 · 4 comments
Closed

SQS metricset reports misleading error message #22946

kaiyan-sheng opened this issue Dec 5, 2020 · 4 comments
Assignees
Labels
bug Team:Platforms Label for the Integrations - Platforms team

Comments

@kaiyan-sheng
Copy link
Contributor

kaiyan-sheng commented Dec 5, 2020

User reports when running sqs metricset with config that specifies a endpoint, error message is still showing endpoint with amazonaws:

- module: aws
  period: 5m
  metricsets:
    - sqs
  #endpoint: "c2s.domain.tld"
  endpoint: "google.com"
  #endpoint: "askdlfjalsk.com"
  regions: "us-iso-east-1"
  access_key_id: "kasfdlkjasdflkasdjflkasdjf"

error message:

2020-12-03T15:20:58.405-0500    ERROR   [aws.sqs]       sqs/sqs.go:85   Error ListQueues: RequestError: send request failed
caused by: Post https://sqs.us-iso-east-1.amazonaws.com/: dial tcp: lookup sqs.us-iso-east-1.amazonaws.com on 192.168.1.1:53: no such host
@kaiyan-sheng kaiyan-sheng self-assigned this Dec 5, 2020
@kaiyan-sheng kaiyan-sheng added bug Team:Platforms Label for the Integrations - Platforms team labels Dec 5, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-platforms (Team:Platforms)

@bczika
Copy link

bczika commented Dec 21, 2020

This issue was created on my behalf and a little more detail is needed as the description is not quite accurate. The problem is is the endpoint parameter is ALWAYS ignored and "amazonaws.com" is ALWAYS appended to the end of the url. I tried seven more aws modules in addition to sqs and all have the same problem therefore I'm certain the problem is not module specific.

@kaiyan-sheng
Copy link
Contributor Author

This issue will be fixed with #23539. I tested with the PR and here is the new error message:

2021-01-18T12:35:52.520-0700    ERROR   [aws.sqs]       sqs/sqs.go:86   Error ListQueues: RequestError: send request failed
caused by: Post "https://sqs.us-iso-east-1.google.com/": dial tcp: lookup sqs.us-iso-east-1.google.com: no such host

@kaiyan-sheng
Copy link
Contributor Author

This is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Team:Platforms Label for the Integrations - Platforms team
Projects
None yet
Development

No branches or pull requests

3 participants