Grafana服务安装并启动

Grafana服务安装并启动

1、介绍

Grafana是一个开源的可视化系统监控和警报工具包。

2、下载Grafana

介绍:Grafana是一个开源的可视化系统监控和警报工具包。

下载地址:https://mirrors.huaweicloud.com/grafana/

下载grafana-enterprise-11.2.0.linux-amd64.tar.gz

3、解压缩文件

执行命令tar -xvf grafana-enterprise-11.2.0.linux-amd64.tar.gz

4、启动Grafana服务

复制代码
nohup ./grafana-server --config.http.port=3000 > nohup.log 2>&1 &

默认端口3000

5、增加数据源,填写Prometheus访问地址

6、增加图表

增加2分钟内500错误次数图表条件查询SQL:

复制代码
sum by(job) (rate(http_server_requests_seconds_count{status="500"}[2m])) * 120

增加CPU使用率图表条件查询SQL:

复制代码
(1 - avg(irate(node_cpu_seconds_total{mode="idle"}[5m])) by (instance)) * 100

增加内存使用率图表条件查询SQL:

复制代码
avg((node_memory_MemTotal_bytes - node_memory_MemAvailable_bytes) / node_memory_MemTotal_bytes * 100) by (instance)

增加磁盘使用率图表条件查询SQL:

复制代码
avg(100 - (node_filesystem_avail_bytes{mountpoint="/data"} / node_filesystem_size_bytes{mountpoint="/data"} * 100)) by (instance)


相关推荐
oMcLin1 天前
如何在 Rocky Linux 8.7 上通过 Prometheus 与 Grafana 结合,提升大规模容器环境的监控与性能分析?
linux·grafana·prometheus
飞翔沫沫情1 天前
Prometheus 监控 ESXi 实战
grafana·prometheus·esxi·vcenter 监控·vsphere 监控
莫非王土也非王臣2 天前
Prometheus监控多个网站状态并推送到企业微信群机器人的完整方案
机器人·企业微信·prometheus
goodlook01233 天前
监控平台搭建-日志-alloy篇(八)
grafana·prometheus
goodlook01233 天前
监控平台搭建-日志-springboot直接推送loki篇(九)
java·spring boot·后端·grafana
三不原则3 天前
实战:Prometheus 监控 GPU 使用率,设置智能告警阈值
prometheus
新钛云服4 天前
Grafana Polystat面板与腾讯云可观测平台的深度融合实践
大数据·云计算·腾讯云·grafana
flying robot4 天前
Prometheus[2.33.3]grafana[12.3.1]监控安装
grafana·prometheus
flying robot4 天前
Grafana对xx-export监控和AlertManager 告警
grafana
一只懒鱼a7 天前
Prometheus和Grafana的安装和使用
grafana·prometheus