Delete metrics from DB

Delete metrics from DB
0

I have a script that at one point has written a metric with a certain tags. This was however incorrect and the script has been fixed since then, so it does not write the metric with these tags any longer.

However the metric with the incorrect tags still appear in the DB, and still gets zeroes or nulls written to it, even when the script does not write these values.


How can I delete all metrics for a certain device? Or even specific metric names for a certain device?

I am thinking that that might fix it.


The metric in question is:


[{"
tags":{"im.dstype":"gauge","vs.name":"lab-CP-VSX1_VSW","im.name":"cphaprob-up-interfaces","im.step":"60","device-id":"f668082c-b0a0-409b-8440-a9c5dbb7f6e1","vs.id":"1"},"points":
[null,null,null,null,null,null,null,null,null,null,0.0,null,0.0,0.0,0.0,null,0.0,0.0,null,0.0,0.0,null,0.0,0.0,0.0,null,0.0,0.0,null,0.0,0.0,null,0.0,0.0,0.0,null,0.0,0.0,0.0,null,0.0,0.0,0.0,null,0.0,0.0,null,0.0,0.0,0.0,null,0.0,0.0,0.0,null,0.0,0.0,null,0.0,0.0
],"start":1511502060000,"step":60000},{"


There is a similar post on the Crowd with some answers that might be helpful.

https://community.indeni.com/discussions/topics/42440?auth_token=affe2bdd547104c84e7081bb9a0cb208a9e5da1f&cerkl_id=645080&cerkl_ue=fL%2FxDtN5mjBkEljNv261E7USitqFkjXdcF8dQ0LfZCQ%3D&utm_campaign=newsletter-11052017&utm_medium=email&utm_source=cerkl?page=1