-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
ec2 service discovery works incorrectly #771
Comments
valyala
pushed a commit
that referenced
this issue
Sep 21, 2020
* Add improvements to ec2 discovery #771 role_arn support with aws sts instance iam_role support refreshing temporary tokens * Apply suggestions from code review Co-authored-by: Roman Khavronenko <hagen1778@gmail.com> * changed implementation, removed tests, clean up code * moved endpoint builder into getEC2APIResponse Co-authored-by: Roman Khavronenko <hagen1778@gmail.com>
|
valyala
added a commit
that referenced
this issue
Sep 21, 2020
valyala
pushed a commit
that referenced
this issue
Sep 21, 2020
* Add improvements to ec2 discovery #771 role_arn support with aws sts instance iam_role support refreshing temporary tokens * Apply suggestions from code review Co-authored-by: Roman Khavronenko <hagen1778@gmail.com> * changed implementation, removed tests, clean up code * moved endpoint builder into getEC2APIResponse Co-authored-by: Roman Khavronenko <hagen1778@gmail.com>
FYI, support for |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
vmagent doesn't support all prometheus ec2_sd_config features.
With prometheus ec2_sd_config is possible to use following auth methods in addition to AWS_KEY and AWS_SECRET vars:
To Reproduce
based on this article
Assign iam role to instance and create following configuration:
with prometheus it works, vmagent returns error:
missing `access_key` in AWS_ACCESS_KEY_ID env var; probably, `access_key` must be set in `ec2_sd_config`?
Expected behavior
ec2_sd_config must return instances for scraping.
Version
1.41.0
The text was updated successfully, but these errors were encountered: