From c46736f4907f2628b5ec9f52cd4f86e16ff36509 Mon Sep 17 00:00:00 2001 From: Mark Visser <85161590+imarkvisser@users.noreply.github.com> Date: Fri, 27 Sep 2024 17:00:37 +0200 Subject: [PATCH] Adjust Grafana setup docs (#93894) * Fix duplicate command and code format * Minor adjustment * add bash to code line added bash to a code line * run prettier --------- Co-authored-by: Irene Rodriguez --- docs/sources/setup-grafana/start-restart-grafana.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/docs/sources/setup-grafana/start-restart-grafana.md b/docs/sources/setup-grafana/start-restart-grafana.md index 036350e12e3..b6999c4115b 100644 --- a/docs/sources/setup-grafana/start-restart-grafana.md +++ b/docs/sources/setup-grafana/start-restart-grafana.md @@ -56,7 +56,7 @@ sudo systemctl enable grafana-server.service ### Restart the Grafana server using systemd -To restart the Grafana server, run the following commands: +To restart the Grafana server, run the following command: ```bash sudo systemctl restart grafana-server @@ -70,16 +70,15 @@ SUSE or openSUSE users might need to start the server with the systemd method, t Complete the following steps to start the Grafana server using init.d and verify that it is running: -1. To start the Grafana server, run the following commands: +1. To start the Grafana server, run the following command: ```bash sudo service grafana-server start - sudo service grafana-server status ``` 1. To verify that the service is running, run the following command: - ``` + ```bash sudo service grafana-server status ``` @@ -93,7 +92,7 @@ sudo update-rc.d grafana-server defaults #### Restart the Grafana server using init.d -To restart the Grafana server, run the following commands: +To restart the Grafana server, run the following command: ```bash sudo service grafana-server restart @@ -121,8 +120,8 @@ Alternatively, you can use the `docker compose restart` command to restart Grafa Configure your `docker-compose.yml` file. For example: -```bash -version: "3.8" +```yml +version: '3.8' services: grafana: image: grafana/grafana:latest