ListIntegrationPolicyCollectors - 获取接入中心策略的采集器

获取接入中心策略的采集器信息

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求语法

GET /integration-policies/{policyId}/collectors HTTP/1.1

路径参数

名称

类型

必填

描述

示例值

policyId

string

接入中心策略 ID。

env-d95435164593aece55f9999ce45c

请求参数

名称

类型

必填

描述

示例值

addonReleaseName

string

Addon Release 名称。

release-1234567

collectorType

string

采集器类型

Exporter

language

string

语言。

zh

返回参数

名称

类型

描述

示例值

object

Schema of Response

collectors

array<object>

采集器列表。

array<object>

采集器信息。

collectorName

string

采集器名称

collector-kkxx

collectorType

string

采集器类型

Exporter

conditions

array<object>

阶段状态。

object

详细信息。

firstTransitionTime

string

第一次转换时间。

2024-08-27T13:59:23+08:00

lastTransitionTime

string

最后一次转换时间。

2024-08-27T13:59:23+08:00

message

string

详细信息。

success

reason

string

失败原因

Probe

status

string

阶段状态。

True

type

string

阶段类型

Ready

managed

boolean

是否为托管组件。

false

state

string

采集器状态。

xx

version

string

组件版本。

2.6.2

workloads

array<object>

工作负载列表

array<object>

工作负载详情

hostIp

string

主机 IP

10.10.10.10

ip

string

工作负载的 IP 地址。

11.193.82.198

managed

boolean

是否为托管组件。

false

managedInfo

object

策略管理信息。

securityGroupId

string

安全组 ID。

sg-xxxxx

vswitchId

string

交换机 ID。

vsw-xxxxxx

message

string

详细信息。

ok

name

string

工作负载名称

exporter-xxx

namespace

string

工作负载命名空间

prod-db

ownerReferenceKind

string

引用上级的 Kind

Deployment

ownerReferenceName

string

引用上级的名称

exporter

startTime

string

开始时间。

2024-08-27T13:59:23+08:00

status

string

状态。

{}

version

string

工作负载版本。

v2.4.4

releaseName

string

AddonRelease 名称。

ecs-loong-collector-i-f8z1176fg57rlwmc1rfi

addonMeta AddonMeta

Addon 详情。

requestId

string

请求 ID。

0B9377D9-C56B-5C2E-A8A4-A01D6CC3F4B8

示例

正常返回示例

JSON格式

{
  "collectors": [
    {
      "collectorName": "collector-kkxx",
      "collectorType": "Exporter",
      "conditions": [
        {
          "firstTransitionTime": "2024-08-27T13:59:23+08:00",
          "lastTransitionTime": "2024-08-27T13:59:23+08:00",
          "message": "success",
          "reason": "Probe",
          "status": "True",
          "type": "Ready"
        }
      ],
      "managed": false,
      "state": "xx",
      "version": "2.6.2",
      "workloads": [
        {
          "hostIp": "10.10.10.10",
          "ip": "11.193.82.198",
          "managed": false,
          "managedInfo": {
            "securityGroupId": "sg-xxxxx",
            "vswitchId": "vsw-xxxxxx"
          },
          "message": "ok",
          "name": "exporter-xxx",
          "namespace": "prod-db",
          "ownerReferenceKind": "Deployment",
          "ownerReferenceName": "exporter",
          "startTime": "2024-08-27T13:59:23+08:00",
          "status": "{}",
          "version": "v2.4.4"
        }
      ],
      "releaseName": "ecs-loong-collector-i-f8z1176fg57rlwmc1rfi",
      "addonMeta": {
        "name": "cloud-acs-ecs",
        "version": "0.0.1",
        "language": "zh",
        "description": "The out-of-the-box and comprehensive ECS observe dashboards and alarm rules. Based on AliYun CloudMonitor agentless metrics, exporter agent metrics, host audit logs, host events and other data.",
        "scene": "feature",
        "alias": "ECS 监控",
        "icon": "assets/logos/ecs.svg",
        "keywords": [
          "Monitor"
        ],
        "once": true,
        "environments": [
          {
            "name": "CS/ECS/Cloud/Client",
            "enable": true,
            "label": "容器环境",
            "description": "支持容器集群的工作覆盖监控",
            "policies": {
              "defaultInstall": true,
              "targetAddonName": "cloud-acs-ecs",
              "alertDefaultStatus": "RUNNING",
              "protocols": [
                {
                  "name": "Prometheus",
                  "label": "Prometheus 协议",
                  "description": "使用 Prometheus 协议写入指标数据",
                  "icon": "assets/logos/ecs.svg\n"
                }
              ],
              "metricCheckRule": {
                "promQL": [
                  "up{job=\"acs-ecs\"}==1"
                ]
              },
              "needRestartAfterIntegration": true,
              "enableServiceAccount": true,
              "bindEntity": {
                "entityGroupMode": true,
                "singleEntityMode": true,
                "entityType": "acs.ecs.instance",
                "vpcIdFieldKey": "vpcId"
              },
              "bindDefaultPolicy": true
            },
            "dependencies": {
              "features": {
                "key": true
              },
              "services": [
                "cmee"
              ],
              "clusterTypes": [
                "ManagedKubernetes/Default"
              ]
            },
            "policyType": "ECS",
            "commonSchemaRefs": [
              {
                "group": "acs-ecs",
                "version": "0.1.0"
              }
            ]
          }
        ],
        "categories": [
          "infrastructure"
        ],
        "dashboards": [
          {
            "name": "ECS 监控概览大盘",
            "url": "assets/dashboards/ecs.png\n",
            "description": "描述信息"
          }
        ],
        "weight": 1000,
        "latestReleaseCreateTime": "2025-10-25 09:12:12"
      }
    }
  ],
  "requestId": "0B9377D9-C56B-5C2E-A8A4-A01D6CC3F4B8"
}

错误码

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情