如何获取除 Oracle 云为实例提供的计算指标之外的更多指标(线程计数、句柄计数)?



我启动了Windows实例。我在程序文件下的oracle云代理文件夹中找到了config.yml文件。

config.yml文件如下所示

telemetry:
endpoint_format: 'https://telemetry-ingestion.{}.oraclecloud.com'
endpoint_path: /20180401/metrics
submission_headers:
accept: application/json
content-type: application/json
get_headers:
accept: application/json
metrics:
- friendly_name: CPU Utilization
name: CpuUtilization
unit: Percent
min_range: 0
max_range: 100
- friendly_name: Memory Utilization
name: MemoryUtilization
unit: Percent
min_range: 0
max_range: 100
.
.
.
- friendly_name: Thread Count
name: ThreadCount
unit: Count
perfmon:
metrics:
- path: Processor(_Total)% Processor Time
telemetry_metric_name: CpuUtilization
type: double
- path: Memory% Committed Bytes In Use
telemetry_metric_name: MemoryUtilization
type: double
.
.
.
- path: Process(_total)Thread Count
telemetry_metric_name: ThreadCount
type: double

我在文件中添加了线程计数指标。

我查询了列表指标 API,但没有找到添加的指标(线程计数)。

这是添加更多指标的正确方法吗?如果是,必须执行任何其他流程才能通过 rest API 获取指标?

这里是 oracle cloud agent 的开发者。配置以这种方式构建,以便将来具有可扩展性。目前,如果在配置中添加指标,代理将尝试从操作系统获取指标,并尝试提交到遥测服务后端。遥测服务将拒绝代理的尝试,因为它仅支持一组固定的指标,而你的指标超出了该范围。

最新更新