8000 AWSTaggedHostName · Issue #11 · jondot/vitals · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

AWSTaggedHostName #11

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

Open
jondot opened this issue Oct 26, 2016 · 0 comments
Open

AWSTaggedHostName #11

jondot opened this issue Oct 26, 2016 · 0 comments

Comments

@jondot
Copy link
Owner
jondot commented Oct 26, 2016

Add strategy for pulling a host name from an AWS EC2 instance tag. The tag name can be configurable.

When vitals is initialized, this strategy can pull the current running instance's metadata and grab the assign tag for the host name, and that will become the Vitals reporting host name.

This strategy maps a logically determined host name to a metric, that is not a hostname or an instance ID.

Getting a name tag (requires awscli):

ec2-describe-tags \
  --filter "resource-type=instance" \
  --filter "resource-id=$(ec2-metadata -i | cut -d ' ' -f2)" \
  --filter "key=Name" | cut -f5

And for reference:
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html

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
0