Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove not updated charts after some time #688

Closed
RobbScarlet opened this issue Jul 14, 2016 · 6 comments
Closed

remove not updated charts after some time #688

RobbScarlet opened this issue Jul 14, 2016 · 6 comments
Assignees

Comments

@RobbScarlet
Copy link

Hi,
If I do not need a chart, how can I delete it.
I want to delete the chart which do not collect data after 10 minutes, and let it not display on the dashboard.

@ktsaou
Copy link
Member

ktsaou commented Jul 14, 2016

I had such code in netdata, but I see I have disabled it for some reason and I can't remember why.

I can re-enable it, but I would like to make a few tests first. So, I'll leave this open.

@ktsaou ktsaou changed the title How can I delete a chart remove not updated charts after some time Jul 14, 2016
@stale
Copy link

stale bot commented Jan 2, 2019

Currently netdata team doesn't have enough capacity to work on this issue. We will be more than glad to accept a pull request with a solution to problem described here. This issue will be closed after another 60 days of inactivity.

@stale stale bot added the stale label Jan 2, 2019
@ktsaou
Copy link
Member

ktsaou commented Jan 3, 2019

@cakrit we could mark non-collected charts as OBSOLETE after some time and the code will clean them up.

Cleanup is already taking place when a chart is created. So, a new chart has to be created for the old charts to be deleted. Before cleaning up, we could mark as obsolete all the charts that have not been updated for some time (user configurable). Seems pretty simple to do.

@stale stale bot removed the stale label Jan 3, 2019
@cakrit cakrit added area/daemon feature request New features and removed area/web labels Jan 3, 2019
@cakrit cakrit assigned cakrit and unassigned ktsaou Jan 3, 2019
@cakrit
Copy link
Contributor

cakrit commented Mar 22, 2019

The collectors now have the ability (and responsibility) to mark both charts and dimensions as obsolete. So if we have specific examples of charts that should be removed, we need to create an issue for those collectors.

@vlvkobal
Copy link
Contributor

Charts can be obsoleted using the obsolete option in an external plugin. The documentation is here. For an internal plugin the rrdset_is_obsolete() function should be used.

@cakrit
Copy link
Contributor

cakrit commented Mar 22, 2019

I believe we can close this one, let us know if you need more help.

@cakrit cakrit closed this as completed Mar 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants