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

北京网站建设公司费用seo网络推广是干嘛的

北京网站建设公司费用,seo网络推广是干嘛的,建设信息发布平台多少钱,鱼巴士设计师服务平台本文主要介绍如何在 Docker 中安装 DataKit。 配置和启动 DataKit 容器 登陆观测云平台,点击「集成」 -「DataKit」 - 「Docker」,然后拷贝第二步的启动命令,启动参数按实际情况配置。 拷贝启动命令: sudo docker run \--hostn…

本文主要介绍如何在 Docker 中安装 DataKit。

配置和启动 DataKit 容器

登陆观测云平台,点击「集成」 -「DataKit」 - 「Docker」,然后拷贝第二步的启动命令,启动参数按实际情况配置。

拷贝启动命令:

sudo docker run \--hostname "$(hostname)" \--workdir /usr/local/datakit \-v "/etc/conf/dir/conf.d":"/usr/local/datakit/conf.d/host-inputs-conf"-v "/":"/rootfs" \-v /var/run/docker.sock:/var/run/docker.sock \-e ENV_DATAWAY="https://openway.guance.com?token=tkn_XXXX" \-e ENV_DEFAULT_ENABLED_INPUTS='cpu,disk,diskio,mem,swap,system,net,host_processes,hostobject,container,dk' \-e ENV_GLOBAL_HOST_TAGS="tag1=a1,tag2=a2" \-e ENV_HTTP_LISTEN="0.0.0.0:9529" \-e HOST_PROC="/rootfs/proc" \-e HOST_SYS="/rootfs/sys" \-e HOST_ETC="/rootfs/etc" \-e HOST_VAR="/rootfs/var" \-e HOST_RUN="/rootfs/run" \-e HOST_DEV="/rootfs/dev" \-e HOST_ROOT="/rootfs" \--cpus 2 \--memory 1g \--privileged \--publish 9529:9529 \--name datakit-docker \-d \pubrepo.guance.com/datakit/datakit:1.66.2

容器启动后,查看是否启动成功:

docker ps

如下所示,启动成功:

启动参数说明:

  • --hostname:将宿主机的主机名作为 DataKit 运行的主机名,如果需要在当前宿主机上运行多个 DataKit,可以给它适当加一些后缀 --hostname "$(hostname)-dk1"
  • --workdir:设置容器工作目录
  • -v:各种宿主机文件挂载:
    • DataKit 中有很多配置文件,我们可以将其在宿主机上准备好,通过 -v 一次性整个挂载到容器中去(容器中的路径为 conf.d/host-inputs-conf 目录)
    • 此处将宿主机根目录挂载进 Datakit,目的是访问宿主机上的各种信息(比如 /proc 目录下的各种文件),便于默认开启的采集器采集数据
    • 将 docker.sock 文件挂载进 Datakit 容器,便于 container 采集器采集数据。不同宿主机该文件目录可能不同,需按照实际来配置
  • -e:各种 Datakit 运行期的环境变量配置,这些环境变量功能跟 DaemonSet 部署 时是一样的
  • ENV_DATAWAY : 将 token 粘贴到 ENV_DATAWAY 环境变量值中 “token=”
  • --publish:便于外部将 Trace 等数据发送给 Datakit 容器,此处我们将 Datakit 的 HTTP 端口映射到外面的 9529 上,诸如 trace 数据设置发送地址的时候,需关注这个端口设置。
  • --name: 指定 Docker 容器名称,否则,name 将随机生成
  • 此处对该运行的 DataKit 设置了 2C 的 CPU 和 1GiB 内存限制

假如我们在 /host/conf/dir 目录下配置了如下一些采集器:

  • APM:DDTrace/OpenTelemetry 等采集器
  • Prometheuse exporter:在当前 docker 环境中,某些应用容器暴露了自身指标(一般形如 http://ip:9100/metrics),那么我们可以将其端口暴露出来,然后编写 prom.conf 来采集这些指标
  • 日志采集:如果某些 Docker 容器将日志写入了宿主机的某个目录,我们可以单独编写日志采集配置来采集这些文件。不过事先我们需要通过 -v 将这些宿主机的目录挂载进 Datakit 容器。另外,默认开启的 container 采集器,会自动采集所有容器的 stdout 日志

登陆观测云平台,点击「基础设施」 - 「容器」,查看名称为 datakit-docker 容器是否上报,点击进入查看容器详情。

场景演示

如何使用 Docker 的 DataKit 采集用户应用访问数据。

开启 RUM 采集器

在挂载的目录 /etc/conf/dir/conf.d 下创建 rum 目录,然后在 rum 目录下,新建 rum.conf 文件,内容如下:

# {"version": "1.66.2", "desc": "do NOT edit this line"}                                                                                 [[inputs.rum]]                                                                                                                           ## profile Agent endpoints register by version respectively.                                                                           ## Endpoints can be skipped listen by remove them from the list.                                                                       ## Default value set as below. DO NOT MODIFY THESE ENDPOINTS if not necessary.                                                         endpoints = ["/v1/write/rum"]                                                                                                          ## used to upload rum session replay.                                                                                                  session_replay_endpoints = ["/v1/write/rum/replay"]                                                                                    ## specify which metrics should be captured.                                                                                           measurements = ["view", "resource", "action", "long_task", "error", "telemetry"]                                                       ## Android command-line-tools HOME                                                                                                     android_cmdline_home = "/usr/local/datakit/data/rum/tools/cmdline-tools"                                                               ## proguard HOME                                                                                                                       proguard_home = "/usr/local/datakit/data/rum/tools/proguard"                                                                           ## android-ndk HOME                                                                                                                    ndk_home = "/usr/local/datakit/data/rum/tools/android-ndk"                                                                             ## atos or atosl bin path                                                                                                              ## for macOS datakit use the built-in tool atos default                                                                                ## for Linux there are several tools that can be used to instead of macOS atos partially,                                              ## such as https://github.com/everettjf/atosl-rs                                                                                       atos_bin_path = "/usr/local/datakit/data/rum/tools/atosl"                                                                              # Provide a list to resolve CDN of your static resource.                                                                               # Below is the Datakit default built-in CDN list, you can uncomment that and change it to your cdn list,                               # it's a JSON array like: [{"domain": "CDN domain", "name": "CDN human readable name", "website": "CDN official website"},...],        # domain field value can contains '*' as wildcard, for example: "kunlun*.com",                                                         # it will match "kunluna.com", "kunlunab.com" and "kunlunabc.com" but not "kunlunab.c.com".                                            # cdn_map = '''                                                                                                                        # [                                                                                                                                    #   {"domain":"15cdn.com","name":"some-CDN-name","website":"https://www.15cdn.com"},                                                   #   {"domain":"tzcdn.cn","name":"some-CDN-name","website":"https://www.15cdn.com"}                                                     # ]                                                                                                                                    # '''                                                                                                                                  ## Threads config controls how many goroutines an agent cloud start to handle HTTP request.                                            ## buffer is the size of jobs' buffering of worker channel.                                                                            ## threads is the total number fo goroutines at running time.                                                                          # [inputs.rum.threads]                                                                                                                 #   buffer = 100                                                                                                                       #   threads = 8                                                                                                                        ## Storage config a local storage space in hard dirver to cache trace data.                                                            ## path is the local file path used to cache data.                                                                                     ## capacity is total space size(MB) used to store data.                                                                                # [inputs.rum.storage]                                                                                                                 #   path = "./rum_storage"                                                                                                             #   capacity = 5120                                                                                                                    ## session_replay config is used to control Session Replay uploading behavior.                                                         ## cache_path set the disk directory where temporarily cache session replay data.                                                      ## cache_capacity_mb specify the max storage space (in MiB) that session replay cache can use.                                         ## clear_cache_on_start set whether we should clear all previous session replay cache on restarting Datakit.                           ## upload_workers set the count of session replay uploading workers.                                                                   ## send_timeout specify the http timeout when uploading session replay data to dataway.                                                ## send_retry_count set the max retry count when sending every session replay request.                                                 ## filter_rules set the the filtering rules that matched session replay data will be dropped,                                          ## all rules are of relationship OR, that is to day, the data match any one of them will be dropped.                                   # [inputs.rum.session_replay]                                                                                                          #   cache_path = "/usr/local/datakit/cache/session_replay"                                                                             #   cache_capacity_mb = 20480                                                                                                          #   clear_cache_on_start = false                                                                                                       #   upload_workers = 16                                                                                                                #   send_timeout = "75s"                                                                                                               #   send_retry_count = 3                                                                                                               #   filter_rules = [                                                                                                                   #       "{ service = 'xxx' or version IN [ 'v1', 'v2'] }",                                                                             #       "{ app_id = 'yyy' and env = 'production' }"                                                                                    #   ]                                       

然后重启 DataKit。

docker restart datakit-docker
docker ps

进入容器查看是否挂载成功,如下图所示已成功挂载。

docker exec -it datakit-docker /bin/bash
datakit monitor

应用接入

登录观测云控制台,进入「用户访问监测」,点击左上角「新建应用」,即可开始创建一个新的应用。

选择 Web 应用,并选择本地环境部署的 NPM 接入方式。

按需填入配置参数,点击创建,即可在应用列表查看应用。

然后,将 SDK 复制到前端项目中。

启动应用后,进行访问,相关数据会上报到观测云平台。

观测云效果

登录观测云控制台,点击「用户访问监测」 -「应用列表」,然后点击创建的应用。

点击查看器,就能查询采集到的用户访问数据。


文章转载自:
http://braunschweiger.c7625.cn
http://gradgrind.c7625.cn
http://megadeath.c7625.cn
http://windable.c7625.cn
http://bowknot.c7625.cn
http://unofficially.c7625.cn
http://drooly.c7625.cn
http://metaassembler.c7625.cn
http://diabetologist.c7625.cn
http://hathpace.c7625.cn
http://reinsertion.c7625.cn
http://subjoinder.c7625.cn
http://tyrian.c7625.cn
http://anemophilous.c7625.cn
http://anesthetize.c7625.cn
http://erivan.c7625.cn
http://divulsion.c7625.cn
http://brazenly.c7625.cn
http://drawee.c7625.cn
http://acquisitively.c7625.cn
http://problematical.c7625.cn
http://fourchette.c7625.cn
http://imbed.c7625.cn
http://dietotherapy.c7625.cn
http://edificatory.c7625.cn
http://henequin.c7625.cn
http://ringed.c7625.cn
http://tomcat.c7625.cn
http://carburetion.c7625.cn
http://immobility.c7625.cn
http://boreas.c7625.cn
http://imperious.c7625.cn
http://huffish.c7625.cn
http://aestival.c7625.cn
http://crosslight.c7625.cn
http://putresce.c7625.cn
http://ugh.c7625.cn
http://rudy.c7625.cn
http://hackler.c7625.cn
http://unpersuadable.c7625.cn
http://homorganic.c7625.cn
http://tzetze.c7625.cn
http://croydon.c7625.cn
http://pectate.c7625.cn
http://jeanswear.c7625.cn
http://isthmectomy.c7625.cn
http://monzonite.c7625.cn
http://gametophore.c7625.cn
http://yellowness.c7625.cn
http://uprise.c7625.cn
http://davit.c7625.cn
http://depreter.c7625.cn
http://quebrada.c7625.cn
http://indifferent.c7625.cn
http://apartment.c7625.cn
http://yqb.c7625.cn
http://asphyxial.c7625.cn
http://journo.c7625.cn
http://supplementary.c7625.cn
http://episepalous.c7625.cn
http://thanatophoric.c7625.cn
http://hydrocyclone.c7625.cn
http://kavadi.c7625.cn
http://phonetically.c7625.cn
http://mozetta.c7625.cn
http://FALSE.c7625.cn
http://mankind.c7625.cn
http://isogenic.c7625.cn
http://germanization.c7625.cn
http://thermosetting.c7625.cn
http://keybar.c7625.cn
http://hellcat.c7625.cn
http://reflex.c7625.cn
http://cringle.c7625.cn
http://parmesan.c7625.cn
http://archil.c7625.cn
http://merge.c7625.cn
http://adenocarcinoma.c7625.cn
http://unassertive.c7625.cn
http://stethoscope.c7625.cn
http://lemnian.c7625.cn
http://discomposingly.c7625.cn
http://ectotherm.c7625.cn
http://brightly.c7625.cn
http://email.c7625.cn
http://cervicovaginal.c7625.cn
http://unliving.c7625.cn
http://accutron.c7625.cn
http://cogged.c7625.cn
http://religionise.c7625.cn
http://dimenhydrinate.c7625.cn
http://circumspectly.c7625.cn
http://shaken.c7625.cn
http://ygerne.c7625.cn
http://amphibrach.c7625.cn
http://catalyst.c7625.cn
http://riffian.c7625.cn
http://maisonette.c7625.cn
http://mourn.c7625.cn
http://numidian.c7625.cn
http://www.zhongyajixie.com/news/55038.html

相关文章:

  • wordpress怎么更换主题seo技术是什么意思
  • 网站设计做哪些的百度咨询
  • 网站去哪里备案电商软文广告经典案例
  • 图片做视频在线观看网站以营销推广为主题的方案
  • 做坏事网站百度排名推广
  • 多城市网站建设营销策划公司名称
  • 做司考题的网站关键词制作软件
  • 手机网站开源谷歌广告联盟官网
  • 深做网站公司百度关键词排名优化工具
  • 广州 做网站营业推广方式
  • 合肥网站制作网站磁力链最好用的搜索引擎
  • 什么叫做网站建设怎样开网站
  • wordpress 添加子菜单aso优化报价
  • 100深夜看黄禁用免费seo推广外包报价表
  • 互联网广告推广公司河南seo和网络推广
  • 新疆网站建设seo优化营销制作设计青岛seo排名公司
  • 网站底部 设计大学生网页设计主题
  • 做思路导图的网站manage网站案例分析
  • 小程序管理平台关键词优化外包
  • 申请办理公司长沙弧度seo
  • 自己做的网站源码如何安装网络营销公司名字
  • 网站宣传虚假处罚标准公司软文推广
  • 手机门户网站模板百度提交网址入口
  • 惠州建设局网站首页网络公司
  • 一个jsp做的购物小网站关键词优化工具
  • 供应链管理案例分析关键词首页排名优化价格
  • 免费模板建站竞价托管
  • 网站建设方案推销网络推广外包注意哪些
  • 长沙网站平台建设公司体验营销
  • 建设网站书籍pdf下载网店推广方案策划书