亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

Table of Contents
Table of contents
Install Grafana using Docker
Connect data sources and visualize metrics
Add data source
Create your first dashboard
Using a pre-built dashboard
Home Computer Tutorials Computer Knowledge How to Install and Use Grafana to Visualize Real-time Data - Make Tech Easier

How to Install and Use Grafana to Visualize Real-time Data - Make Tech Easier

Jul 28, 2025 am 12:43 AM

Grafana is a powerful self-hosted tool that converts complex metric data into clear, interactive dashboards and real-time charts. Best of all, you can install Grafana on multiple platforms via Docker, which is not only fast and clean, but also has nothing to do with the operating system. This article will teach you step by step how to install Grafana using Docker and show how to use it to monitor system metrics and visualize real-time data efficiently.

Table of contents

  • Install Grafana using Docker
  • Connect data sources and visualize metrics
  • Using a pre-built dashboard

Install Grafana using Docker

Before installing Grafana, make sure your system has Docker installed.

First, run the following command to pull the Grafana image:

 <code>sudo docker pull grafana/grafana</code> 

How to Install and Use Grafana to Visualize Real-time Data - Make Tech Easier

Next, start a new Grafana container in the background and map it to port 3000:

 <code>sudo docker run -d -p 3000:3000 --name=grafana grafana/grafana</code> 

How to Install and Use Grafana to Visualize Real-time Data - Make Tech Easier

After the container is started, open the browser and visit http://ipnx.cn/link/4a914e5c38172ae9b61780ffbd0b2f90 to enter the Grafana interface. Log in with the default username and password (both admin ):

How to Install and Use Grafana to Visualize Real-time Data - Make Tech Easier

After clicking to log in, the system will prompt you to change your password to improve security. You can choose to update and submit a new password (recommended), or you can skip this step to continue using the default credentials:

How to Install and Use Grafana to Visualize Real-time Data - Make Tech Easier

After successfully logging in, you will see the following main interface:

How to Install and Use Grafana to Visualize Real-time Data - Make Tech Easier

Related Reading : In addition to Grafana, you can also use these tools to monitor your Linux system.

Connect data sources and visualize metrics

Grafana supports monitoring of multiple services and containers from a single dashboard. You can add multiple data sources (such as Prometheus, MySQL, MongoDB, etc.) and display data through preset or custom dashboards.

Let's use Prometheus as an example to configure it. First install and run Prometheus through Docker:

 <code>sudo docker pull prom/prometheus</code> 

How to Install and Use Grafana to Visualize Real-time Data - Make Tech Easier

Start the Prometheus container with the following command:

 <code>sudo docker run -d -p 9090:9090 --name=prometheus prom/prometheus</code> 

How to Install and Use Grafana to Visualize Real-time Data - Make Tech Easier

After the container is run, you can view the Prometheus web interface by visiting http://ipnx.cn/link/825ab77fe4eb3419db2fc9c6ceff7146 .

Add data source

When Grafana and Prometheus are both running normally, you can start adding the first data source:

How to Install and Use Grafana to Visualize Real-time Data - Make Tech Easier

Select the data source type you want to add and fill in the URL, for example http://ipnx.cn/link/825ab77fe4eb3419db2fc9c6ceff7146. After completion, click Save & Test . If you see the prompt Successfully queried the Prometheus API , it means that the connection is successful:

How to Install and Use Grafana to Visualize Real-time Data - Make Tech Easier

Create your first dashboard

After the connection is successful, you can create a dashboard and use components such as graphics and charts to visualize the metric data. Click the Create Dashboard button or New -> New dashboard to start creating:

How to Install and Use Grafana to Visualize Real-time Data - Make Tech Easier

Then click the Add a new visualization button to start adding visual components:

How to Install and Use Grafana to Visualize Real-time Data - Make Tech Easier

Then select Prometheus as the data source:

How to Install and Use Grafana to Visualize Real-time Data - Make Tech Easier

Select any available metrics, such as process_cpu_seconds_total, and click the Run Queries button to view the data chart:

How to Install and Use Grafana to Visualize Real-time Data - Make Tech Easier

You can also continue to add more visual components (such as CPU usage, memory usage, etc.) and adjust the layout by dragging and dropping.

In this way, you can build a real-time, interactive system or application data view for easy monitoring and analysis.

Using a pre-built dashboard

Grafana supports importing community-provided dashboards. For example, you can visit the official Grafana website to find and use ready-made dashboards shared by others:

How to Install and Use Grafana to Visualize Real-time Data - Make Tech Easier

To use these prebuilt dashboards, just copy the ID of any dashboard from the official website and paste it in Grafana's import interface.

Now that Grafana has been deployed, you can explore more advanced visualization functions, install practical plug-ins, or integrate them with tools such as Prometheus, MySQL, Elasticsearch, etc. to create a complete observability system. You can also try running other GUI applications in Docker to build a more interactive and flexible working environment.

The above is the detailed content of How to Install and Use Grafana to Visualize Real-time Data - Make Tech Easier. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

PHP Tutorial
1488
72
Google Translate Picture | Translate Text in Images - MiniTool Google Translate Picture | Translate Text in Images - MiniTool Jul 12, 2025 am 12:57 AM

This Google translate picture guide shows you how to translate text from an image. If you are looking for more computer tips and solutions, you can visit php.cn Software official website where you can also find some useful computer tools like php.cn

How to Install Device Drivers Manually on Windows 11/10? - MiniTool How to Install Device Drivers Manually on Windows 11/10? - MiniTool Jul 06, 2025 am 12:15 AM

If your Windows 11/10 computer doesn’t automatically the latest versions of device drivers, you will need to manually install them. In this post, php.cn Software will show you 3 different methods to manually install drivers on your device.

How to Amplify/Boost/Increase Microphone Volume Windows 11? - MiniTool How to Amplify/Boost/Increase Microphone Volume Windows 11? - MiniTool Jul 06, 2025 am 12:27 AM

This post delivered by php.cn official web page introduces three methods to improve microphone volume and boost its performance, in Control Panel, via Settings, and by Device Manager. Read the below content to view details.

How to Open and Run dxdiag.exe on Windows 10/11 How to Open and Run dxdiag.exe on Windows 10/11 Jul 06, 2025 am 12:23 AM

This post includes answers for what is dxdiag, how to run dxdiag in Windows 10/11, DirectX Diagnostic Tool’s main functions, and how to update dxdiag.exe driver. php.cn Software also provides many other computer tips and solutions for users. You can

what is an operating system what is an operating system Jul 11, 2025 am 03:16 AM

The operating system is the basic software for managing hardware resources, running programs, and providing user interaction interfaces. It coordinates the relationship between hardware and software and is responsible for memory allocation, device scheduling, file management and multitasking. Common systems include Windows (suitable for office and gaming), macOS (Apple devices, suitable for creative work), Linux (open source, suitable for developers), and Android/iOS (mobile device system). The choice of ordinary users depends on the usage scenario, such as software compatibility, security and customization requirements. How to view system information: Use winver command for Windows, click on the machine for macOS, use terminal commands for Linux, and find the phone in settings. The operating system is the underlying tool for daily use,

Best Ways to Fix Windows 11/10 Control Panel Not Opening! Best Ways to Fix Windows 11/10 Control Panel Not Opening! Jul 08, 2025 am 12:01 AM

Have you ever wanted to adjust computer settings to fix some issues but suffered from Control Panel not opening? There is nothing more frustrating than this app not turning on, stopping you from viewing and changing system settings. In this post, mul

What Is Dell Digital Locker? How to Log in and Use It on Dell PC? - MiniTool What Is Dell Digital Locker? How to Log in and Use It on Dell PC? - MiniTool Jul 07, 2025 am 12:28 AM

What is Dell Digital Locker? How to log into Dell Digital Locker? This post from php.cn provides answers. Besides, you can know how to use your Dell Digital Locker to find software products included with your Dell computer.

How to Open Windows 11 Computer Management Console in 7 Ways? - MiniTool How to Open Windows 11 Computer Management Console in 7 Ways? - MiniTool Jul 09, 2025 am 12:18 AM

This essay summarized by php.cn Software mainly teaches you how to open Windows 11 Computer Management with Windows Search, Quick Link menu, Run dialog, command prompt, PowerShell, File Explorer, Control Panel, as well as a desktop shortcut.

See all articles