I am using the V2 metrics API to retrieve common system metrics, in this case swap availability and usage.
type(HOST),tag(MyApplication:MyTag)
builtin:host.mem.swap.(used,avail):names:merge(1)
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:
warnings": [
“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.
Lou