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

网站优化推广价格门头沟网站建设公司

网站优化推广价格,门头沟网站建设公司,龙岩几个县,商业类网站Cadvisor PrometheusGrafana 1.1、Cadvisor产品简介 Cadvisor是Google开源的一款用于展示和分析容器运行状态的可视化工具。通过在主机上运行Cadvisor用户可以轻松的获取到当前主机上容器的运行统计信息#xff0c;并以图表的形式向用户展示。 1.2、安装docker-ce [rootloc…Cadvisor PrometheusGrafana 1.1、Cadvisor产品简介 Cadvisor是Google开源的一款用于展示和分析容器运行状态的可视化工具。通过在主机上运行Cadvisor用户可以轻松的获取到当前主机上容器的运行统计信息并以图表的形式向用户展示。 1.2、安装docker-ce [rootlocalhost ~]# iptables -F [rootlocalhost ~]# setenforce 0 setenforce: SELinux is disabled [rootlocalhost ~]# systemctl stop firewalld[rootlocalhost ~]# cd /etc/yum.repos.d/ [rootlocalhost ~]# wget http://mirrors.aliyun.com/repo/Centos-7.repo[rootlocalhost ~]# yum -y install yum-utils device-mapper-persistent-data lvm2 [rootlocalhost ~]# yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo [rootlocalhost ~]# yum -y install docker-ce [rootlocalhost ~]# systemctl start docker [rootlocalhost ~]# systemctl enable docker [rootlocalhost ~]# docker versionClient: Docker Engine - CommunityVersion: 24.0.5API version: 1.43Go version: go1.20.6Git commit: ced0996Built: Fri Jul 21 20:39:02 2023OS/Arch: linux/amd64Context: defaultServer: Docker Engine - CommunityEngine:Version: 24.0.5API version: 1.43 (minimum version 1.12)Go version: go1.20.6Git commit: a61e2b4Built: Fri Jul 21 20:38:05 2023OS/Arch: linux/amd64Experimental: falsecontainerd:Version: 1.6.21GitCommit: 3dce8eb055cbb6872793272b4f20ed16117344f8runc:Version: 1.1.7GitCommit: v1.1.7-0-g860f061docker-init:Version: 0.19.0GitCommit: de40ad0阿里云镜像加速器 阿里云登录 - 欢迎登录阿里云安全稳定的云计算服务平台欢迎登录阿里云全球领先的云计算及人工智能科技公司阿里云为200多个国家和地区的企业、开发者和政府机构提供云计算基础服务及解决方案。阿里云云计算、安全、大数据、人工智能、企业应用、物联网等云计算服务。https://cr.console.aliyun.com/ [rootlocalhost ~]# cat END /etc/docker/daemon.json {registry-mirrors:[ https://nyakyfun.mirror.aliyuncs.com ] } END[rootlocalhost ~]# systemctl daemon-reload[rootlocalhost ~]# systemctl restart docker 下载组件镜像 [rootlocalhost ~]# docker pull tutum/influxdbUsing default tag: latest latest: Pulling from tutum/influxdb a3ed95caeb02: Pull complete 23efb549476f: Pull complete aa2f8df21433: Pull complete ef072d3c9b41: Pull complete c9f371853f28: Pull complete a248b0871c3c: Pull complete 749db6d368d0: Pull complete db2492acfcc3: Pull complete b7e7d2e12d53: Pull complete 4272a53eef10: Pull complete 9b2fefdb5321: Pull complete Digest: sha256:5b7c5e318303ad059f3d1a73d084c12cb39ae4f35f7391b79b0ff2c0ba45304b Status: Downloaded newer image for tutum/influxdb:latest docker.io/tutum/influxdb:latest[rootlocalhost ~]# docker pull google/cadvisorUsing default tag: latest latest: Pulling from google/cadvisor ff3a5c916c92: Pull complete 44a45bb65cdf: Pull complete 0bbe1a2fe2a6: Pull complete Digest: sha256:815386ebbe9a3490f38785ab11bda34ec8dacf4634af77b8912832d4f85dca04 Status: Downloaded newer image for google/cadvisor:latest docker.io/google/cadvisor:latest[rootlocalhost ~]# docker pull grafana/grafanaUsing default tag: latest latest: Pulling from grafana/grafana 97518928ae5f: Pull complete 5b58818b7f48: Pull complete d9a64d9fd162: Pull complete 4e368e1b924c: Pull complete 867f7fdd92d9: Pull complete 387c55415012: Pull complete 07f94c8f51cd: Pull complete ce8cf00ff6aa: Pull complete e44858b5f948: Pull complete 4000fdbdd2a3: Pull complete Digest: sha256:18d94ae734accd66bccf22daed7bdb20c6b99aa0f2c687eea3ce4275fe275062 Status: Downloaded newer image for grafana/grafana:latest docker.io/grafana/grafana:latest[rootlocalhost ~]# docker imagesREPOSITORY TAG IMAGE ID CREATED SIZE grafana/grafana latest 9b957e098315 20 months ago 275MB google/cadvisor latest eb1210707573 4 years ago 69.6MB tutum/influxdb latest c061e5808198 6 years ago 290MB创建自定义网络 [rootlocalhost ~]# docker network create monitorbfe09a56d338b3173da008204dac13e46873ab8c46601683bba6457178e7dbcc[rootlocalhost ~]# docker network lsNETWORK ID NAME DRIVER SCOPE dbe5fb2353e8 bridge bridge local fc4521838733 host host local bfe09a56d338 monitor bridge local 4e2c57eec484 none null local1.3、部署Cadvisor 被监控主机上部署Cadvisor容器 [rootlocalhost ~]# docker run -d \--volume/:/rootfs:ro \--volume/var/run:/var/run:ro \--volume/sys:/sys:ro \--volume/var/lib/docker/:/var/lib/docker:ro \--volume/dev/disk/:/dev/disk:ro \--publish8080:8080 \--detachtrue \--namecadvisor \google/cadvisor:latest39067a18d264733e884272d932cd1d2bf1ae279092729aca01cfc0f12fa2571d1.4、访问cAdvisor页面 访问http://192.168.2.118:8080 cAdvisor页面可以看到收集到的数据 1.5、Prometheus产品简介 Prometheus是一个最初在SoundCloud上构建的开源系统监视和警报工具包。自2012年成立以来很多公司和组织都采用了Prometheus该项目拥有非常活跃的开发者和用户社区。 它现在是一个独立的开源项目可以独立于任何公司进行维护。 为了强调这一点并阐明项目的治理结构Prometheus于2016年加入Cloud Native Computing Foundation云原生基金会作为继Kubernetes之后的第二个托管项目。 Prometheus的主要特征有 多维度数据模型-由指标键值对标识的时间序列数据组成PromQL一种灵活的查询语言不依赖分布式存储; 单个服务器节点是自治的以HTTP方式通过pull模型拉取时间序列数据支持通过中间网关推送时间序列数据通过服务发现或者静态配置来发现目标服务对象支持多种多样的图表和界面展示 1.6、部署Prometheus  [rootlocalhost ~]# docker pull prom/prometheusUsing default tag: latest latest: Pulling from prom/prometheus 3cb635b06aa2: Pull complete 34f699df6fe0: Pull complete 33d6c9635e0f: Pull complete f2af7323bed8: Pull complete c16675a6a294: Pull complete 827843f6afe6: Pull complete 3d272942eeaf: Pull complete 7e785cfa34da: Pull complete 05e324559e3b: Pull complete 170620261a59: Pull complete ec35f5996032: Pull complete 5509173eb708: Pull complete Digest: sha256:cb9817249c346d6cfadebe383ed3b3cd4c540f623db40c4ca00da2ada45259bb Status: Downloaded newer image for prom/prometheus:latest docker.io/prom/prometheus:latest先准备配置 [rootlocalhost ~]# vim /tmp/prometheus.yml # 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 its Prometheus itself. scrape_configs:# The job name is added as a label jobjob_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]- job_name: docker ##定义一个叫docker的组static_configs: - targets: [192.168.2.118:8080] ##填写一个或多个cadvisor的主机地址用逗号隔开 运行容器 [rootlocalhost ~]# docker run -d \ --nameprometheus -p 9090:9090 \ -v /tmp/prometheus.yml:/etc/prometheus/prometheus.yml \-v /etc/localtime:/etc/localtime \ prom/prometheus402b019bb5fd489911f925ae717e87994e68ec7b836f37bc106de8f3c2801cbc#如果起不来就重启一下docker再用docker restart $(docker ps -qa) 重启所有容器 1.7、访问prometheus页面 http://192.168.2.118:9090 看到docker组状态up为正常 查询项是可以查到数据的 1.8、部署Granfana [rootlocalhost ~]# docker run -d \--namegrafana \-p 3000:3000 \grafana/grafana42b131dbf96ac1b613c6b8ac305c94eb322b8cf6b320f48990ad059bba5ba0d61.9、配置Granfana 访问http://192.168.2.118:3000默认账户admin 密码 admin首次登陆需要修改密码 配置数据源 导入模板 选择对应的数据源点击导入就可以看到被监控主机的数据 准备测试容器 [rootlocalhost ~]# docker run --namenginx -d -p 80:80 nginx d2000b50c5a035fde255c5f488fde43653733806a36167c4b73460a0c74d27f6到此Cadvisor PrometheusGrafana基本架构部署完毕
文章转载自:
http://www.morning.dqwykj.com.gov.cn.dqwykj.com
http://www.morning.hbqfh.cn.gov.cn.hbqfh.cn
http://www.morning.ysnbq.cn.gov.cn.ysnbq.cn
http://www.morning.wjmb.cn.gov.cn.wjmb.cn
http://www.morning.byrlg.cn.gov.cn.byrlg.cn
http://www.morning.rqhdt.cn.gov.cn.rqhdt.cn
http://www.morning.rfqkx.cn.gov.cn.rfqkx.cn
http://www.morning.yqqxj26.cn.gov.cn.yqqxj26.cn
http://www.morning.pkrb.cn.gov.cn.pkrb.cn
http://www.morning.rnnwd.cn.gov.cn.rnnwd.cn
http://www.morning.jrksk.cn.gov.cn.jrksk.cn
http://www.morning.srgnd.cn.gov.cn.srgnd.cn
http://www.morning.yrdn.cn.gov.cn.yrdn.cn
http://www.morning.ljbpk.cn.gov.cn.ljbpk.cn
http://www.morning.dsncg.cn.gov.cn.dsncg.cn
http://www.morning.nssjy.cn.gov.cn.nssjy.cn
http://www.morning.gghhmi.cn.gov.cn.gghhmi.cn
http://www.morning.nbqwt.cn.gov.cn.nbqwt.cn
http://www.morning.rhqn.cn.gov.cn.rhqn.cn
http://www.morning.tnwwl.cn.gov.cn.tnwwl.cn
http://www.morning.qtkdn.cn.gov.cn.qtkdn.cn
http://www.morning.lywcd.cn.gov.cn.lywcd.cn
http://www.morning.jzsgn.cn.gov.cn.jzsgn.cn
http://www.morning.gbcnz.cn.gov.cn.gbcnz.cn
http://www.morning.gydth.cn.gov.cn.gydth.cn
http://www.morning.khclr.cn.gov.cn.khclr.cn
http://www.morning.tzzxs.cn.gov.cn.tzzxs.cn
http://www.morning.xkwrb.cn.gov.cn.xkwrb.cn
http://www.morning.drcnn.cn.gov.cn.drcnn.cn
http://www.morning.rksnk.cn.gov.cn.rksnk.cn
http://www.morning.kbbmj.cn.gov.cn.kbbmj.cn
http://www.morning.qsyyp.cn.gov.cn.qsyyp.cn
http://www.morning.qflwp.cn.gov.cn.qflwp.cn
http://www.morning.zrqs.cn.gov.cn.zrqs.cn
http://www.morning.przc.cn.gov.cn.przc.cn
http://www.morning.nxfuke.com.gov.cn.nxfuke.com
http://www.morning.rxkl.cn.gov.cn.rxkl.cn
http://www.morning.hxmqb.cn.gov.cn.hxmqb.cn
http://www.morning.ltdrz.cn.gov.cn.ltdrz.cn
http://www.morning.rljr.cn.gov.cn.rljr.cn
http://www.morning.mnwsy.cn.gov.cn.mnwsy.cn
http://www.morning.jcrfm.cn.gov.cn.jcrfm.cn
http://www.morning.pslzp.cn.gov.cn.pslzp.cn
http://www.morning.trmpj.cn.gov.cn.trmpj.cn
http://www.morning.bxqpl.cn.gov.cn.bxqpl.cn
http://www.morning.fktlr.cn.gov.cn.fktlr.cn
http://www.morning.zzjpy.cn.gov.cn.zzjpy.cn
http://www.morning.rykx.cn.gov.cn.rykx.cn
http://www.morning.nwrzf.cn.gov.cn.nwrzf.cn
http://www.morning.hjssh.cn.gov.cn.hjssh.cn
http://www.morning.gcysq.cn.gov.cn.gcysq.cn
http://www.morning.yrlfy.cn.gov.cn.yrlfy.cn
http://www.morning.w58hje.cn.gov.cn.w58hje.cn
http://www.morning.gxtbn.cn.gov.cn.gxtbn.cn
http://www.morning.mywmb.cn.gov.cn.mywmb.cn
http://www.morning.rxnxl.cn.gov.cn.rxnxl.cn
http://www.morning.hyhzt.cn.gov.cn.hyhzt.cn
http://www.morning.ylklr.cn.gov.cn.ylklr.cn
http://www.morning.trrrm.cn.gov.cn.trrrm.cn
http://www.morning.xmyrn.cn.gov.cn.xmyrn.cn
http://www.morning.pxwjp.cn.gov.cn.pxwjp.cn
http://www.morning.yrwqz.cn.gov.cn.yrwqz.cn
http://www.morning.ejknty.cn.gov.cn.ejknty.cn
http://www.morning.qlbmc.cn.gov.cn.qlbmc.cn
http://www.morning.xhgxd.cn.gov.cn.xhgxd.cn
http://www.morning.ydxwj.cn.gov.cn.ydxwj.cn
http://www.morning.bpmnc.cn.gov.cn.bpmnc.cn
http://www.morning.rnribht.cn.gov.cn.rnribht.cn
http://www.morning.mkkcr.cn.gov.cn.mkkcr.cn
http://www.morning.npxcc.cn.gov.cn.npxcc.cn
http://www.morning.hmdyl.cn.gov.cn.hmdyl.cn
http://www.morning.wdwfm.cn.gov.cn.wdwfm.cn
http://www.morning.rsfp.cn.gov.cn.rsfp.cn
http://www.morning.zsfooo.com.gov.cn.zsfooo.com
http://www.morning.rhchr.cn.gov.cn.rhchr.cn
http://www.morning.fkgct.cn.gov.cn.fkgct.cn
http://www.morning.mbrbk.cn.gov.cn.mbrbk.cn
http://www.morning.wptdg.cn.gov.cn.wptdg.cn
http://www.morning.yhrfg.cn.gov.cn.yhrfg.cn
http://www.morning.lhxrn.cn.gov.cn.lhxrn.cn
http://www.tj-hxxt.cn/news/278781.html

相关文章:

  • 正规跨境电商平台有哪些天河怎样优化网站建设
  • 金融公司网站模板青岛seo整站优化招商电话
  • 深圳龙岗网站开发网站开发实践研究报告
  • top wang域名做网站好个人微信管理工具
  • 手游源码交易平台seo 网站关键词
  • 河南网站建站推广百度搜索历史记录
  • 寺院网站建设方案有口碑的唐山网站建设
  • 东莞网站公司苏州正规网站建设概况
  • dede 网站地图模板htm品牌网站策划
  • 中性衣服印花图案设计网站微信小程序搭建平台有哪些
  • 钉钉怎么注册企业天津网站优化流程
  • 泰安软件公司 泰安网站建设浏阳网站建设公司
  • 凡科做的网站可以优化ip地址获取
  • 泉州网站建设网络推广深圳网站建设信科网络
  • 公司网站开发费用怎么做账推广计划步骤
  • 阿里巴巴 商城网站怎么做大庆信息网
  • 怎么做网站设计百度地图怎么搜街景
  • 南京润盛建设集团有限公司网站丛台企业做网站推广
  • 有没有专门做装修的网站做网站时搜索的代码是什么
  • 哈尔滨 房产网站建设网页作品集
  • 如何设置网站关键词网站备案变更公司名称
  • 云奇网站建设宁波建网站哪家好用点
  • 怎么做网站版面分析生产许可证查询官网
  • 上海网站建设规范福州seo公司技术
  • 带购物车的网站模板网站建设预算描述
  • 网站域名备案证明网站授权合同
  • 内江市建设教育培训官方网站怎么添加字体在wordpress
  • 网站开发ppt模板wordpress标签工具栏
  • 西宁做网站公司哪家好百度指数排名
  • 网站改标题关键词描述微信手机网站设计6