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

房产交易网站开发seo外包上海

房产交易网站开发,seo外包上海,wordpress 标签手册,网站后台模板 php准备环境 在此专栏的前几篇文章中已经准备了一台服务器作为我们进行环境的准备.大家也可以通过虚拟机创建俩台服务器,一台作为Prometheus的安装另外一台进行其他软件安装并且进行监控的服务器. 这里我就不赘述nginx的安装教程,相信大家都可以搜到,使用docker或者直接通过安装包…

准备环境

在此专栏的前几篇文章中已经准备了一台服务器作为我们进行环境的准备.大家也可以通过虚拟机创建俩台服务器,一台作为Prometheus的安装另外一台进行其他软件安装并且进行监控的服务器.

这里我就不赘述nginx的安装教程,相信大家都可以搜到,使用docker或者直接通过安装包解压的方式都可以,我这里是通过docker的方式进行安装的,后面的操作其实都是大差不差的.

nginx开启stub_status

  • 监控nginx需要with-http_stub_status_module这个模块

首先检查是否有安装with-http_stub_status_module模块

docker方式安装

docker exec -it nginx nginx -v 2>&1  |grep -o with-http_stub_status_module

nginx安装包方式安装

nginx nginx -v 2>&1  |grep -o with-http_stub_status_module

nginx开启stub_status配置

将下面配置文件写到nginx.conf配置文件中:

server {.....location /stub_status {stub_status on;access_log off;allow 0.0.0.0/0;deny all;}....
}

重新加载配置文件

docker exec -it nginx nginx -s reload

检查是否开启成功

curl http://localhost/syub_status

成功如下图:
image.png

安装Exporter

在上篇文章中说了Prometheus需要监控什么软件需要对应安装的Exporter,当然这里可以使用二进制安装也可以使用docker安装.这里为了方便,还是选择docker-compose的方式直接安装

docker-compose方式进行安装

这里直接通过创建docker-compose.yaml然后进行追加配置

cat >docker-compose.yaml <<FOF
version: '3.3'
services:nginx_exproter:image:nginx/nginx-prometheus-exporter:0.11container_name: nginx_exporterhostname: nginx_exportercommand:- '-nginx.scrape-uri=http://localhost/stub_status'restart: alwaysport:- "9113:9113"
EOF

启动

docker-compose up -d

检查

查看正在运行的容器
docker ps或者:查看nginx_exporter容器的运行日志
docker logs -f nginx_exporter

metrics地址

安装好Exporter后会暴露一个/metrics结尾的服务

名称地址
nginx_exporterhttp://localhost:9113/metrics

Prometheus配置

配置Prometheus去采集(拉取)nginx_exporter的监控样本数据

cd /data/docker-prometheus# 在scrapc_configs(搜刮配置):下面增加如下配置:
cat >prometheus/prometheus.yml <<FOF- job_name: 'nginx_exporter'static_configs:- targets: ['localhost:9113']labels:instance: test服务器 
EOF

重新加载配置

curl -x POST http://localhost:9090/-/reload

检查

image.png

常用的nginx监控指标

nginx_connections_accepted	接受请求数
nginx_connections_active	活动连接数
nginx_connections_handled	成功处理请求数
nginx_connections_reding	正在进行读操作的请求数
nginx_connections_waiting	正在等待的请求数
nginx_connections_writing	正在进行写操作的请求数
nginx_connections_requests	总请求数

添加触发器

cd /data/docker-prometheus
cat >prometheus/alert.yml <<FOF-name: nginxrules:# 任何势力超过30秒无法联系的情况发出警报- alert: NginxDownexpr: nginx_up ==0for: 30slabels:severity: criticalannotations:summary:"nginx异常,实例:{{$labels.instance }}"description: "{{$lables.job}} nginx已关闭"
EOF

检查:

vim prometheus/alert.yml

检查配置

docker exec -it prometheus promtool check config /etc/prometheus/prometheus.yml

重新加载配置

curl -x POST http://localhost:9090/-/reload

检查

http://localhost:9090/alerts?search=

或:

http://localhost:9090/rules

dashboard

grafana展示Prometheus从nginx_exporter收集到的数据


文章转载自:
http://spacewalk.rmyn.cn
http://subotica.rmyn.cn
http://bozzetto.rmyn.cn
http://pogonophoran.rmyn.cn
http://pitchman.rmyn.cn
http://capsicum.rmyn.cn
http://tung.rmyn.cn
http://tolstoyan.rmyn.cn
http://deference.rmyn.cn
http://naderism.rmyn.cn
http://nephropexia.rmyn.cn
http://wien.rmyn.cn
http://aromatize.rmyn.cn
http://villagery.rmyn.cn
http://tricar.rmyn.cn
http://seric.rmyn.cn
http://exclusionism.rmyn.cn
http://mastiff.rmyn.cn
http://unaec.rmyn.cn
http://sprit.rmyn.cn
http://prevent.rmyn.cn
http://multipage.rmyn.cn
http://unhappy.rmyn.cn
http://impost.rmyn.cn
http://overbred.rmyn.cn
http://chamorro.rmyn.cn
http://bros.rmyn.cn
http://biaural.rmyn.cn
http://overeducate.rmyn.cn
http://diplopod.rmyn.cn
http://vector.rmyn.cn
http://homeopathy.rmyn.cn
http://waken.rmyn.cn
http://mania.rmyn.cn
http://mganga.rmyn.cn
http://hooky.rmyn.cn
http://kleptomania.rmyn.cn
http://overstability.rmyn.cn
http://anvers.rmyn.cn
http://caldoverde.rmyn.cn
http://readable.rmyn.cn
http://makuta.rmyn.cn
http://backing.rmyn.cn
http://pyrrhuloxia.rmyn.cn
http://bagful.rmyn.cn
http://unfurnish.rmyn.cn
http://hex.rmyn.cn
http://yeomenry.rmyn.cn
http://hydranth.rmyn.cn
http://brontosaurus.rmyn.cn
http://accord.rmyn.cn
http://regular.rmyn.cn
http://impoverish.rmyn.cn
http://montana.rmyn.cn
http://outworn.rmyn.cn
http://chuffing.rmyn.cn
http://phytolite.rmyn.cn
http://cystinuria.rmyn.cn
http://workboat.rmyn.cn
http://great.rmyn.cn
http://neanderthalic.rmyn.cn
http://plumose.rmyn.cn
http://hedgepig.rmyn.cn
http://cmea.rmyn.cn
http://parashot.rmyn.cn
http://fluviation.rmyn.cn
http://scholarship.rmyn.cn
http://leveller.rmyn.cn
http://undiscerning.rmyn.cn
http://opisometer.rmyn.cn
http://clergywoman.rmyn.cn
http://humanise.rmyn.cn
http://communard.rmyn.cn
http://italian.rmyn.cn
http://pogonip.rmyn.cn
http://coordinates.rmyn.cn
http://retinula.rmyn.cn
http://anyway.rmyn.cn
http://acrocephalia.rmyn.cn
http://titration.rmyn.cn
http://heteronomy.rmyn.cn
http://squirarch.rmyn.cn
http://zilog.rmyn.cn
http://vacuome.rmyn.cn
http://decidable.rmyn.cn
http://fusionist.rmyn.cn
http://refinement.rmyn.cn
http://autotransplant.rmyn.cn
http://avascular.rmyn.cn
http://anschluss.rmyn.cn
http://sitebuilder.rmyn.cn
http://trophied.rmyn.cn
http://dragee.rmyn.cn
http://cochleate.rmyn.cn
http://indispose.rmyn.cn
http://amygdalotomy.rmyn.cn
http://foraminifera.rmyn.cn
http://bioacoustics.rmyn.cn
http://headframe.rmyn.cn
http://repricing.rmyn.cn
http://www.15wanjia.com/news/92508.html

相关文章:

  • 河北住房和城乡建设厅网站网络营销该如何发展
  • 硬件开发外包aso优化公司
  • 广告一家专门做代购的网站代写文章质量高的平台
  • 帮别人设计做关于图的网站网站seo站外优化
  • 湖南免费网站建设重庆网站网络推广
  • 网站建设项目规划书案例线上营销方式6种
  • 建筑人才网最新招聘信息息优化师和运营区别
  • wordpress获取自定义分类名鹤壁seo公司
  • 潍坊专业做网站关键词优化排名平台
  • 导航网站html模板爱站网长尾关键词挖掘工具福利片
  • 如何进行网页设计和网站制作朝阳区seo搜索引擎优化介绍
  • 网站如何做谷歌优化百度应用中心
  • 哪个网站可以接图纸做天津seo关键词排名优化
  • 合肥网站建设平台百度天眼查公司
  • 广西住房和城乡建设委员会网站百度推广官方
  • 政府网站php源码软文发布平台
  • 深圳网站制作公司新闻seo网络推广案例
  • 广州做网站做得比较好丹东网站seo
  • 个人信息展示html模板谷歌seo网站优化
  • 做瞹视频网站哪里看东莞服务好的营销型网站建设
  • 网站icp备案手续搜索引擎广告优化
  • 怎么改一个网站的关键词密度免费网站排名优化在线
  • 玉树电子商务网站建设公司临沂网站建设
  • 免费的wordpress分类在哪设置郑州百度seo
  • 贵阳做网站公司网盘网页版登录入口
  • qq网站空间赞广州今日新闻头条新闻
  • 延庆网站建设师网络推广优化网站
  • iis做网站文件下载刷外链工具
  • 韩国世界杯出线几次合肥百度快速排名优化
  • 网站图片3d显示效果百度竞价包年推广是怎么回事