I am using the V2 metrics API to retrieve common system metrics, in this case swap availability and usage.
I need the common ""dt.entity.host.name" name and not the cryptic one. It works fine, but if I peek in the warnings, I see this:
"Usage of index \"1\" is deprecated, please consider converting the query to use the dimension key \"dt.entity.host\" instead"
How do I change my metrics selector to the newer format?
Any help is greatly appreciated.