Question: I created a derived metric scoped to HostStorage, and later deleted the derived metric. The data for the derived metric is still listed under "Configuration | Data" and under the data used to create custom dashboards. The data for the derived metric is not listed under the Data Management dashboard. How can I delete the data for the derived metric?
RESOLUTION:
After you delete the derived metric you also have to remove the property from the topology type.
The following script will allow you to remove a derived metric from a property type.
__________________________________________
def ts = server.TopologyService
def tt = ts.getType("MyType")
def updateTT = ts.beginUpdate(tt)
updateTT.removeProperty("MyDerivedMetric")
tt = ts.endUpdate(updateTT)
__________________________________________
For example, I created a derived metric named "ktest_space_available" that was scoped to HostStorage. I deleted the metric and then ran the follow script:
__________________________________________
def ts = server.TopologyService
def tt = ts.getType("HostStorage")
def updateTT = ts.beginUpdate(tt)
updateTT.removeProperty("ktest_space_available")
tt = ts.endUpdate(updateTT)
__________________________________________
© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center