Skip to main content

Grafana Installation on Ubuntu using Docker

Grafana Installation on Ubuntu using Docker

Aim :

Install Grafana OSS (open-source version) on Ubuntu using Docker.

Grafana Installation Steps

Step 1: Pull and Run the Grafana Container

  • Pull and start the Grafana container:
    sudo docker run -d -p 3000:3000 --name=grafana grafana/grafana-oss
    • -d: Detaches the container and runs it in the background.
    • -p 3000:3000: Maps port 3000 on your host machine to port 3000 inside the container, enabling access to Grafana's web interface.
    • --name=grafana: Specifies the name of the container as grafana.

Step 2: Access Grafana

  • Once the container is running, access Grafana by opening a web browser and navigating to:
    http://localhost:3000
    If Grafana is running on a remote server or different IP, replace localhost with the server's IP or hostname.

Step 3: Initial Setup

  • On the first visit, you'll be prompted to:
    • Set up an admin password (default username: admin).
    • Configure data sources and dashboards as needed.

Step 4: Change Admin Password

  • After logging in with the default credentials:
    • Click on the user icon in the lower-left corner, then select "Admin" to access the Admin menu.
    • Go to "Profile" and then "Change password" to update the admin password.

Useful Grafana and Docker Commands

  • Grafana Commands:
    • Restart Grafana container:
      sudo docker restart grafana
    • View logs of Grafana container:
      sudo docker logs grafana
  • Docker Commands:
    • List all running containers:
      sudo docker ps
    • Stop and remove Grafana container:
      sudo docker stop grafana
      sudo docker rm grafana
    • Clean up unused Docker resources (containers, images, networks):
      sudo docker system prune

Written by: A.M.Rinas

Contact: mohomadrinas00@gmail.com

Comments

Popular posts from this blog

Use Katalon Studio in ubuntu

How to Install and Use Katalon Studio for Web Testing Step-by-Step Guide to Installing Katalon Studio Katalon Studio is a powerful tool for automating web, API, and mobile testing. In this guide, we'll walk you through the installation process and show you how to create your first test case for a web application. Step 1: Download Katalon Studio Start by downloading the latest version of Katalon Studio from the official website. Choose the version that suits your operating system. Step 2: Extract and Run the Application Once the download is complete, extract the contents of the downloaded file. Inside the extracted folder, locate the katalon.sh file (for Linux users) and run it to launch Katalon Studio: ./katalon If you're on Windows...

MySQL 8.0 Binary Installation: A Step-by-Step Guide

MySQL 8.0 Installation: A Comprehensive Guide Aim : Install MySQL 8.0 using the binary distribution on a Linux system. MySQL 8.0 Installation Steps Step 1: Prepare System and User Create a MySQL group: groupadd mysql Create a MySQL user with restricted shell access: useradd -r -g mysql -s /bin/false mysql Step 2: Download and Extract MySQL Navigate to the installation directory(Not compulsory): cd /usr/local Extract the MySQL tarball: tar xvf /path/to/mysql-VERSION-OS.tar.xz Create a symbolic link: ln -s full-path-to-mysql-VERSION-OS mysql Navigate to the MySQL directory: cd mysql Create a directory for MySQL files: mkdir mysql-files Set ownership and permissio...