Grafana Bash Script for Ubuntu 22.04 LTS

Grafana is a open source monitoring and alerting tool and in this post we are going to install Grafana on ubuntu 22.04 LTS using Bash Script.


Step 1: Create a Grafana.sh bash file 


You need to use the given command to create a Grafana.sh bash file.


sudo vim Grafana.sh


Step 2: Paste  the following command here.


You need to copy and paste the command sequence in your Grafana.sh bash file.

#!/bin/bash

sudo apt-get update
cd /tmp
sudo apt-get install -y adduser libfontconfig1
wget https://dl.grafana.com/oss/release/grafana_9.0.0_amd64.deb
sudo dpkg -i grafana_9.0.0_amd64.deb
sudo systemctl daemon-reload
sudo service grafana-server start

and save it.


Step 3: Give Executable Permission 


You need to give the executable permission on Grafana.sh file by using the following command.

sudo chmod +x Grafana.sh


Step 4: Execute the Grafana.sh Bash script 


In order to install Grafana in your ubuntu 22.04 LTS machine, You need to use the following command.

sh Grafana.sh


Conclusion

Here we have successfully installed the Grafana on our ubuntu machine, Still you have any question, Please leave a message.



 



  

Grafana Bash Script for Ubuntu 22.04 LTS

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top