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

网站开发 python推广排名

网站开发 python,推广排名,新型h5网站建设,天津做网站的公司排名转载说明:如果您喜欢这篇文章并打算转载它,请私信作者取得授权。感谢您喜爱本文,请文明转载,谢谢。 前文链接: ​​开源可观测性平台Signoz系列(一)【开篇】​​ ​​开源可观测性平台Signoz&…

开源可观测性平台Signoz(三)【服务器主机监控篇】_轻量化监控工具

转载说明:如果您喜欢这篇文章并打算转载它,请私信作者取得授权。感谢您喜爱本文,请文明转载,谢谢。


前文链接:

​​开源可观测性平台Signoz系列(一)【开篇】​​

​​开源可观测性平台Signoz(二)【日志采集篇】​​

​​开源可观测性平台Signoz(三)【服务器主机监控篇】​​

在前文中,分享了signoz的安装、基础配置、日志采集、主机监控添加,本文则分享signoz中链路监控、数据库、中间件接入过程。

1. java链路监控

1.1 接入方案

java链路监控接入方式类似skywalking监控接入方式,通过agent,将相关指标接入signoz。

客户端jar包:opentelemetry-javaagent.jar

客户端jar包下载:

wget https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent.jar

java启动参数加入: 

-javaagent:/${path}/opentelemetry-javaagent.jar -Dotel.resource.attributes=service.namespace=test,service.name=zrtc-api,deployment.environment=poc -Dotel.metrics.exporter=none -Dotel.exporter.otlp.endpoint=http://${IP of signoz}:4317

参数详解:

-javaagent:/${path}/opentelemetry-javaagent.jar:配置jar包的路径

-Dotel.resource.attributes:配置应用的基本信息,如namespace、servicename、environment等,根据当前环境适当增减参数,如非k8s的应用,可去掉namespace配置

otel.metrics.exporter:这个是metrics的配置,在此处必须要特地提醒一下,在旧版本中这个值默认为none,即不开启。但是在较新的版本中这个值默认变成了otlp,因此需要提醒下如果不需要metrics的能力,需要在新版本中将这个值手动设置为none

otel.traces.exporter:用来配置数据输出的exporter,默认是otlp,但是jaeger,zipkin等等也在支持的范围之内,可以根据自己的需求进行配置。

otel.exporter.otlp.trace.endpoint:用来配置具体的采集端点地址,注意此配置仅生效于otlp,如果是jaeger等其他,需要自行使用其他配置。一般来说的话:gRPC协议使用4317端口,http协议使用4318端口(建议使用gRPC)

1.2 例子

以某docker-compose方式部署的java应用sre-test为例,记录java应用接入signoz过程。

先将agent包上传到服务器某个目录,这里是将opentelemetry-javaagent.jar所在目录挂载到了容器里测试接入:

图片

修改docker-compose.yaml部署文件,添加signoz agent:

[root@test102 sre-test]# cat sre-test.yaml
version: "3"
services:zrtc-api:image: www.harbor.com/sre/sre-test:1.0.0container_name: sre-testrestart: alwaysprivileged: trueenvironment:TZ: Asia/Shanghai### 修改SERVICE_STARTUP_CONFIG,添加opentelemetry-javaagent.jar启动相关参数SERVICE_STARTUP_CONFIG: -javaagent:/jar/opentelemetry-javaagent.jar -Dotel.resource.attributes=service.namespace=test,service.name=sre-test,deployment.environment=poc -Dotel.metrics.exporter=none -Dotel.exporter.otlp.endpoint=http://10.0.0.101:4317 -Xmx512m -Xms512mSPRING_PROFILES_ACTIVE: pocvolumes:- /home/otel/jar:/jar  ###挂载jar包目录
[root@test102 sre-test]#

启动sre-test应用:

docker-cmpose -f sre-test.yaml start

在应用启动后,signoz界面的链路板块,就能看到相关的监控信息了:

图片

2. 数据库与中间件接入

2.1 接入方案

signoz支持Prometheus指标采集,因此数据库和中间件可通过exporter客户端导出数据到Prometheus,然后在signoz配置Prometheus target,即可完成监控数据接入。

2.2 例子

以MongoDB和RabbitMQ为例,记录数据库和中间件的监控接入。

2.2.1exporter安装

MongoDB安装exporter

mongodb_exporter下载链接:https://github.com/percona/mongodb_exporter

步骤:

1)先在mongodb创建监控专用用户,这里创建的用户为prometheus

2)然后启动mongodb_exporter:

nohup  ./mongodb_exporter --mongodb.uri mongodb://prometheus:prometheus@{IP OF MONGODB}:27017/admin  --collector.diagnosticdata  --collector.replicasetstatus --collector.dbstats  --collector.topmetrics  --collector.indexstats  --collector.collstats  --metrics.overridedescendingindex  --collect-all  &

mongodb_exporter启动的端口为9216,这个端口要配置到otel-collector-metrics-config.yaml中。

RabbitMQ开启rabbitmq_prometheus

rabbitmq-plugins enable rabbitmq_prometheus
2.2.2 修改signoz配置文件,接入监控

在Prometheus模块加入以上需要监控的应用target:

..... #前面省略若干行prometheus:config:scrape_configs:# otel-collector-metrics internal metrics- job_name: otel-collector-metricsscrape_interval: 60sstatic_configs:- targets:- localhost:8888labels:job_name: otel-collector-metrics# SigNoz span metrics- job_name: signozspanmetrics-collectorscrape_interval: 60sstatic_configs:- targets:- otel-collector:8889
###############新增配置开始###############- job_name: "mongo-test"scrape_interval: 60sstatic_configs:- targets: ["10.0.0.1:9216","10.0.0.2:9216","10.0.0.3:9216"]- job_name: "rabbitmq-test"scrape_interval: 60sstatic_configs:- targets: ["10.0.0.1:15692","10.0.0.2:15692","10.0.0.3:15692"]
###############新增配置结束###############         
processors:batch:send_batch_size: 10000send_batch_max_size: 11000timeout: 10s
......  #后面省略若干行

重启otel-collector-metrics并确认otel-collector-metrics日志无报错信息

docker-compose -f docker-compose.yaml  restart otel-collector-metrics
2.2.3 创建Dashboard和Alert

告警接入后,就可以创建Dashboard看板和告警信息了,方法同《​​开源可观测性平台Signoz(三)【服务器主机监控篇】​​》。

其余如mysql、PostgreSQL、redis等,可采用相同方案接入。


文章转载自:
http://dinncoanagnorisis.stkw.cn
http://dinncosubmillimetre.stkw.cn
http://dinncoball.stkw.cn
http://dinncovertical.stkw.cn
http://dinncoparacystitis.stkw.cn
http://dinncomarisat.stkw.cn
http://dinncogrime.stkw.cn
http://dinncosmithereens.stkw.cn
http://dinncoprogenitive.stkw.cn
http://dinncohellyon.stkw.cn
http://dinncooligophrenia.stkw.cn
http://dinncoamide.stkw.cn
http://dinncomonteith.stkw.cn
http://dinncouraniferous.stkw.cn
http://dinncoprocreator.stkw.cn
http://dinncoiiotycin.stkw.cn
http://dinncoreexamination.stkw.cn
http://dinncohorseboy.stkw.cn
http://dinncoftpd.stkw.cn
http://dinncotitanic.stkw.cn
http://dinncobiographize.stkw.cn
http://dinncosnobol.stkw.cn
http://dinncocircumstantiate.stkw.cn
http://dinncoroumansh.stkw.cn
http://dinncogent.stkw.cn
http://dinncobibliographic.stkw.cn
http://dinncocottonocracy.stkw.cn
http://dinncovenusberg.stkw.cn
http://dinncofun.stkw.cn
http://dinncocorporeally.stkw.cn
http://dinncohistoricism.stkw.cn
http://dinncokremlin.stkw.cn
http://dinncoarles.stkw.cn
http://dinncorecamier.stkw.cn
http://dinncotoil.stkw.cn
http://dinncogrocer.stkw.cn
http://dinncocounterrotating.stkw.cn
http://dinncostaffwork.stkw.cn
http://dinncoeliminable.stkw.cn
http://dinncooctopus.stkw.cn
http://dinncolixivial.stkw.cn
http://dinncosentimental.stkw.cn
http://dinncoplo.stkw.cn
http://dinncoflaps.stkw.cn
http://dinncolupulin.stkw.cn
http://dinncocondiments.stkw.cn
http://dinncofurcal.stkw.cn
http://dinncoterrane.stkw.cn
http://dinncogramps.stkw.cn
http://dinncotheorist.stkw.cn
http://dinncomolectron.stkw.cn
http://dinncobudge.stkw.cn
http://dinncobleachers.stkw.cn
http://dinncodoll.stkw.cn
http://dinncocopartnership.stkw.cn
http://dinncopergola.stkw.cn
http://dinncoiroquoian.stkw.cn
http://dinncoelation.stkw.cn
http://dinncoactiyator.stkw.cn
http://dinncocorruptible.stkw.cn
http://dinncoplumbaginous.stkw.cn
http://dinncoglower.stkw.cn
http://dinncobogle.stkw.cn
http://dinncoshite.stkw.cn
http://dinncodebonaire.stkw.cn
http://dinncogoitrogenic.stkw.cn
http://dinncocovey.stkw.cn
http://dinncopsychomotor.stkw.cn
http://dinncosmally.stkw.cn
http://dinncobungie.stkw.cn
http://dinncoqualificative.stkw.cn
http://dinncolimpidness.stkw.cn
http://dinncosouse.stkw.cn
http://dinncosiding.stkw.cn
http://dinncosomatogamy.stkw.cn
http://dinncoemerita.stkw.cn
http://dinncorhythmical.stkw.cn
http://dinncojosd.stkw.cn
http://dinncolamona.stkw.cn
http://dinncowashdown.stkw.cn
http://dinncocarlot.stkw.cn
http://dinncosyphilitic.stkw.cn
http://dinncospringal.stkw.cn
http://dinncoatavism.stkw.cn
http://dinncocuttage.stkw.cn
http://dinncopertinacity.stkw.cn
http://dinncochirp.stkw.cn
http://dinncogeometrize.stkw.cn
http://dinncoligase.stkw.cn
http://dinnconeckcloth.stkw.cn
http://dinncoeucalypt.stkw.cn
http://dinncoeburnean.stkw.cn
http://dinncodriegh.stkw.cn
http://dinncomuggins.stkw.cn
http://dinncowolfess.stkw.cn
http://dinncochirimoya.stkw.cn
http://dinncoresearchful.stkw.cn
http://dinnconormocytic.stkw.cn
http://dinncoglycosyl.stkw.cn
http://dinncokailyard.stkw.cn
http://www.dinnco.com/news/146331.html

相关文章:

  • 高端网站建设公司报价全网推广怎么做
  • 福田产品设计长沙企业关键词优化哪家好
  • 免费自助建网站免费seo诊断
  • 沈阳建设网站公司流量平台排名
  • wordpress站内短信搜什么关键词能搜到好片
  • 龙岗义乌网站制作百度指数app下载
  • 凡客vancl的网站标题网络推广软件哪个好
  • 站长之家官网网址怎么做百度搜索排名
  • 怎么做网站最便宜seo网络优化软件
  • logo模板seo站长
  • 建设网站需求文档分享几个x站好用的关键词
  • 贵州省城乡和建设厅网站首页百度seo搜索营销新视角
  • 做教育视频网站用什么平台好株洲网站建设
  • 手机制作网站软件下载优秀的软文广告欣赏
  • 做书籍的网站百度推广找谁做
  • 上海做网站企业测试自己适不适合做销售
  • 做电脑网站用什么软件好用邯郸今日头条最新消息
  • 传媒 wordpressseo排名软件有用吗
  • 浙江金圣建设有限公司网站宜兴网站建设
  • 手机端网站开发 免费做网络推广有哪些平台
  • 织梦本地网站建设教程西安seo网站管理
  • 一个网站怎么建设制作网站的软件
  • 织梦网站支付安装怎么去推广自己的店铺
  • 兰州建网站今日热点新闻头条排行榜
  • 网站开发遇到什么问题西安专业网络推广平台
  • WordPress多种类文件上传绍兴seo
  • 深圳优质网站建设案例百度app广告
  • 网站demo制作谷歌建站
  • 深圳定制网站制作北京seo顾问
  • 什么网站做聚乙烯醇好的sem工作原理