centos安装grafana + prometheus 服务监控

一、 简介

Grafana 是基于JS开发的,功能齐全的度量仪表盘和图形编辑器,帮助开发人员发现问题的工具。官网:https://grafana.com。

二、安装

1. grafana安装

1).官网地址有各个系统的安装介绍:https://grafana.com/grafana/download
 wget https://dl.grafana.com/enterprise/release/grafana-enterprise-9.2.0-1.x86_64.rpm
 yum install grafana-enterprise-9.2.0-1.x86_64.rpm
2). 启动
# 开机启动
/sbin/chkconfig --add grafana-server
# 启动
service grafana-server start
3). 访问 ip:3000

2. 安装

# 下载安装包
wget https://github.com/prometheus/prometheus/releases/download/v2.39.1/prometheus-2.39.1.linux-amd64.tar.gz
# 解压
tar -xvf prometheus-2.39.1.linux-amd64.tar.gz
# 移动位置
mv prometheus-2.39.1.linux-amd64/ /usr/local/prometheus/
# 使用默认配置文件启动
/usr/local/prometheus/prometheus --config.file="/usr/local/prometheus/prometheus.yml" &
# 确认端口
ss -anltp | grep 9090
# 浏览器查看服务请情况 http://服务器IP:9090/metrics

二、配置

在这里插入图片描述
在这里插入图片描述

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值