how to restart prometheus in linux code example
Example 1: how to restart psql in linux
sudo service postgresql restart
# To restart the postgresql service
Example 2: how to restart mongodb server in ubuntu
sudo systemctl restart mongodb
# it will restarts running mongodb server