-
Notifications
You must be signed in to change notification settings - Fork 7
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
Detect AWS region from instance metadata #7
Comments
Hey Mike, Thanks for this! I'm guessing this was running the binary directly on an EC2 instance? It's not something that was caught since we generally only use it in the Docker image on an EKS cluster which tends to set the required environment variables. It looks like an easy fix so let me just test it some more and I'll push the new version. |
I am running it in a pod within our Kops built Kubernetes cluster. It was just the sidecar container of the Prometheus Helm chart. Nothing special at all. |
Got it, thanks! When you get a chance, can you try the Docker image: |
I just encountered the same issue, and |
@imriz Thanks for confirming! I'll create a proper release with the fix today. As for the list of regions I've created a dedicated feature request for it (#10) but I suspect it'd require a bit of rewrite to implement so I can't promise it'll be done any time soon. Allowing specifying a single region as a parameter shouldn't be too difficult (#11) but in the meantime I'd imagine you could just set the |
@mikelorant @imriz The image Let me know if you have any problems! |
When starting discovery, receive the following error:
This can be resolved by setting the
AWS_REGION
environmental variable but this can also be determined from the instance metadata so it would not be necessary to configure anything (as long as the MSK clusters in the same region).The text was updated successfully, but these errors were encountered: