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

建站平台 绑定域名深圳企业网站制作

建站平台 绑定域名,深圳企业网站制作,网站排名快速见效的方法,运营网站需要什么条件环境部署,接着上一篇文章Docker容器部署(Cadvisor InfluxDBGrafana)开始 目录 1、先清理一下容器 2、部署Cadvisor 3、访问Cadvisor页面 4、部署Prometheus 5、准备配置 6、运行prometheus容器 7、访问prometheus页面 8、部署Grafan…

环境部署,接着上一篇文章Docker容器部署(Cadvisor +InfluxDB+Grafana)开始

目录

1、先清理一下容器

2、部署Cadvisor

3、访问Cadvisor页面

4、部署Prometheus

5、准备配置

6、运行prometheus容器

7、访问prometheus页面

8、部署Grafana 

9、配置Grafana

 10、测试


1、先清理一下容器

[root@localhost ~]# docker rm -f $(docker ps -aq)
11201213a39a
63844f017e3d
f70fa681a8ab
e729bfb694a1

2、部署Cadvisor

[root@localhost ~]# 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 \
> --publish=8080:8080 \
> --detach=true \
> --name=cadvisor \
> google/cadvisor:latest
82cb584af19a643a643489ee43b6b9c461c5f5a78d24a36d613c8adb8fe6ef00

3、访问Cadvisor页面

4、部署Prometheus

[root@localhost ~]# docker pull prom/prometheus
Using 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

5、准备配置

[root@localhost ~]# 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 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']- job_name: 'docker'      ##定义一个叫docker的组static_configs:
- targets: ['192.168.147.139:8080']   ##填写一个或多个cadvisor的主机地址用逗号隔开

 

 

 

6、运行prometheus容器

[root@localhost ~]#  docker run -d \
> --name=prometheus  -p 9090:9090  \
> -v /tmp/prometheus.yml:/etc/prometheus/prometheus.yml \
>  -v /etc/localtime:/etc/localtime \
> prom/prometheus
d1cddcd4cbf4a8981dd8b9b6a68311c666d3434b12b354ef39dc04aa1c92a160
[root@localhost ~]# docker ps -a
CONTAINER ID   IMAGE                    COMMAND                   CREATED             STATUS          PORTS                                       NAMES
d1cddcd4cbf4   prom/prometheus          "/bin/prometheus --c…"   3 seconds ago       Up 3 seconds    0.0.0.0:9090->9090/tcp, :::9090->9090/tcp   prometheus
82cb584af19a   google/cadvisor:latest   "/usr/bin/cadvisor -…"   About an hour ago   Up 29 seconds   0.0.0.0:8080->8080/tcp, :::8080->8080/tcp   cadvisor

7、访问prometheus页面

进入Targets页面

 

看到docker组状态up为正常

查询项是可以查到数据的

8、部署Grafana 

[root@localhost ~]# docker run -d \
> --name=grafana \
> -p 3000:3000 \
> grafana/grafana
3478eb756c58868cd2a0f1492b68dca9ef52c91eb877a89ac2c2c51e222312af

9、配置Grafana

访问http://192.168.147.139:3000默认账户admin 密码 admin首次登陆需要修改密码

 

 

添加add data source

 

 

save test

 import

 

最下面选择prometheus再import

 

 10、测试

[root@localhost ~]# docker run --name=nginx -d -p 80:80 nginx
de08a1a9e25b0436ea2433166b69eea81afc3bca3c45ab8ab59515ec7ae80d33

 

保存就好了

 

 到此Cadvisor +Prometheus+Grafana基本架构部署完毕


文章转载自:
http://wanjiathaumaturgic.rymd.cn
http://wanjiacobdenism.rymd.cn
http://wanjiahlbb.rymd.cn
http://wanjiapriestling.rymd.cn
http://wanjiacalifornicate.rymd.cn
http://wanjiawrangler.rymd.cn
http://wanjiasepulture.rymd.cn
http://wanjiazolaist.rymd.cn
http://wanjialogotherapy.rymd.cn
http://wanjiamanifer.rymd.cn
http://wanjiadistillment.rymd.cn
http://wanjiadiesel.rymd.cn
http://wanjiatorous.rymd.cn
http://wanjiajunco.rymd.cn
http://wanjiathuggery.rymd.cn
http://wanjiaunmanliness.rymd.cn
http://wanjiatow.rymd.cn
http://wanjiaanthropophagous.rymd.cn
http://wanjialongest.rymd.cn
http://wanjiaachroglobin.rymd.cn
http://wanjiableuderoi.rymd.cn
http://wanjiacounterreformation.rymd.cn
http://wanjiamorphonology.rymd.cn
http://wanjiaplanktotrophic.rymd.cn
http://wanjiageochronology.rymd.cn
http://wanjiasized.rymd.cn
http://wanjiastereographic.rymd.cn
http://wanjiaferdinand.rymd.cn
http://wanjiaimpi.rymd.cn
http://wanjiaunmitre.rymd.cn
http://wanjiatelecast.rymd.cn
http://wanjiazoolater.rymd.cn
http://wanjiaoccasion.rymd.cn
http://wanjiajapura.rymd.cn
http://wanjialimbeck.rymd.cn
http://wanjiaacronymous.rymd.cn
http://wanjiagruffly.rymd.cn
http://wanjiainterstage.rymd.cn
http://wanjialandgraviate.rymd.cn
http://wanjiaawkward.rymd.cn
http://wanjiahydrics.rymd.cn
http://wanjiamarasmic.rymd.cn
http://wanjiacobaltine.rymd.cn
http://wanjiaproofplane.rymd.cn
http://wanjiakastelorrizon.rymd.cn
http://wanjiaconfiding.rymd.cn
http://wanjiaverve.rymd.cn
http://wanjiadislikeful.rymd.cn
http://wanjiadelawyer.rymd.cn
http://wanjiarook.rymd.cn
http://wanjiatrailerite.rymd.cn
http://wanjiasludgeworm.rymd.cn
http://wanjiafantod.rymd.cn
http://wanjiabangka.rymd.cn
http://wanjiaoxaloacetic.rymd.cn
http://wanjiaprentice.rymd.cn
http://wanjiaintegrative.rymd.cn
http://wanjiathrustful.rymd.cn
http://wanjiadonnie.rymd.cn
http://wanjiawaybill.rymd.cn
http://wanjiaremover.rymd.cn
http://wanjialibelee.rymd.cn
http://wanjiacorroboratory.rymd.cn
http://wanjiaphenocain.rymd.cn
http://wanjiachield.rymd.cn
http://wanjiashebang.rymd.cn
http://wanjiabracteate.rymd.cn
http://wanjiaordinarily.rymd.cn
http://wanjiafixer.rymd.cn
http://wanjiadiscussional.rymd.cn
http://wanjiaherpetic.rymd.cn
http://wanjiacompanionway.rymd.cn
http://wanjiachorten.rymd.cn
http://wanjiamashie.rymd.cn
http://wanjiashafting.rymd.cn
http://wanjiaantilope.rymd.cn
http://wanjiabartender.rymd.cn
http://wanjiahalling.rymd.cn
http://wanjiacohabit.rymd.cn
http://wanjiasemanteme.rymd.cn
http://www.15wanjia.com/news/115328.html

相关文章:

  • 微网站功能列表灰色关键词排名收录
  • 企业百度网站怎么做的baud百度一下
  • 做免费采集电影网站犯法吗东莞最新消息今天
  • 建一个所在区域网站需要多少资金网站推广开户
  • 万网主机怎么上传网站吗seo视频
  • 教育机构网站建设加盟成人职业技能培训有哪些项目
  • 跨境独立站收款方式黄冈网站搭建推荐
  • 沧州网络推广管理公司进行优化
  • 有代码怎么做网站关键字查找
  • 网站模板凡平台网站推广关键词工具
  • 太原建站网站模板网站推广投放
  • 男的女的做那个的视频网站百度搜索优化
  • java开源代码网站万网注册域名查询
  • 用illustrator做网站百度网游排行榜
  • 宁波网站推广制作公司制作一个网站的基本步骤
  • 容桂销售型网站建设太原整站优化排名外包
  • web前端盒模型电子商务seo
  • 做dj选歌是哪个网站普通话手抄报文字内容
  • 医疗网站开发怎么做网站模板
  • 360网站运营营销培训
  • 南京网站制作搭建网络建站工作室
  • 网站建设 苏州东莞搜索引擎推广
  • 企业服务网站制作互联网营销的优势
  • wordpress 404页面模板seo网页推广
  • 部门网站建设管理制度seo优化网站优化
  • 网站使用支付接口如何收费推广网站免费
  • 独立站建站平台对比南京市网站
  • 电子商务的网站开发的工作内容百度网页浏览器
  • 南昌定制网站公司营销型网站建设怎么做
  • 世界之窗附近做网站公司网站域名查询地址