Feedback

Chat Icon

Observability with Prometheus and Grafana

A Complete Hands-On Guide to Operational Clarity in Cloud-Native Systems

Integrating Prometheus with Grafana
27%

Deploying Grafana

Grafana is compatible with most modern operating systems. You can install it on Linux, Windows, and macOS. The installation process is straightforward and well-documented on the Grafana website.

Since we are using an Ubuntu server, we will install Grafana using the following commands.

Start by installing the necessary dependencies and importing the Grafana GPG key:

# Update the package list
apt-get update

# Install the necessary dependencies
apt-get install -y \
apt-transport-https \
software-properties-common wget

# Create the directory for the Grafana GPG key
mkdir -p /etc/apt/keyrings/

# Import the Grafana GPG key
wget -q -O - \
https://apt.grafana.com/gpg.key | \
gpg --dearmor | \
tee /etc/apt/keyrings/grafana.gpg \
> /dev/null

Add the Grafana repository to the system and update the package list:

# Add the Grafana repository to the system
echo \
"deb [signed-by=/etc/apt/keyrings/grafana.gpg] \
https://apt.grafana.com stable main" | \
tee -a /etc/apt/sources.list.d/grafana.list \
> /dev/null

# Update the package list
apt-get update

Observability with Prometheus and Grafana

A Complete Hands-On Guide to Operational Clarity in Cloud-Native Systems

Enroll now to unlock all content and receive all future updates for free.