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)


相关推荐
梁正雄10 小时前
17、grafana安装
运维·grafana·prometheus·监控
webrtc&ffmpeg_study1 天前
监控平台 Grafana+Prometheus+node_exporter初识
grafana·prometheus
zhixingheyi_tian1 天前
prometheus + grafana
grafana·prometheus
Yeats_Liao3 天前
时序数据库系列(八):InfluxDB配合Grafana可视化
数据库·后端·grafana·时序数据库
勇敢打工人3 天前
Alertmanager 安装与配置指南
prometheus
牛奶咖啡133 天前
zabbix结合grafana打造自定义炫酷监控界面实战
zabbix·grafana·grafana的安装配置·grafana的插件安装配置·grafana仪表盘的搜索导入·grafana监控zabbix·grafana配置图表
水岸齐天3 天前
prometheus和Grafana介绍
grafana·prometheus
oneslide3 天前
Kubernetes V1.24+ & Docker运行时 grafana容器指标显示异常
docker·kubernetes·grafana
cui_win3 天前
Prometheus实战教程 05 - 告警通知实现 - 邮件 + 钉钉 + 自定义告警模板
钉钉·prometheus·邮件通知
杰克逊的日记5 天前
通过Prometheus对GPU集群进行监控以及搭建(小型集群)
prometheus·gpu算力·gpu服务器监控