Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

โ€œInvest in yourself โ€” your confidence is always worth it.โ€

Explore Cosmetic Hospitals

Start your journey today โ€” compare options in one place.

Install and Configure Grafana in Linux

Download & Install Grafana 13.x using TAR

# How to download?
$ cd /opt/
$ wget https://dl.grafana.com/grafana-enterprise/release/13.0.1/grafana-enterprise_13.0.1_24542347077_linux_amd64.tar.gz
$ tar -zxvf grafana-enterprise_13.0.1_24542347077_linux_amd64.tar.gz

# How to start a Grafana?
$ cd /opt/grafana-13.0.1/bin
$ nohup ./grafana server > grafana.log 2>&1 &
$ ps -eaf | grep grafana

Code language: PHP (php)
# Understanding default.ini
$ cd /opt/grafana-13.0.1/conf
$ more defaults.iniCode language: PHP (php)

How to access grafana?

http://13.127.223.144:3000/

admin/adminCode language: JavaScript (javascript)

Download & Install Grafana 11.x using TAR


$ cd /opt/
$ wget https://dl.grafana.com/enterprise/release/grafana-enterprise-11.0.0.linux-amd64.tar.gz
$ ls
$ tar -zxvf grafana-enterprise-11.0.0.linux-amd64.tar.gz
$ cd grafana-v11.0.0/
$ cd bin/
$ cd ..
$ ls
$ cd conf/
$ ls
$ more defaults.ini [ its config file for grafana ]
$ ls
$ cd ..
$ cd bin/
$ ls
$ nohup ./grafana-server &
$ tail -f nohup.outCode language: JavaScript (javascript)

Download & Install Grafana 8.x using TAR and RPM


Standalone Linux Binaries(64 Bit)SHA256: 
$ cd /opt/
$ wget https://dl.grafana.com/oss/release/grafana-8.1.5.linux-amd64.tar.gz
$ tar -zxvf grafana-8.1.5.linux-amd64.tar.gz
$ cd grafana-8.1.5
$ cd bin
$ nohup ./grafana-server &
$ ps -eaf | grep gra

Red Hat, CentOS, RHEL, and Fedora(64 Bit)SHA256: 
$ wget https://dl.grafana.com/oss/release/grafana-8.0.5-1.x86_64.rpm
$ sudo yum install grafana-8.0.5-1.x86_64.rpmCode language: JavaScript (javascript)

Ubuntu and Debian


sudo apt-get install -y adduser libfontconfig1
wget https://dl.grafana.com/oss/release/grafana_8.1.5_amd64.deb
sudo dpkg -i grafana_8.1.5_amd64.debCode language: JavaScript (javascript)

Standalone Linux Binaries(64 Bit)


wget https://dl.grafana.com/oss/release/grafana-8.1.5.linux-amd64.tar.gz
tar -zxvf grafana-8.1.5.linux-amd64.tar.gzCode language: JavaScript (javascript)

Red Hat, CentOS, RHEL, and Fedora(64 Bit)


wget https://dl.grafana.com/oss/release/grafana-8.1.5-1.x86_64.rpm
sudo yum install grafana-8.1.5-1.x86_64.rpmCode language: JavaScript (javascript)

OpenSUSE and SUSE


wget https://dl.grafana.com/oss/release/grafana-8.1.5-1.x86_64.rpm
sudo rpm -i --nodeps grafana-8.1.5-1.x86_64.rpmCode language: JavaScript (javascript)

Download & Install Grafana using YUM Repo (Optional)

Grafana Version	Package	Repository
Grafana OSS			grafana	https://packages.grafana.com/oss/rpm
Grafana OSS (Beta)		grafana	https://packages.grafana.com/oss/rpm-beta
Grafana Enterprise		grafana-enterprise	https://packages.grafana.com/enterprise/rpm
Grafana Enterprise (Beta)	grafana-enterprise	https://packages.grafana.com/enterprise/rpm-beta

Add a new file to your YUM repo using the method of your choice. The command below uses nano.

sudo nano /etc/yum.repos.d/grafana.repo

For Enterprise releases:

[grafana]
name=grafana
baseurl=https://packages.grafana.com/enterprise/rpm
repo_gpgcheck=1
enabled=1
gpgcheck=1
gpgkey=https://packages.grafana.com/gpg.key
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt

For OSS releases:

[grafana]
name=grafana
baseurl=https://packages.grafana.com/oss/rpm
repo_gpgcheck=1
enabled=1
gpgcheck=1
gpgkey=https://packages.grafana.com/gpg.key
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt


Install Grafana with one of the following commands:

$ sudo yum install grafana

# or

$ sudo yum install grafana-enterpriseCode language: PHP (php)

Step 2 – Understand Grafana Installation details in RHEL/CENTOS


Installs binary to /usr/sbin/grafana-server
Copies init.d script to /etc/init.d/grafana-server
Installs binary to /usr/sbin/grafana-server
Copies init.d script to /etc/init.d/grafana-server
Installs default file (environment vars) to /etc/sysconfig/grafana-server
Copies configuration file to /etc/grafana/grafana.ini
Installs systemd service (if systemd is available) name grafana-server.service
The default configuration uses a log file at /var/log/grafana/grafana.log
The default configuration specifies an sqlite3 database at /var/lib/grafana/grafana.dbCode language: JavaScript (javascript)

Step 3 – Start the server (init.d service)


# Start the server with systemd - To start the service and verify that the service has started:

$ sudo systemctl daemon-reload
$ sudo systemctl start grafana-server
$ sudo systemctl status grafana-server

# Configure the Grafana server to start at boot:
$ sudo systemctl enable grafana-server

# Start the server with init.d - To start the service and verify that the service has started:

$ sudo service grafana-server start
$ sudo service grafana-server status

# Configure the Grafana server to start at boot:
$ sudo /sbin/chkconfig --add grafana-serverCode language: PHP (php)

This will start the grafana-server process as the grafana user, which is created during package installation. The default HTTP port is 3000, and default user and group is admin.

Step 4 – Configure the Grafana server to start at boot time


$ sudo /sbin/chkconfig --add grafana-server
$ sudo systemctl enable grafana-server.service
$ systemctl daemon-reload
$ systemctl start grafana-server
$ systemctl status grafana-server

Step 5 – Grafana server Environment file

The systemd service file and init.d script both use the file located at /etc/sysconfig/grafana-server for environment variables used when starting the back-end. Here you can override log directory, data directory and other variables.

Step 6 – Grafana server Log

By default Grafana will log to /var/log/grafana

Step 7 – Grafana Database

The default configuration specifies a sqlite3 database located at /var/lib/grafana/grafana.db. Please backup this database before upgrades.

You can also use MySQL or Postgres as the Grafana database, as detailed on
http://docs.grafana.org/installation/configuration/#database

Step 8 – Grafana configuration

The configuration file is located at /etc/grafana/grafana.ini. Go the Configuration page for details on all those options. You can add following data sources

  1. Graphite
  2. InfluxDB
  3. OpenTSDB
  4. Prometheus

Step 9 – Server side image rendering

Server side image (png) rendering is a feature that is optional but very useful when sharing visualizations, for example in alert notifications.

$ sudo yum install fontconfig -y
$ sudo yum install freetype* -y
$ sudo yum install urw-fonts -y

Step 10 – Browse the dashboard

http://X.X.X.X.:3000/
Username - admin
Password - adminCode language: JavaScript (javascript)

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services โ€” all in one place.

Explore Hospitals
Iโ€™m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at <a href="https://www.cotocus.com/">Cotocus</a>. I share tech blog at <a href="https://www.devopsschool.com/">DevOps School</a>, travel stories at <a href="https://www.holidaylandmark.com/">Holiday Landmark</a>, stock market tips at <a href="https://www.stocksmantra.in/">Stocks Mantra</a>, health and fitness guidance at <a href="https://www.mymedicplus.com/">My Medic Plus</a>, product reviews at <a href="https://www.truereviewnow.com/">TrueReviewNow</a> , and SEO strategies at <a href="https://www.wizbrand.com/">Wizbrand.</a> Do you want to learn <a href="https://www.quantumuting.com/">Quantum Computing</a>? <strong>Please find my social handles as below;</strong> <a href="https://www.rajeshkumar.xyz/">Rajesh Kumar Personal Website</a> <a href="https://www.youtube.com/TheDevOpsSchool">Rajesh Kumar at YOUTUBE</a> <a href="https://www.instagram.com/rajeshkumarin">Rajesh Kumar at INSTAGRAM</a> <a href="https://x.com/RajeshKumarIn">Rajesh Kumar at X</a> <a href="https://www.facebook.com/RajeshKumarLog">Rajesh Kumar at FACEBOOK</a> <a href="https://www.linkedin.com/in/rajeshkumarin/">Rajesh Kumar at LINKEDIN</a> <a href="https://www.wizbrand.com/rajeshkumar">Rajesh Kumar at WIZBRAND</a> <a href="https://www.rajeshkumar.xyz/dailylogs">Rajesh Kumar DailyLogs</a>

Related Posts

Grafana Interview Questions and Answer

Rajesh Kumar Iโ€™m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at Cotocus. I share tech blog at DevOps School, travel stories at…

Read More

What is Grafana and use cases of Grafana?

What is Grafana? Grafana is an open-source analytics and monitoring platform that integrates with various data sources, including time-series databases, to provide visualization and monitoring capabilities. It…

Read More

How to deploy Prometheus & Grafana in Kubernetes?

Prometheus Stack The Prometheus stack typically includes several components that work together to provide comprehensive monitoring and alerting capabilities for your infrastructure and applications. Here’s a table…

Read More

Grafana Tutorials: Display Jenkins Build Status on Grafana using prometheus?

Step – 1: Install Grafana server Step – 2: Install Jenkins Server Step – 3: Install prometheus Server? Jenkins Prometheus Plugin expose an endpoint (default /prometheus) with…

Read More

What is Prometheus & Grafana and best course and certification in India

What is Prometheus and Grafana Prometheus After realizing that the metrics and monitoring tools they were using at the time (StatsD and Graphite) were insufficient for their…

Read More

Top 50 Grafana Interview Questions and Answers

What is Grafana? Grafana is used in allowing visualizing, alerting and exploring metrics where they are stored.It also provides us with the tools used in turning our…

Read More
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
Jason Mitchell
Jason Mitchell
11 days ago

Helpful and well-structured guide for installing and configuring Grafana on RHEL 7. The steps are clear and practical, making it easier for beginners to set up monitoring smoothly. 

0
Would love your thoughts, please comment.x
()
x