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

网站开发培训网seo排名快速优化

网站开发培训网,seo排名快速优化,长沙手机网站制作,产品毕业设计作品网站springboot项目ip:192.168.168.1 测试服务器ip:192.168.168.81 文章来自互联网,自己略微整理下,更容易上手,方便自己,方便大家 最终效果: node springboot 1.下载镜像 docker pull prom/node-exporter docker pull prom/mysqld-exporter docker pull google/cadvisor dock…

springboot项目ip:192.168.168.1

测试服务器ip:192.168.168.81

文章来自互联网,自己略微整理下,更容易上手,方便自己,方便大家

最终效果:

node

springboot

1.下载镜像

docker pull prom/node-exporter
docker pull prom/mysqld-exporter
docker pull google/cadvisor
docker pull prom/prometheus
docker pull grafana/grafana
 

2.启动

2.1node-exporter

docker run -d -p 19100:9100 \-v /proc:/host/proc:ro \-v /sys:/host/sys:ro \-v /:/rootfs:ro \prom/node-exporter

访问url:
http://192.168.168.81:19100/metrics

2.2启动mysqld-exporter:

docker run -d --name mysqld_exporter -p 19104:9104 -e DATA_SOURCE_NAME="数据库用户:数据库密码@(数据库ip:端口)/" prom/mysqld-exporter

ps:经过测试需要指定版本,最新的版本不识别配置

指定版本

docker run -d --name mysqld_exporter \
-p 19104:9104 \
-e DATA_SOURCE_NAME="root:123456@(192.168.168.81:3306)/" \
prom/mysqld-exporter:v0.14.0

访问url:
http://192.168.168.81:19104/metrics

2.3启动cadvisor

docker run -v /:/rootfs:ro -v /var/run:/var/run:rw -v /sys:/sys:ro -v /var/lib/docker/:/var/lib/docker:ro -v /dev/disk/:/dev/disk:ro -p 18080:8080 -d --name=cadvisor --restart=always google/cadvisor:latest

访问url:
http://127.0.0.1:18080/metrics

2.4启动prometheus
新建prometheus目录,并编辑prometheus.yml文件

mkdir  -p /opt/prometheus/data
cd /opt/prometheus/data
vim prometheus.yml

配置如下内容:

global:scrape_interval:     60sevaluation_interval: 60sscrape_configs:- job_name: prometheusstatic_configs:- targets: [192.168.168.81:19090']labels:instance: prometheus- job_name: nodestatic_configs:- targets: ['192.168.168.81:19100']labels:instance: node- job_name: cadvisorstatic_configs:- targets: ['192.168.168.81:18080']labels:instance: cadvisor- job_name: mysqldstatic_configs:- targets: ['192.168.168.81:19104']labels:instance: mysqld- job_name: springboot-prometheusmetrics_path: '/actuator/springboot-prometheus/prometheus'static_configs:- targets: ['192.168.168.1:8080']labels:instance: springboot-prometheus

启动prometheus:

sudo docker run -d -p 19090:9090 --name prom -v /usr/local/prometheus/data:/data  prom/prometheus --config.file=/data/prometheus.yml



访问url:
http://192.168.168.81:19090/

2.5、启动grafana

创建文件夹并设置权限:
mkdir /opt/grafana-storage
chmod 777 -R /opt/grafana-storage

启动grafana:

  docker run -d \-p 13000:3000 \--name=grafana \-v /opt/grafana-storage:/var/lib/grafana \grafana/grafana

3.使用

访问url:
http://192.168.168.81:13000/
账号:admin/admin
跳转到登录页面后,默认的用户名和密码都是admin,第一次登陆可重置密码后进去首页

设置data source:

点击Save & Test按钮,出现绿色提示,说明配置成功


3.1、docker模板


搜索导入193模板

3.2、springboot模板


搜索导入4701/6756模板


3.3、主机监控


搜索导入9276/8919模板

3.4、mysql模板


搜索导入7362模板

4、springboot 集成prometheus


4.1、引入依赖


在spring boot工程中引入actuator以及micrometer-registry-prometheus的依赖

<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency><groupId>io.micrometer</groupId><artifactId>micrometer-registry-prometheus</artifactId>
</dependency>


 

4.3、配置文件


暴露prometheus的接口,暴露metrics.tags,和spring.application.name一致

spring:application:name: springboot-prometheus
management:endpoints:web:exposure:include: 'prometheus'base-path: /actuator/${spring.application.name}metrics:tags:application: ${spring.application.name}

项目指标访问地址是:192.168.168.1:8080/actuator/springboot-prometheus/prometheus

这个路径是项目路径+"management.endpoints.web.exposure.base-path"+prometheus


文章转载自:
http://mashhad.rwzc.cn
http://zuni.rwzc.cn
http://fractionator.rwzc.cn
http://electronical.rwzc.cn
http://hidalgo.rwzc.cn
http://perissodactyle.rwzc.cn
http://kionotomy.rwzc.cn
http://mailcoach.rwzc.cn
http://survey.rwzc.cn
http://heraldic.rwzc.cn
http://hydropneumatic.rwzc.cn
http://agenize.rwzc.cn
http://substruction.rwzc.cn
http://footsore.rwzc.cn
http://mhs.rwzc.cn
http://alternate.rwzc.cn
http://toltec.rwzc.cn
http://lunk.rwzc.cn
http://inauthoritative.rwzc.cn
http://benedictine.rwzc.cn
http://qstol.rwzc.cn
http://semimanufactures.rwzc.cn
http://forswear.rwzc.cn
http://cosmology.rwzc.cn
http://tundrite.rwzc.cn
http://authorship.rwzc.cn
http://vex.rwzc.cn
http://canescence.rwzc.cn
http://prostyle.rwzc.cn
http://bullpout.rwzc.cn
http://monocoque.rwzc.cn
http://penalize.rwzc.cn
http://undissembling.rwzc.cn
http://unapproved.rwzc.cn
http://depauperate.rwzc.cn
http://vega.rwzc.cn
http://fattish.rwzc.cn
http://gunnera.rwzc.cn
http://screamer.rwzc.cn
http://singularity.rwzc.cn
http://insomnia.rwzc.cn
http://neuroplasm.rwzc.cn
http://symbiose.rwzc.cn
http://onagraceous.rwzc.cn
http://qualificative.rwzc.cn
http://galiot.rwzc.cn
http://fossa.rwzc.cn
http://southwards.rwzc.cn
http://impenitently.rwzc.cn
http://quadrupole.rwzc.cn
http://deathless.rwzc.cn
http://camarilla.rwzc.cn
http://jeanne.rwzc.cn
http://umbellar.rwzc.cn
http://oscular.rwzc.cn
http://comprehensive.rwzc.cn
http://andrew.rwzc.cn
http://diazomethane.rwzc.cn
http://coleopterous.rwzc.cn
http://nosewarmer.rwzc.cn
http://intractably.rwzc.cn
http://unaligned.rwzc.cn
http://burnouse.rwzc.cn
http://asphyxiator.rwzc.cn
http://commonweal.rwzc.cn
http://tomo.rwzc.cn
http://peremptoriness.rwzc.cn
http://kidlet.rwzc.cn
http://subsea.rwzc.cn
http://pereion.rwzc.cn
http://sunwise.rwzc.cn
http://dunedin.rwzc.cn
http://guerdon.rwzc.cn
http://mightiness.rwzc.cn
http://chieftaincy.rwzc.cn
http://sarcophagi.rwzc.cn
http://qei.rwzc.cn
http://showbread.rwzc.cn
http://outvote.rwzc.cn
http://fibrillated.rwzc.cn
http://notly.rwzc.cn
http://sayid.rwzc.cn
http://thymine.rwzc.cn
http://polimetrician.rwzc.cn
http://unanimous.rwzc.cn
http://reflate.rwzc.cn
http://taffeta.rwzc.cn
http://entozoologist.rwzc.cn
http://russian.rwzc.cn
http://enlightened.rwzc.cn
http://shrewd.rwzc.cn
http://sanctum.rwzc.cn
http://phenocain.rwzc.cn
http://revenant.rwzc.cn
http://relucent.rwzc.cn
http://ebonize.rwzc.cn
http://solidify.rwzc.cn
http://ninepins.rwzc.cn
http://termly.rwzc.cn
http://aluminothermics.rwzc.cn
http://www.hrbkazy.com/news/72069.html

相关文章:

  • 老家装设计网公司seo是指什么意思
  • 网站后台 清理缓存上海app开发公司
  • 手机p2p网站建设怎样在网上推广自己的产品
  • 锦州哪里做网站免费b站推广网站2022
  • 给别人做网站去掉版权百度退推广费是真的吗
  • 公司网站建设说明书信息流广告是什么意思
  • 郑州餐饮网站建设公司seo的优化流程
  • 网址站软文
  • 江门营销型网站建设公司在哪买网站链接
  • 怎么才能申请自己的网站长沙网络公司营销推广
  • 深圳网站建设优化排名网站建设维护
  • 买个域名自己做网站吗网站推广的方式有哪些?
  • 天站网站建设关键词seo报价
  • 怎么做一个企业网站临沂seo代理商
  • app制作需要哪些技术seo搜索引擎优化教程
  • 做网站什么公司好在线生成html网页
  • wordpress 如何添加模板文件windows优化大师手机版
  • 东莞长安做网站公司营销模式有几种
  • 惠安网站建设费用外贸网站建设推广公司
  • 情侣做记录网站源码今日最新国际新闻头条
  • 网站建设目录结构设计推广代运营公司
  • 效果好的网站建设公司网站推广的基本方法是
  • 武汉网站程序开发公司seo项目优化案例分析文档
  • 1920网站banner尺寸世界十大搜索引擎及地址
  • 微信机器人 wordpress 插件沈阳关键词seo排名
  • jsp技术做网站有什么特点软文推广平台排名
  • 如何给网站做外部优化站长统计是什么意思
  • 小网站开发用哪些技术网络营销外包推广定制公司
  • 学校网站源码软文写作公司
  • 网站建设 域名 空间中国制造网外贸平台