在 Ubuntu 20.04 上安裝 Grafana 的指南
在本教程中,您將學習如何在 Ubuntu 20.04 上安裝 Grafana。我們將安裝 Grafana Enterprise CLI 7.3.0 版。Grafana 是開源的。
在本教程中,您將學習如何在 Ubuntu 20.04 上安裝 Grafana。我們將安裝 Grafana Enterprise 和 Open Source CLI 版本 7.3.0。
Grafana 是開源可視化和分析軟件。它允許您查詢、可視化、提醒和探索您的指標,無論它們存儲在哪裡。用簡單的英語,它為您提供了將時間序列數據庫 (TSDB) 數據轉換為精美圖表和可視化效果的工具。
先決條件
默認情況下,Grafana 安裝並使用 SQLite,SQLite 是存儲在 Grafana 安裝位置的嵌入式數據庫。
讓我們開始安裝過程。
在 Ubuntu 20.04 上安裝 Grafana
第 1 步 - 使服務器保持最新
# apt update -y
# apt upgrade -y
第 2 步 - 安裝所需的軟件包並添加 GPG 密鑰
# apt-get install apt-transport-https -y
# wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add -
第 3 步 - 添加此存儲庫以獲得穩定版本
最新企業版
# echo "deb https://packages.grafana.com/enterprise/deb stable main' | sudo tee -a /etc/apt/sources.list.d/grafana.list
最新的 OSS 版本
# echo "deb https://packages.grafana.com/oss/deb stable main' | sudo tee -a /etc/apt/sources.list.d/grafana.list
第 4 步 - 安裝 Grafana Enterprise
添加存儲庫後,首先更新服務器並安裝 Grafana Enterprise。
# apt-get update -y
# apt-get install grafana-enterprise -y
安裝 OSS 版本:
# apt-get update -y
# apt-get install grafana -y
啟動和啟用服務並驗證服務是否已啟動:grafana-server.service。
# systemctl start grafana-server.service
# systemctl status grafana-server.service
# systemctl enable grafana-server.service
套餐詳情
第 5 步 - 登錄儀表板
首次登錄 Grafana:
安裝成功完成。
在本教程中,您學習瞭如何在 Ubuntu 20.04 上安裝 Grafana。