正在加载

通用Profiling Agent的配置文件

Elastic Stack

可以使用配置文件配置通用Profiling Agent。使用 CLI 参数 -config 指定配置文件的路径。配置文件的默认路径是 /etc/Elastic/universal-profiling/pf-host-agent.conf

配置文件的预期格式是纯文本文件,其中每一行包含一个选项。

示例

project-id: 73
secret-token: abc123
collection-agent: example.com:443
警告

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

配置文件选项 类型 示例 描述
verbose bool verbose: true 在详细模式下运行通用Profiling Agent。
no-kernel-version-check bool no-kernel-version-check: true 禁用内核版本检查。有关更多详细信息,请参见覆盖内核版本检查
tags string tags: 'cloud_region:us-central1;env:staging' 设置特定标签。有关更多详细信息,请参见标记数据以进行查询
project-id uint project-id: 73 将Profiling数据拆分为您控制的逻辑组。您可以分配任何非零无符号整数 ⇐ 4095。
secret-token string secret-token: abc123 将与通用Profiling Collector通信的密钥设置为 abc123
collection-agent string collection-agent: example.com:443 将报告Profiling信息的目标设置为 example.com:443
probabilistic-interval duration probabilistic-interval: 2m30s 将概率间隔设置为 2m30s。有关更多详细信息,请参见概率Profiling
probabilistic-threshold uint probabilistic-threshold: 50 将概率阈值设置为 50。有关更多详细信息,请参见概率Profiling
© . All rights reserved.