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

Clear statistics #11

Open
BlackHornet opened this issue Aug 29, 2018 · 5 comments
Open

Clear statistics #11

BlackHornet opened this issue Aug 29, 2018 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@BlackHornet
Copy link

Probably an easy thing, but I miss the option to clear the statistics.

How can I wipe all collected cloud statistics data because there are now several Azure VM Agents listed, that are used for testing and won't be used anymore.

@olivergondza olivergondza added the help wanted Extra attention is needed label Sep 25, 2018
@zakabluk
Copy link

I have same question.

@sulaweyo
Copy link

While Jenkins is down:
mv /var/lib/jenkins/org.jenkinsci.plugins.cloudstats.CloudStatistics.xml /var/lib/jenkins/org.jenkinsci.plugins.cloudstats.CloudStatistics.xml.bak
This will move the file containing the historical data to .bak so you can restore it if you want. The file will be recreated on next provisioning. You could as well remove the entries you don't want to be in there anymore from the xml.

@olivergondza
Copy link
Member

Such activities are supposed to be rotated eventually as new activities are created. Note there used to be a bug leaving old activities uncompleted. The cleaning feature should be straightforward to implement, though I lean towards to clean only completed activities. I am mentioning it just in case you are interested in this as a workaround for said problem - I would not help.

@olivergondza
Copy link
Member

Note the known bug was resolved in 0.26.

@alirezaalj
Copy link

execute this script in jenkins panel:

import org.jenkinsci.plugins.cloudstats.CloudStatistics

def cloudStats = CloudStatistics.get()
cloudStats.active.clear()
cloudStats.log.clear()
cloudStats.save()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants