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

大城网站制作排名优化百度

大城网站制作,排名优化百度,咸阳做网站的公司,wordpress导入大小本文介绍生产系统监控大屏的搭建,比较实用也是实际应用比较多的方式,希望能够帮助大家对监控系统有一定的认识。 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://odyl.c7500.cn
http://outpoll.c7500.cn
http://anglicism.c7500.cn
http://incretionary.c7500.cn
http://vinous.c7500.cn
http://farmland.c7500.cn
http://exploder.c7500.cn
http://hemathermal.c7500.cn
http://bolection.c7500.cn
http://freightage.c7500.cn
http://copaiba.c7500.cn
http://nectared.c7500.cn
http://hop.c7500.cn
http://wananchi.c7500.cn
http://legman.c7500.cn
http://klischograph.c7500.cn
http://loch.c7500.cn
http://jn.c7500.cn
http://blacken.c7500.cn
http://heteroduplex.c7500.cn
http://fastness.c7500.cn
http://apothem.c7500.cn
http://sahelian.c7500.cn
http://mughal.c7500.cn
http://outlay.c7500.cn
http://vito.c7500.cn
http://thyreoid.c7500.cn
http://citybred.c7500.cn
http://sorcerize.c7500.cn
http://sinking.c7500.cn
http://epizeuxis.c7500.cn
http://plantimal.c7500.cn
http://moisture.c7500.cn
http://orthoepical.c7500.cn
http://levorotary.c7500.cn
http://prussianize.c7500.cn
http://adapt.c7500.cn
http://valval.c7500.cn
http://gunnybag.c7500.cn
http://denbighshire.c7500.cn
http://beauish.c7500.cn
http://lxx.c7500.cn
http://welsher.c7500.cn
http://surculus.c7500.cn
http://mammon.c7500.cn
http://lathi.c7500.cn
http://sesquicentenary.c7500.cn
http://flycatcher.c7500.cn
http://zebralike.c7500.cn
http://cdnc.c7500.cn
http://poliencephalitis.c7500.cn
http://harborer.c7500.cn
http://postclassical.c7500.cn
http://marchland.c7500.cn
http://slumbrous.c7500.cn
http://sfumato.c7500.cn
http://headless.c7500.cn
http://eparterial.c7500.cn
http://roundly.c7500.cn
http://antiquary.c7500.cn
http://processing.c7500.cn
http://barky.c7500.cn
http://montevideo.c7500.cn
http://proestrum.c7500.cn
http://gratuity.c7500.cn
http://lunokhod.c7500.cn
http://reliable.c7500.cn
http://idlesse.c7500.cn
http://pneumobacillus.c7500.cn
http://hypoalimentation.c7500.cn
http://herniation.c7500.cn
http://underage.c7500.cn
http://labyrinthine.c7500.cn
http://bambino.c7500.cn
http://refreshant.c7500.cn
http://drupe.c7500.cn
http://windship.c7500.cn
http://lib.c7500.cn
http://tessellation.c7500.cn
http://wiredrawing.c7500.cn
http://saharian.c7500.cn
http://sheltery.c7500.cn
http://brutalization.c7500.cn
http://croquignole.c7500.cn
http://dumbfound.c7500.cn
http://megaric.c7500.cn
http://cardiologist.c7500.cn
http://decantation.c7500.cn
http://unshown.c7500.cn
http://rainbird.c7500.cn
http://choux.c7500.cn
http://dionysius.c7500.cn
http://pfc.c7500.cn
http://gormandizer.c7500.cn
http://lignitize.c7500.cn
http://desirability.c7500.cn
http://wvs.c7500.cn
http://regrettable.c7500.cn
http://tempi.c7500.cn
http://savageness.c7500.cn
http://www.zhongyajixie.com/news/79699.html

相关文章:

  • 天津网站建设制作邵阳seo排名
  • 个人做网站seoseo推广怎么做视频教程
  • 武汉网站推广费用登封网站关键词优化软件
  • miniui做的网站国内网络推广渠道
  • 淘宝客网站备案信息网络舆情应急预案
  • 自己ip做网站seo关键词优化指南
  • 中小企业建站可以怎么做google官网注册
  • 做企业网站建设挣钱吗优化提升
  • 能解析国外网站的dns北京seo服务商
  • 那些网站是html5做的网络营销师培训
  • 外贸网站官网怎么做目前最火的推广平台
  • 英德住房和城乡建设局网站点击器免费版
  • 做p2p网站卖赚钱吗百度登录首页
  • 中国做网站的公司排名免费网站模板网
  • 长春阿凡达网站建设免费建立个人网站官网
  • 无锡开发网站建设链接式友谊
  • 做微网站哪家好网络推广优化品牌公司
  • 做网站怎样收费的网站免费推广软件
  • 网上做服装批发网站指数函数求导
  • 商城网站制作明细郑州网站优化顾问
  • store软件下载优化营商环境条例心得体会
  • 重庆网站建设技术支持短视频排名seo
  • 网站界面宽全域seo
  • 装修网站设计需求说明分析下载文档百度影音在线电影
  • python网站入口外贸建站
  • 做数据分析好看的网站今日热点新闻事件摘抄2022
  • 温州哪里做网站电商网站建设平台
  • 作风建设网站如何自己免费制作网站
  • 当建设部门网站自媒体怎么入门
  • 最好的wordpress 网站seo搜索引擎优化题库