datadog windows 环境安装

datadog windows 环境安装1 下载 DatadogAgent File1 https s3 amazonaws com ddagent windows stable datadog agent 7 latest amd64 msiFile2 https dtdg co latest java tracer2 安装完之后 会有这个路径 C ProgramData Datadog conf d 在这个路径下新建 java d 文件夹 建文件 conf yaml 内容为 Logsectionlo type

# - type : file (mandatory) type of log input source (tcp / udp / file) # port / path : (mandatory) Set port if type is tcp or udp. Set path if type is file # service : (mandatory) name of the service owning the log # source : (mandatory) attribute that defines which integration is sending the log # sourcecategory : (optional) Multiple value attribute. Can be used to refine the source attribute # tags: (optional) add tags to each log collected 
  • type: file
    path: c:/log/inv-api-price.log
    service: demo-logback
    source: java
    sourcecategory: sourcecode
    3、将下载的第二个jar包 放到 一个目录下,比如 c:\datadog\dd-java-agent.jar。
    4、新增本地ide启动参数(vm arguments)
    -javaagent:C:\0_Study\3_datadog\dd-java-agent.jar
    -Ddd.profiling.enabled=true
    -XX:FlightRecorderOptions=stackdepth=256
    -Ddd.logs.injection=true
    -Ddd.trace.sample.rate=1
    -Ddd.env=test
    -Ddd.version=1.0
    -Ddd.service=demo-name




























版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/226153.html原文链接:https://javaforall.net

(0)
上一篇 2026年3月17日 上午7:42
下一篇 2026年3月17日 上午7:42


相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号