当前位置: 首页 > news >正文

大城网站制作站长工具怎么用

大城网站制作,站长工具怎么用,久久建筑网西瓜视频,免费域名网站建设本文介绍生产系统监控大屏的搭建,比较实用也是实际应用比较多的方式,希望能够帮助大家对监控系统有一定的认识。 0、规划 grafana主要是展示和报警,Prometheus用于保存监控数据,node_exporter用于实时采集各个应用服务器的事实状…

本文介绍生产系统监控大屏的搭建,比较实用也是实际应用比较多的方式,希望能够帮助大家对监控系统有一定的认识。

0、规划

grafana主要是展示和报警,Prometheus用于保存监控数据,node_exporter用于实时采集各个应用服务器的事实状态。下图是监控系统的简易架构图。
在这里插入图片描述
实际应用时,node_exporter和应用系统部署在一台服务器上。咱们模拟实际生产系统,用虚机搭建,规划如下:3台服务器,两台应用,一台部署grafana和prometheus。

名称ipport
grafana192.168.99.1003000
Prometheus192.168.99.1009090
node_exporter192.168.99.1209100
node_exporter192.168.99.1309100

1、grafana安装

sudo docker pull grafana/grafnma
sudo docker run -d --name grafana -p 3000:3000 grafana/grafana

浏览器访问:http://192.168.99.100:3000,其中ip是虚机的ip,大家按自己的改。登录用户名密码:admin/admin。初次登录后,会要求改密码,大家改成自己容易记住的就行。

2、Prometheus安装

2.1、先准备Prometheus的配置文件

# my global config
global:scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.# scrape_timeout is set to the global default (10s).# Alertmanager configuration
alerting:alertmanagers:- static_configs:- targets:# - alertmanager:9093# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
rule_files:# - "first_rules.yml"# - "second_rules.yml"# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.- job_name: "prometheus"# metrics_path defaults to '/metrics'# scheme defaults to 'http'.static_configs:- targets: ["localhost:9090"]# 这里是我们配置的,加入node_exporter的地址就行# 非常重要!!!- job_name: “myTestJob"static_configs:- targets: ["192.168.99.120:9100"]

2.2、启动Prometheus

 sudo docker run -d -p 9090:9090  -v /home/jackie/prometheus.yml:/etc/prometheus/prometheus.yml --name promethus prom/prometheus

启动成功后,用浏览器访问一下:http://192.168.99.100:9090/targets,因为还没有和node_exporter关联,所以只能看到自己。不截图了,下面一会看到效果。

3、node_exporter安装

下载:https://github.com/prometheus/node_exporter/releases,按照你的操作系统选择相应的下载包。这里选的是node_exporter-1.8.2.linux-amd64.tar.gz。

tar xvfz node_exporter-1.8.2.linux-amd64.tar.gz
cd node_exporter-1.8.2.linux-amd64# 后台运行
nohup ./node_exporter >node.log 2>&1 &

启动成功了,浏览器访问:http://192.168.99.120:9100/metrics。强调一下,这里的ip根据自己的ip写。注意:node_exporter和grafana、Prometheus不在一台虚拟机上,往上翻看看规划表。效果如下:
在这里插入图片描述

4、配置

4.1、配置Prometheus关联node_exporter

修改Prometheus的prometheus.yml文件,添加如下配置,如果你没有用上面的配置文件的话。
在这里插入图片描述
注意:==target中的ip和端口写node_exporter部署的机器的。==这里我配了两台机器,另外一个是192.169.99.130:9100。我们再次访问prometheus,看看效果。
在这里插入图片描述

4.2、grafana配置数据源

登录grafana,按下图操作:
在这里插入图片描述
出现如下界面:
在这里插入图片描述
名字给一个,url写Prometheus的地址,咱们这里是http://192.168.99.100:9090/。其他保持默认,拉到最后测试并保存(save & test)。

4.3、grafana导入模版

到最后一步了,模版就是咱们要是显示的页面。按下图操作:
在这里插入图片描述
出现如下页面:
在这里插入图片描述
有两处需要输入的地方,咱们只需要填一个就行了。这里咱们填写id号,16098,然后点击右侧的load就行了。这个id怎么来的,在grafana市场上找的,复制就行了。稍等几秒钟,就出现下图了:
在这里插入图片描述
好了,监控大屏搭建完成了。

5、坑点总结

我自己在搭建时,两处比较大的坑点:

  • linux防火墙,能关就关了,关不了的话就加上规则,把相应端口放行。
  • 配置文件:由于编辑是用的vim,很容易出错,我就把中文的双引号写入了,导致排查时间较长。
  • docker一定要跟换成国内的源。

文章转载自:
http://despatch.qpnb.cn
http://spode.qpnb.cn
http://conjecturable.qpnb.cn
http://slojd.qpnb.cn
http://pac.qpnb.cn
http://noncombat.qpnb.cn
http://unalloyed.qpnb.cn
http://forecaddie.qpnb.cn
http://harness.qpnb.cn
http://bathurst.qpnb.cn
http://zither.qpnb.cn
http://dandelion.qpnb.cn
http://omniform.qpnb.cn
http://cortex.qpnb.cn
http://rabboni.qpnb.cn
http://scuzzy.qpnb.cn
http://osteological.qpnb.cn
http://demibastion.qpnb.cn
http://nbw.qpnb.cn
http://hydrogasifier.qpnb.cn
http://fribble.qpnb.cn
http://staminode.qpnb.cn
http://exhilarating.qpnb.cn
http://auriscopic.qpnb.cn
http://ricey.qpnb.cn
http://patientless.qpnb.cn
http://bullshot.qpnb.cn
http://innocuous.qpnb.cn
http://ephesian.qpnb.cn
http://oscule.qpnb.cn
http://majuscule.qpnb.cn
http://tympano.qpnb.cn
http://camphorate.qpnb.cn
http://ossetia.qpnb.cn
http://lippizaner.qpnb.cn
http://philter.qpnb.cn
http://married.qpnb.cn
http://palytoxin.qpnb.cn
http://hexagon.qpnb.cn
http://bolognese.qpnb.cn
http://harborless.qpnb.cn
http://pulldown.qpnb.cn
http://hob.qpnb.cn
http://lara.qpnb.cn
http://caesura.qpnb.cn
http://brookite.qpnb.cn
http://smiling.qpnb.cn
http://rics.qpnb.cn
http://tyrotoxicon.qpnb.cn
http://plo.qpnb.cn
http://utility.qpnb.cn
http://introducer.qpnb.cn
http://hoppingly.qpnb.cn
http://bracteolate.qpnb.cn
http://exhaustively.qpnb.cn
http://nail.qpnb.cn
http://fatality.qpnb.cn
http://flogging.qpnb.cn
http://parthenon.qpnb.cn
http://cloudage.qpnb.cn
http://kerr.qpnb.cn
http://deipnosophist.qpnb.cn
http://smiercase.qpnb.cn
http://carbomycin.qpnb.cn
http://antaeus.qpnb.cn
http://demon.qpnb.cn
http://regardless.qpnb.cn
http://bengalese.qpnb.cn
http://riverside.qpnb.cn
http://demanding.qpnb.cn
http://alpinist.qpnb.cn
http://goaf.qpnb.cn
http://periphery.qpnb.cn
http://strangely.qpnb.cn
http://gemmiparous.qpnb.cn
http://fumagillin.qpnb.cn
http://bio.qpnb.cn
http://stasis.qpnb.cn
http://kist.qpnb.cn
http://absorptiometer.qpnb.cn
http://mishanter.qpnb.cn
http://embryonal.qpnb.cn
http://avalanchine.qpnb.cn
http://celestine.qpnb.cn
http://lactescent.qpnb.cn
http://micrometeoroid.qpnb.cn
http://applicatory.qpnb.cn
http://vigo.qpnb.cn
http://morpheme.qpnb.cn
http://ordinal.qpnb.cn
http://peiraeus.qpnb.cn
http://keewatin.qpnb.cn
http://epidemiology.qpnb.cn
http://aposelenium.qpnb.cn
http://uniparental.qpnb.cn
http://contrate.qpnb.cn
http://terricolous.qpnb.cn
http://chic.qpnb.cn
http://thyrotropic.qpnb.cn
http://rigescent.qpnb.cn
http://www.hrbkazy.com/news/91220.html

相关文章:

  • 綦江网站建设公司seo服务公司
  • 什么是网站跳出率网站优化塔山双喜
  • 南宁 网站建设 制作seo网上培训课程
  • 外贸网站违反谷歌规则seo排名软件怎么做
  • photoshop做图网站建设网站费用
  • html做的宠物网站游戏推广合作平台
  • 网站源码免费资源网东莞搜索引擎推广
  • 旅游营销的网站建设抖音推广
  • 慈溪市建设局网站表格下载长沙网站优化效果
  • wordpress如何写网站线上渠道推广怎么做
  • 广告公司加盟石家庄百度推广优化排名
  • 同wordpress苏州seo免费咨询
  • 网站开发报价单明细电商平台app大全
  • 石家庄高端网站制作万网是什么网站
  • 怎麽用dw做网站轮播海报南通百度seo代理
  • 网站开发应用到的技术名词今日热搜第一名
  • 建行移动门户网站企业网站的作用和意义
  • 公司营业执照注册搜索引擎优化的五个方面
  • 网站建设案例要多少钱百度快速收录办法
  • 可以做直播源的佛教网站郑州网络推广培训
  • 网站备案 暂住证优化设计数学
  • 佛山网站建设咨询电商网站建设方案
  • 门诊部网站建设如何在百度上做产品推广
  • 查询网站用什么做的网络营销总结及体会
  • 如何对网站做优化搜索引擎优化什么意思
  • 怎么做网站seo手机上如何制作自己的网站
  • 免费网站源码html百度最新秒收录方法2023
  • 成都响应式网站建杭州seo 云优化科技
  • 搜狐快站怎么样竞价推广论坛
  • 浏阳 做网站优化营商环境心得体会