除了 oracle 云为实例提供的计算指标外,如何获取更多指标(线程数、处理数)?

How to get more metrics(Threads count, Handles Count) other than the compute metrics offered by oracle cloud for an instance?

我启动了 windows 实例。我在program files下的oracle cloud agent文件夹里找到了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云代理的开发者。以这种方式构造配置是为了将来的可扩展性。目前,如果您在配置中添加指标,代理将尝试从 OS 获取指标并尝试提交到遥测服务后端。遥测服务将拒绝代理的尝试,因为它仅支持一组固定的指标,而您超出了该范围。