跳至主要內容

Grafana安装

zhengcog...大约 1 分钟监控服务器

本教程在centos7.9下操作

Grafana介绍

Grafana是一个监控用的仪表盘工具,主要处理监控数据的可视化,附带着能做一些简单的告警功能。

官方演示DEMOopen in new window

开始安装

官方下载说明open in new window

本教程安装10.0.3版本,使用yum安装

yum install -y https://dl.grafana.com/enterprise/release/grafana-enterprise-10.0.3-1.x86_64.rpm

systemctl daemon-reload
systemctl enable grafana-server.service
systemctl start grafana-server.service

提示

配置文件所在目录:/etc/grafana/

修改配置文件:database 支持多副本部署

启动/停止/重启服务

启动后,端口默认为3000,可在/etc/grafana/grafana.ini配置文件中指定端口号,本教程端口号为:13001

# 启动服务
systemctl start grafana-server.service
# 停止服务
systemctl stop grafana-server.service
# 重启服务
systemctl restart grafana-server.service
# 查看服务状态
systemctl status grafana-server.service
# 设置为开机启动
systemctl enable grafana-server.service
# 取消设置为开机启动
systemctl disable grafana-server.service

浏览器访问

地址:http://localhost:13001open in new window 默认帐号密码 admin admin 首次访问会提示重置密码

dashboard下载

下载地址: https://grafana.com/grafana/dashboards/open in new window

复制面板ID,在管理页面导入面板的时候填入id,选择数据源后即可新增面板

上次编辑于:
贡献者: Hyman
评论
  • 按正序
  • 按倒序
  • 按热度
Powered by Waline v2.15.5