Profile 采集配置¶
Profile 支持采集使用 Java / Python 等不同语言环境下应用程序运行过程中的动态性能数据,帮助用户查看 CPU、内存、IO 的性能问题。
配置说明¶
进入 DataKit 安装目录下的 conf.d/profile
目录,复制 profile.conf.sample
并命名为 profile.conf
。配置文件说明如下:
[[inputs.profile]]
## 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 = ["/profiling/v1/input"]
配置好后,重启 DataKit 即可。
目前可以通过 ConfigMap 方式注入采集器配置来开启采集器。
指标集¶
以下所有数据采集,默认会追加名为 host
的全局 tag(tag 值为 DataKit 所在主机名),也可以在配置中通过 [inputs.profile.tags]
指定其它标签:
profile
¶
- 标签
标签名 | 描述 |
---|---|
container_host |
container hostname |
endpoint |
endpoint info |
env |
application environment info |
http_method |
http request method name |
http_status_code |
http response code |
operation |
span name |
project |
project name |
service |
service name |
source_type |
tracing source type |
span_type |
span type |
status |
span status |
version |
application version info |
- 指标列表
指标 | 描述 | 数据类型 | 单位 |
---|---|---|---|
duration |
duration of span | int | μs |
message |
origin content of span | string | - |
parent_id |
parent span ID of current span | string | - |
pid |
application process id. | string | - |
priority |
int | - | |
resource |
resource name produce current span | string | - |
span_id |
span id | string | - |
start |
start time of span. | int | usec |
trace_id |
trace id | string | - |