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)


相关推荐
蓝胖的四次元口袋15 小时前
Prometheus+Grafana知识梳理(2)
grafana·prometheus
Cheney Pan1 天前
第8篇 关键指标分析方法:RED/USE 与黄金信号
prometheus
打工仔折腾 AI2 天前
多台服务器日志分散难查?用Promtail+Loki+Grafana搭建集中检索平台
服务器·人工智能·后端·python·性能优化·django·grafana
Cheney Pan2 天前
第7篇 业务数据监控:SQL Exporter 与自定义业务指标
prometheus·exporter
Cheney Pan3 天前
第4篇 Spring Boot 应用监控:Micrometer 与 JVM 指标
jvm·spring boot·后端·prometheus
飞鸟真人3 天前
应用性能监测(APM)之 (四)Prometheus与Metrics集群存储
prometheus
Cheney Pan3 天前
第09篇 告警体系设计:Alertmanager 路由与告警治理
prometheus
蓝胖的四次元口袋4 天前
Prometheus+Grafana知识梳理(1)
grafana·prometheus
晨陌y4 天前
CentOS 7 部署 mysqld_exporter:MySQL 指标采集、Prometheus 告警与远程监控
mysql·centos·prometheus
倔强的小石头_5 天前
Ubuntu部署Prometheus与Alertmanager:systemd配置、告警对接及cpolar远程访问
数据库·ubuntu·prometheus