加载中

高级配置

Elastic Stack

完成 入门 文档中的步骤后,您可能需要继续进行部署的高级配置。有关更多信息,请参阅以下部分:

  • 标记数据以便查询:将 Universal Profiling Agent 收集的数据标记到多个逻辑组中,以便在 Kibana 中进行查询。
  • 为原生帧添加符号:将符号推送到您的集群,以便在编译为原生代码(C、C++、Rust、Go 等)的编程语言编写的应用程序的跟踪中看到函数名称和行号。
  • 使用代理:如果您的基础架构 Universal Profiling Agent 安装需要 HTTP 代理才能连接到 Elastic Cloud,请进行设置。
  • 覆盖内核版本检查 :配置 Universal Profiling Agent 以绕过内核版本兼容性检查。
  • Universal Profiling Agent 的环境变量 :使用环境变量配置 Universal Profiling Agent。
警告

Universal Profiling Agent 的命令行参数优先于环境变量,环境变量优先于配置文件。

Universal Profiling Agent 接受以下 CLI 参数

CLI 参数 类型 示例 描述
-v bool -v 以详细模式运行 Universal Profiling Agent。
-no-kernel-version-check bool -no-kernel-version-check 禁用内核版本检查。有关详细信息,请参阅 覆盖内核版本检查
-tags string -tags='cloud_region:us-central1;env:staging' 设置特定标签。有关详细信息,请参阅 标记数据以便查询
-project-id uint -project-id 73 将分析数据划分为您控制的逻辑组。您可以分配任何非零、无符号整数 ⇐ 4095。
-secret-token string -secret-token=abc123 将与 Universal Profiling Collector 通信的密钥令牌设置为 abc123
-collection-agent string -collection-agent=example.com:443 将报告分析信息的目的地设置为 example.com:443
-probabilistic-interval duration -probabilistic-interval=2m30s 将概率间隔设置为 2m30s。有关详细信息,请参阅 概率分析
-probabilistic-threshold uint -probabilistic-threshold=50 将概率阈值设置为 50。有关详细信息,请参阅 概率分析
-config string -config=/etc/Elastic/universal-profiling/pf-host-agent.conf 设置 Universal Profiling Agent 配置文件路径。有关详细信息,请参阅 Universal Profiling Agent 的配置文件
© . This site is unofficial and not affiliated with Elasticsearch BV.