digitalocean / api-v2

DigitalOcean API v2 feedback
https://developers.digitalocean.com
139 stars 19 forks source link

metadata: expose instance type/size #182

Open lucab opened 5 years ago

lucab commented 5 years ago

This is a feature request for the link-local /metadata/v1 endpoint (or a documentation enhancement, if the feature is already in place but not documented).

It would be nice to have an "instance type" field as part of the node metadata, so that an host could introspect and detect its own size at runtime. Regarding the content of this additional field, matching the instance type "slug" that is used for the creation API would be good.

We are currently adding introspection logic for CoreOS-style systems, and from an initial survey DO is the only major environment not exposing this piece of information to nodes: https://github.com/coreos/afterburn/issues/277.

/cc @hilary @snormore for further internal triaging/dispatching

lucab commented 5 years ago

/cc @andrewsomething

A gentle bump to possibly get some DO internal reaction on this.

andrewsomething commented 5 years ago

Thanks for raising this @lucab. It sounds like a reasonable request. I've brought it up with the team that maintains our metadata service internally.