栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

grafana+promethus安装使用

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

grafana+promethus安装使用

1、安装grafana

官网地址:Download Grafana | Grafana Labs

centos为例:

wget https://dl.grafana.com/enterprise/release/grafana-enterprise-8.3.6-1.x86_64.rpm
sudo yum install grafana-enterprise-8.3.6-1.x86_64.rpm

grafana默认登录密码是admin:admin

grafana监控web界面默认监听3000端口,访问http://ip:3000可查看监控
 

 2、promethus安装

官网地址:Download | Prometheus

下载对应操作系统的安装包(centos为例)

wget https://github.com/prometheus/prometheus/releases/download/v2.33.3/prometheus-2.33.3.linux-amd64.tar.gz

 解压


tar zxvf prometheus-2.33.3.linux-amd64.tar.gz

修改配置文件prometheus.yml

cd prometheus-2.33.3.linux-amd64

vim prometheus.yml 根据需要修改scrape_configs

 启动promethus(默认监听9090端口,若修改端口号可以增加选项--web.listen-address=:9091)

./prometheus

启动成功后可以访问http://ip:9090访问

3、使用

在grafana管理界面添加promethus数据源

通过configuration->Data sources添加数据源,数据源选择Promethus

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/740795.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号