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

Instructions needed for stopping the Prometheus and node_exporter applications #2406

Closed
Ricky-Tigg opened this issue Nov 24, 2023 · 2 comments

Comments

@Ricky-Tigg
Copy link

prometheus v.: 2.48.0 | Hello. While the present repository is source of acquisition of the Prometheus and node_exporter program codes, related documentation's instructions at prometheus.io for stopping them within a terminal do not exist. However communicating how stopping is as relevant as starting since what starts must be able to be stopped.

p.s.: By experience, I learned that closing each terminal session in which these applications were started does end up the process that is attached to node_exporter but not the one that is attached to Prometheus, which is as sub-process of /usr/lib/systemd/systemd --user.

@beorn7
Copy link
Member

beorn7 commented Nov 28, 2023

There is https://prometheus.io/docs/prometheus/latest/management_api/#quit in the Prometheus doc itself.

https://prometheus.io/docs/prometheus/latest/getting_started/ has a section "Shutting down your instance gracefully" at the very end.

Both are in prometheus/prometheus itself and not in this repo (prometheus/docs).

node_exporter is in its own repo, with some documentation there.

AFAIK you can gracefully shutdown all binaries in the Prometheus project by sending a SIGTERM/SIGINT, which can be done by pressing Ctrl-C in a terminal. I would say that is common knowledge how to start and stop programs with your preferred OS, and not specific to Prometheus.

Usually, you will run processes like the Prometheus server or the node_exporter from some kind of service manager, like systemd on a Linux server, SysV init on older Linux or UNIX systems, Kubernetes in the cloud, etc. But each of these have their own usage, and we cannot really document all of them on the Prometheus doc page, and Prometheus just behaves like any other program under these service managers. Nothing specific here.

@Ricky-Tigg
Copy link
Author

Report 13183 obsoletes the present one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants