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

Uninstall Prometheus #1756

Closed
dwalst opened this Issue Jun 21, 2016 · 7 comments

Comments

Projects
None yet
3 participants
@dwalst
Copy link

dwalst commented Jun 21, 2016

What did you do?
Hello, I installed and configured Prometheus and want to uninstall and reinstall it. Can you tell me how to completely uninstall Prometheus?
I have it installed on RHEL 7

@gouthamve

This comment has been minimized.

Copy link
Member

gouthamve commented Jun 21, 2016

Hi,
It would help if you told how you installed it. In most cases it would be deleting a couple of files (binaries/config).

@dwalst

This comment has been minimized.

Copy link
Author

dwalst commented Jun 21, 2016

tar xvfz prometheus-.tar.gz
cd prometheus-

./prometheus -config.file=prometheus.yml

@gouthamve

This comment has been minimized.

Copy link
Member

gouthamve commented Jun 21, 2016

Uninstalling is as simple as rm -rf prometheus-* :)

Its a single binary so there are no dependencies that are installed anywhere.

@dwalst

This comment has been minimized.

Copy link
Author

dwalst commented Jun 21, 2016

Wonderful, awesome, and sweet!!! Thank you very much and have a great day/evening :)

@dwalst

This comment has been minimized.

Copy link
Author

dwalst commented Jun 21, 2016

Ok, I was a little premature, as that didn't work, see below:

prometheus-0.19.2.linux-amd64]# rm -rf prometheus-*

prometheus-0.19.2.linux-amd64]# ./prometheus -config.file=prometheus.yml

INFO[0000] Starting prometheus (version=0.19.2, branch=master, revision=23ca13c) source=main.go:73
INFO[0000] Build context (go=go1.6.2, user=root@134dc6bbc274, date=20160529-18:58:00) source=main.go:74
INFO[0000] Loading configuration file prometheus.yml source=main.go:206
INFO[0000] Loading series map and head chunks... source=storage.go:340
INFO[0000] 438 series loaded. source=storage.go:345
INFO[0000] Starting target manager... source=targetmanager.go:74
WARN[0000] No AlertManager configured, not dispatching any alerts source=notifier.go:165
INFO[0000] Listening on :9090 source=web.go:241

I CAN STILL FETCH AND VIEW THE CONSOLE AND GRAPH STATISTICS AS WELL.
Do I also need to delete all Prometheus filesystems and related files?

@gouthamve

This comment has been minimized.

Copy link
Member

gouthamve commented Jun 21, 2016

prometheus-0.19.2.linux-amd64]# rm -rf prometheus-*

You were trying to delete the folder from inside. cd .. and then do it.

If you only want to clear the data stored, do rm -rf data/ from the current folder (from where you ran ./prometheus) and rerun it.

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 24, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.