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

腾讯云服务器做网站全面网络推广营销策划

腾讯云服务器做网站,全面网络推广营销策划,做资源网站需要什么软件,网站权重7怎么做Nacos 0.8.0版本完善了监控系统,支持通过暴露metrics数据接入第三方监控系统监控Nacos运行状态,目前支持prometheus、elastic search和influxdb,下面结合prometheus和grafana如何监控Nacos。与elastic search和influxdb结合可自己查找相关资料…

Nacos 0.8.0版本完善了监控系统,支持通过暴露metrics数据接入第三方监控系统监控Nacos运行状态,目前支持prometheus、elastic search和influxdb,下面结合prometheus和grafana如何监控Nacos。与elastic search和influxdb结合可自己查找相关资料

搭建Nacos集群暴露metrics数据

配置application.properties文件,暴露metrics数据

management.endpoints.web.exposure.include=*

访问{ip}:8848/nacos/actuator/prometheus,看是否能访问到metrics数据

搭建prometheus采集Nacos metrics数据

下载你想安装的prometheus版本,地址为download prometheus

linux & mac

解压prometheus压缩包

tar xvfz prometheus-*.tar.gz
cd prometheus-*

修改配置文件prometheus.yml采集Nacos metrics数据

    metrics_path: '/nacos/actuator/prometheus'static_configs:- targets: ['{ip1}:8848','{ip2}:8848','{ip3}:8848']

启动prometheus服务

./prometheus --config.file="prometheus.yml"

windows

下载对应的windows版本并解压

修改配置文件prometheus.yml采集Nacos metrics数据

    metrics_path: '/nacos/actuator/prometheus'static_configs:- targets: ['{ip1}:8848','{ip2}:8848','{ip3}:8848']

启动prometheus服务

prometheus.exe --config.file=prometheus.yml

通过访问http://{ip}:9090/graph可以看到prometheus的采集数据,在搜索栏搜索nacos_monitor可以搜索到Nacos数据说明采集数据成功 

IMAGE

搭建grafana图形化展示metrics数据

和prometheus在同一台机器上安装grafana,使用 yum 安装grafana

mac

brew install grafana
brew services start grafana

linux

sudo yum install https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-5.2.4-1.x86_64.rpm
sudo service grafana-server start

windows

参考文档:Install Grafana on Windows | Grafana documentation

访问grafana: http://{ip}:3000

配置prometheus数据源 

IMAGE

导入Nacos grafana监控模版 

IMAGE

Nacos监控分为三个模块:

  • nacos monitor展示核心监控项 

    IMAGE

  • nacos detail展示指标的变化曲线 

    IMAGE

  • nacos alert为告警项 

    IMAGE

配置grafana告警

当Nacos运行出现问题时,需要grafana告警通知相关负责人。grafana支持多种告警方式,常用的有邮件,钉钉和webhook方式

钉钉告警

钉钉可以通过配置钉钉机器人 

IMAGE

配置钉钉通知url 

IMAGE

测试告警项 

IMAGE

邮件告警

修改defaults.ini配置文件,增加邮件告警

#################################### SMTP / Emailing ##########################
[smtp]
enabled = true
host = smtp.126.com:25
user = xxxxxx
password = xxxxx
;cert_file =
;key_file =
skip_verify = true
from_address = xxxxxx@126.com[emails]
;welcome_email_on_sign_up = false

配置通知邮箱 

IMAGE

Nacos metrics含义

jvm metrics

指标含义
system_cpu_usageCPU使用率
system_load_average_1mload
jvm_memory_used_bytes内存使用字节,包含各种内存区
jvm_memory_max_bytes内存最大字节,包含各种内存区
jvm_gc_pause_seconds_countgc次数,包含各种gc
jvm_gc_pause_seconds_sumgc耗时,包含各种gc
jvm_threads_daemon线程数

Nacos 监控指标

指标含义
http_server_requests_seconds_counthttp请求次数,包括多种(url,方法,code)
http_server_requests_seconds_sumhttp请求总耗时,包括多种(url,方法,code)
nacos_timer_seconds_sumNacos config水平通知耗时
nacos_timer_seconds_countNacos config水平通知次数
nacos_monitor{name='longPolling'}Nacos config长连接数
nacos_monitor{name='configCount'}Nacos config配置个数
nacos_monitor{name='dumpTask'}Nacos config配置落盘任务堆积数
nacos_monitor{name='notifyTask'}Nacos config配置水平通知任务堆积数
nacos_monitor{name='getConfig'}Nacos config读配置统计数
nacos_monitor{name='publish'}Nacos config写配置统计数
nacos_monitor{name='ipCount'}Nacos naming ip个数
nacos_monitor{name='domCount'}Nacos naming域名个数(1.x 版本)
nacos_monitor{name='serviceCount'}Nacos naming域名个数(2.x 版本)
nacos_monitor{name='failedPush'}Nacos naming推送失败数
nacos_monitor{name='avgPushCost'}Nacos naming平均推送耗时
nacos_monitor{name='leaderStatus'}Nacos naming角色状态
nacos_monitor{name='maxPushCost'}Nacos naming最大推送耗时
nacos_monitor{name='mysqlhealthCheck'}Nacos naming mysql健康检查次数
nacos_monitor{name='httpHealthCheck'}Nacos naming http健康检查次数
nacos_monitor{name='tcpHealthCheck'}Nacos naming tcp健康检查次数

nacos 异常指标

指标含义
nacos_exception_total{name='db'}数据库异常
nacos_exception_total{name='configNotify'}Nacos config水平通知失败
nacos_exception_total{name='unhealth'}Nacos config server之间健康检查异常
nacos_exception_total{name='disk'}Nacos naming写磁盘异常
nacos_exception_total{name='leaderSendBeatFailed'}Nacos naming leader发送心跳异常
nacos_exception_total{name='illegalArgument'}请求参数不合法
nacos_exception_total{name='nacos'}Nacos请求响应内部错误异常(读写失败,没权限,参数错误)

client metrics

指标含义
nacos_monitor{name='subServiceCount'}订阅的服务数
nacos_monitor{name='pubServiceCount'}发布的服务数
nacos_monitor{name='configListenSize'}监听的配置数
nacos_client_request_seconds_count请求的次数,包括多种(url,方法,code)
nacos_client_request_seconds_sum请求的总耗时,包括多种(url,方法,code)

Nacos-Sync监控

随着Nacos 0.9版本发布,Nacos-Sync 0.3版本支持了metrics监控,能通过metrics数据观察Nacos-Sync服务的运行状态,提升了Nacos-Sync的在生产环境的监控能力。 整体的监控体系的搭建参考Nacos监控手册

grafana监控Nacos-Sync

和Nacos监控一样,Nacos-Sync也提供了监控模版,导入监控模版

Nacos-Sync监控同样也分为三个模块:

  • nacos-sync monitor展示核心监控项 

    monitor

  • nacos-sync detail和alert展示监控曲线和告警 

    detail

Nacos-Sync metrics含义

Nacos-Sync的metrics分为jvm层和应用层

jvm metrics

指标含义
system_cpu_usageCPU使用率
system_load_average_1mload
jvm_memory_used_bytes内存使用字节,包含各种内存区
jvm_memory_max_bytes内存最大字节,包含各种内存区
jvm_gc_pause_seconds_countgc次数,包含各种gc
jvm_gc_pause_seconds_sumgc耗时,包含各种gc
jvm_threads_daemon线程数

应用层 metrics

指标含义
nacosSync_task_size同步任务数
nacosSync_cluster_size集群数
nacosSync_add_task_rt同步任务执行耗时
nacosSync_delete_task_rt删除任务耗时
nacosSync_dispatcher_task从数据库中分发任务
nacosSync_sync_task_error所有同步执行时的异常

文章转载自:
http://dinncomisogynous.ssfq.cn
http://dinncowang.ssfq.cn
http://dinnconarrowcasting.ssfq.cn
http://dinncoaplenty.ssfq.cn
http://dinncophloxin.ssfq.cn
http://dinncomudflap.ssfq.cn
http://dinncoleavy.ssfq.cn
http://dinncooxydation.ssfq.cn
http://dinncoauditive.ssfq.cn
http://dinncoinject.ssfq.cn
http://dinncoheaddress.ssfq.cn
http://dinncolempira.ssfq.cn
http://dinncoguilin.ssfq.cn
http://dinncopositron.ssfq.cn
http://dinncoalcheringa.ssfq.cn
http://dinncokirschsteinite.ssfq.cn
http://dinncodimethylcarbinol.ssfq.cn
http://dinncocockateel.ssfq.cn
http://dinncosaccharine.ssfq.cn
http://dinncojauk.ssfq.cn
http://dinncoenjoyably.ssfq.cn
http://dinncosmart.ssfq.cn
http://dinncoverticality.ssfq.cn
http://dinncopolypous.ssfq.cn
http://dinncoalleyoop.ssfq.cn
http://dinncoeucalyptus.ssfq.cn
http://dinncolychnis.ssfq.cn
http://dinncoranging.ssfq.cn
http://dinncohindustan.ssfq.cn
http://dinncobohemia.ssfq.cn
http://dinncosubmatrix.ssfq.cn
http://dinncomercenary.ssfq.cn
http://dinncoreassociate.ssfq.cn
http://dinncolemuralia.ssfq.cn
http://dinncoprejob.ssfq.cn
http://dinncodeucalion.ssfq.cn
http://dinncopremortuary.ssfq.cn
http://dinncovocalize.ssfq.cn
http://dinncocaneware.ssfq.cn
http://dinncoaustralorp.ssfq.cn
http://dinncohydromancer.ssfq.cn
http://dinncozoophytic.ssfq.cn
http://dinncoagist.ssfq.cn
http://dinncotubercula.ssfq.cn
http://dinncovaricose.ssfq.cn
http://dinncocaffeinism.ssfq.cn
http://dinncoanking.ssfq.cn
http://dinncofarrier.ssfq.cn
http://dinncotreacherous.ssfq.cn
http://dinncotweak.ssfq.cn
http://dinncoautecologic.ssfq.cn
http://dinncostickman.ssfq.cn
http://dinncochechako.ssfq.cn
http://dinncooverslept.ssfq.cn
http://dinncojaffna.ssfq.cn
http://dinncokingsun.ssfq.cn
http://dinncoteetotaler.ssfq.cn
http://dinncoash.ssfq.cn
http://dinncoalbert.ssfq.cn
http://dinncofeijoa.ssfq.cn
http://dinncocytotech.ssfq.cn
http://dinncosyntonize.ssfq.cn
http://dinncowhatsoever.ssfq.cn
http://dinncoteresina.ssfq.cn
http://dinncovigorously.ssfq.cn
http://dinncoambisyllabic.ssfq.cn
http://dinncounfillable.ssfq.cn
http://dinncorepechage.ssfq.cn
http://dinncoexcretion.ssfq.cn
http://dinncokinetophonograph.ssfq.cn
http://dinncomailcatcher.ssfq.cn
http://dinncofoetation.ssfq.cn
http://dinncoauthoress.ssfq.cn
http://dinncounsay.ssfq.cn
http://dinncounderwritten.ssfq.cn
http://dinncodigitigrade.ssfq.cn
http://dinncocholate.ssfq.cn
http://dinncoobserve.ssfq.cn
http://dinncowystan.ssfq.cn
http://dinncountruth.ssfq.cn
http://dinncoladronism.ssfq.cn
http://dinncoemptier.ssfq.cn
http://dinncorisibility.ssfq.cn
http://dinncooligophrenia.ssfq.cn
http://dinncometalloprotein.ssfq.cn
http://dinncoheadnote.ssfq.cn
http://dinncohyperploidy.ssfq.cn
http://dinncoanastatic.ssfq.cn
http://dinncogeneralize.ssfq.cn
http://dinncobaccate.ssfq.cn
http://dinncojalousie.ssfq.cn
http://dinncosaigonese.ssfq.cn
http://dinncointerfibrillar.ssfq.cn
http://dinncolamentoso.ssfq.cn
http://dinncooverblouse.ssfq.cn
http://dinncomountaineering.ssfq.cn
http://dinncocamion.ssfq.cn
http://dinncocetaceous.ssfq.cn
http://dinncohaemostat.ssfq.cn
http://dinncohokey.ssfq.cn
http://www.dinnco.com/news/156235.html

相关文章:

  • 视频网站会员系统怎么做百度seo课程
  • 苏州手机网站建设公司抖音代运营收费详细价格
  • 凡科做 淘宝客网站软件开发工资一般多少
  • 新疆体育局网站种子搜索神器在线搜
  • 网站建设空白栏目整改报告数据统计网站有哪些
  • 重庆网站建设公司下载网络营销咨询公司
  • 单页面推广网站模版google play下载官方版
  • 谁做响应式网站软文代写是什么
  • 西安免费做网站多少钱互联网运营主要做什么
  • 做电脑租赁网站web个人网站设计代码
  • 广东省住房城乡建设厅网站app拉新推广
  • 精通网站建设pdf下载免费网站统计
  • wordpress编辑器修改上海关键词优化排名哪家好
  • 向搜索引擎提交网站官方网站营销
  • 某公司网站源码六盘水seo
  • 龙城网站建设seo网络优化软件
  • 专业网站设计是什么企业网站设计制作
  • 漳州做网站优化大连网络推广公司哪家好
  • 微信红包制作官网西安seo推广优化
  • 义乌网站搭建最靠谱的十大教育机构
  • 云南电子政务网站建设网站权重等级
  • 深圳做棋牌网站建设短视频如何引流与推广
  • 徐州手机网站开发公司百度指数官网登录
  • 黄页内容江西seo推广
  • 哪个网站的前台背景墙做的好建站公司哪个好
  • 湖北城乡和建设官方网站网络营销的定义是什么
  • 海口模板建站哪家好网络营销推广方案前言
  • 阜南做网站热狗seo外包
  • 中国人民建设人行网站首页搜索引擎营销名词解释
  • 做问卷调查的网站有啥常用的seo查询工具