Prometheus+node_exporter+grafana

Prometheus+node_exporter+grafana

部署环境


IP


系统


组件


10.172.112.1(server)

10.52.210.223


CentOS Linux release 7.2.1511 (Core)


Prometheusnode_exporter

grafana


10.52.210.224


CentOS Linux release 7.2.1511 (Core)


node_exporter

安装步骤

1. prometheus

1-1 解压

tar -xvf prometheus-2.12.0.linux-amd64.tar.gz

cd prometheus-2.12.0.linux-amd64/

1-2查看prometheus版本

./prometheus –version(查看版本)

1-3 添加监控项

vim prometheus.yml添加监控项

1-4          启动prometheus

nohup ./prometheus --config.file=prometheus.yml &启动prometheus

2. 安装node_exporter(客户端安装)

2-1 解压node_exporter

Tar -xvf node_exporter-0.18.1.linux-amd64.tar.gz

Cd node_exporter-0.18.1.linux-amd64/

2-2  启动node_exporter

nohup ./node_exporter &启动node_exporter

2-3 访问prometheus界面

点击Statusc菜单下,configuration Rule  Targets 等

Configuration展示prometheus.Yml配置文件

3. 安装grafana

3-1  解压grafana

tar -xvf grafana-2.5.0.linux-x64.tar.gz

cd grafana-2.5.0/

3-2 运行grafana界面

./bin/grafanf-server  web

nohup ./bin/grafana-server web&

3-3 访问grafana界面

http://10.52.210.223/3000

admin/admin

4. 导入模板grafana

4-1 添加数据源与自带模块

Add data source----->http://10.52.210.223:9090-->dashboards-->prometheus2.0-->sace&test

http://10.52.210.223:9090

4-2 添加node-exporter-server-metrics模块

下载方法:https://grafana.com/dashboards/405-->Dashboards-->点击搜索栏node-exporter-server-metrics -->点击第一个进去--> version-->download

在grafana的Dashboard中导入模板的json文件

4-3. 添加1-node-exporter-0-16-for-prometheus模块(linux监控模块如:CPU MEM  磁盘使用率等)

此监控模板基于node_exporter 可以更好的展示多项基本监控项

模板的url  https://grafana.com/dashboards/8919

在grafana所在的server安装饼状图插件,并重启grafana

饼状图地址:

http://grafana.com/grafana/plugins/grafana-piechart-panel

Cd  /usr/local/grafana/bin

./grafana-cli plugins install grafana-piechart-panel

Killall  grafana-server

Nohup./grafana-server restart &

图像界面配置

4. 遇到的问题:

4-1饼状图总磁盘信息无法显示

处理方法:

4-1-1 安装插件grafana-piechart-panel 将包下载到本地若无法安装成功

4-1-2 更改配置文件:defaults.ini

添加:

[plugin.piechart]

path = /var/lib/grafana/plugins/grafana-piechart-panel/(grafana-piechart-panel存放目录)

1-3 重启grafana程序

原文地址:https://www.cnblogs.com/qq521/p/11676774.html

时间: 2024-08-30 08:16:29

Prometheus+node_exporter+grafana的相关文章

Prometheus+Node_exporter+Grafana+Alertmanager 监控部署

一.Prometheus 安装及配置 1.下载及解压安装包 cd /usr/local/src/ export VER="2.13.1" wget https://github.com/prometheus/prometheus/releases/download/v${VER}/prometheus-${VER}.linux-amd64.tar.gz mkdir -p /data0/prometheus groupadd prometheus useradd -g prometheu

CentOS7 prometheus +node_exporter+Grafana 安装篇

一.下载与安装 1.prometheus下载与安装 1)下载 https://prometheus.io/download/ 2)安装 上传prometheus-2.15.2.linux-amd64.tar.gz tar -xvf prometheus-2.15.2.linux-amd64.tar.gz mkdir /u01/soft/prometheus/ groupadd prometheus useradd -g prometheus prometheus -d /u01/soft/pro

利用Prometheus和Grafana监控MySQL

一. Prometheus 是一个开源的服务监控系统和时间序列数据库.: 官方GitHub地址为:https://github.com/prometheus/prometheus 官方地址:https://prometheus.io/ 官方拓扑图如下 特性: 高维度数据模型 自定义查询语言 可视化数据展示 高效的存储策略 易于运维 提供各种客户端开发库 警告和报警 数据导出 二.安装Prometheus(服务器环境为Centos7.2,本实验服务端跟被监控MySQL在同一台服务器) 前提条件请关

prometheus+node_exporter监控系统搭建

prometheus+node_exporter监控系统搭建: 注:可结合icinga2.telegraf一起用,Disk IOs.Disk Throughout是前2个没有的,traffic监控也可用这个 参考网址:http://blog.51cto.com/youerning/2050543 下载网址:https://prometheus.io/download 服务器端: tar zxfv prometheus-2.4.0.linux-amd64.tar.gz mv prometheus-

基于Prometheus和Grafana的监控平台 - 环境搭建

相关概念 微服务中的监控分根据作用领域分为三大类,Logging,Tracing,Metrics. Logging - 用于记录离散的事件.例如,应用程序的调试信息或错误信息.它是我们诊断问题的依据.比如我们说的ELK就是基于Logging. Metrics - 用于记录可聚合的数据.例如,队列的当前深度可被定义为一个度量值,在元素入队或出队时被更新:HTTP 请求个数可被定义为一个计数器,新请求到来时进行累.prometheus专注于Metrics领域. Tracing - 用于记录请求范围内

docker stack 部署容器监控方案(cAdvisor、Prometheus、Grafana)

=============================================== 2018/7/8_第1次修改                       ccb_warlock =============================================== 最近正式业务终于开始上容器,虽然前期通过swarm解决了服务部署和扩展等问题,但是针对容器监控方面缺乏经验甚至是无从入手,因为没有监控数据我根本不知道目前给的资源限制是否合理,业务量激增的时候资源是否可以支撑负

使用Helm部署Prometheus和Grafana监控Kubernetes

使用Helm部署Prometheus和Grafana监控Kubernetes [TOC] 1. 环境说明 可用的kubernetes集群 可用的持久化存储 可用的helm 这里我们使用kubeapps管理charts. 2. 安装chart 安装时,适当修改values.yaml里的参数以适应自身的环境.我是设置持久化存储.ingress和证书secret. 安装Prometheus 安装成功后,注意提示页面的提示.同一namespace里,引用域名可只使用前面一段. 同理,安装stable/m

14、Docker监控方案(Prometheus+cAdvisor+Grafana)

上一篇文章我们已经学习了比较流行的cAdvisor+InfluxDB+Grafana组合进行Docker监控.这节课来学习Prometheus+cAdvisor+Grafana组合. cAdvisor是专门用来采集数据的工具,也是google公司的一款开源产品,Grafana则是前端展示,支持多种数据源,定制非常灵活.而prometheus则作为数据源. 整体架构图如下: 一.prometheus 1.Prometheus介绍 Prometheus(普罗米修斯)是一个最初在SoundCloud上

k8s部署prometheus和grafana监控pod和机器资源(11)

之前咱们有讲过k8s的网络模式,一定要多练习今天我们来讲解一下监控具体的yaml我已经放到百度网盘了,大家可以直接下载使用链接:https://pan.baidu.com/s/16LLvtAM5EJaiy0AnmMTjjQ 提取码:xw54 grafana这个工具是一个图形化的界面,主要负责展示信息,功能非常强大,可以结合prometheus.zabbix.进行收集暂时,另外包括mysql,zk.etcd,nginx这些数据都可以收集展示prometheus是一个时序的数据库,什么是时序的数据库