#[stats.d] Purging individual private charts

1 messages · Page 1 of 1 (latest)

onyx spire
#

Heya,
I was trying out the statsd integration for future use and in my infinite wisdom, I netcat'd some stuff to netdata after initial setup.
I obviously used very inappropriate metric names as always, and now I'm stuck with lovely charts like foo.cock_gauge and bar.penis_counter.....
(do not question my choice, I'm doing it myself already)

is there a way to purge specific charts/metrics without nuking all of the data? I would imagine needing that functionality in the future when beginning to implement actual metrics for my apps as well.

granite rose
#

Hey @onyx spire ! We don't judge 🙂 A question, I'm assuming you still see those charts on the cloud, right? Or is it on the local dashboard?

onyx spire
granite rose
#

Ok, it should "delete" it after a while of not having any data for it. If you are ok handling an sqlite database, there is likely an update you can do in a table to mark it as deleted and speed up this deletion on the cloud as well

#

Basically under /var/cache/netdata there is a context-meta.db. In there there is a table called context. There should be a line for the charts there and you could set the deleted to 1 for it. On my tests after a while and a couple of agent restarts the chart was removed from the cloud

onyx spire
#

alright, going to give this a whirl

#

local dashboard picked it up immediately, cloud appears to be a bit more reluctant to change

granite rose
#

indeed, yes

#

give it a bit of time....

#

and maybe a couple of agent restarts or cloud refreshes....

onyx spire
#

ah! nevermind

#

it got itself together

#

lovely

#

cheers 🙂