OpenShift 指标的语义约定

状态: 开发中

OpenShift 指标

本文档描述了 OpenTelemetry 中常见的 OpenShift 特定指标的工具和属性。这些指标是从 OpenShift 的、定义明确的 API 中收集的。

openshift. 命名空间下的指标应附加到 OpenShift 资源 上,并因此继承其属性,例如 openshift.clusterquota.nameopenshift.clusterquota.uid

ClusterResourceQuota 指标

描述: openshift.clusterquota 命名空间下的 ClusterResourceQuota 级别的指标。

指标: openshift.clusterquota.cpu.limit.hard

此指标是推荐的。

名称Instrument TypeUnit (UCUM)描述Stability实体关联
openshift.clusterquota.cpu.limit.hardUpDownCounter{cpu}所有项目上的资源的强制硬限制。[1]Developmentopenshift.clusterquota

[1]: 此指标从 ClusterResourceQuotaStatus.Total.Hard 字段中检索,该字段是 K8s ResourceQuotaStatus

指标: openshift.clusterquota.cpu.limit.used

此指标是推荐的。

名称Instrument TypeUnit (UCUM)描述Stability实体关联
openshift.clusterquota.cpu.limit.usedUpDownCounter{cpu}跨所有项目的资源的当前观察到的总使用量。[1]Developmentopenshift.clusterquota

[1]: 此指标从 ClusterResourceQuotaStatus.Total.Used 字段中检索,该字段是 K8s ResourceQuotaStatus

指标: openshift.clusterquota.cpu.request.hard

此指标是推荐的。

名称Instrument TypeUnit (UCUM)描述Stability实体关联
openshift.clusterquota.cpu.request.hardUpDownCounter{cpu}所有项目上的资源的强制硬限制。[1]Developmentopenshift.clusterquota

[1]: 此指标从 ClusterResourceQuotaStatus.Total.Hard 字段中检索,该字段是 K8s ResourceQuotaStatus

指标: openshift.clusterquota.cpu.request.used

此指标是推荐的。

名称Instrument TypeUnit (UCUM)描述Stability实体关联
openshift.clusterquota.cpu.request.usedUpDownCounter{cpu}跨所有项目的资源的当前观察到的总使用量。[1]Developmentopenshift.clusterquota

[1]: 此指标从 ClusterResourceQuotaStatus.Total.Used 字段中检索,该字段是 K8s ResourceQuotaStatus

指标: openshift.clusterquota.memory.limit.hard

此指标是推荐的。

名称Instrument TypeUnit (UCUM)描述Stability实体关联
openshift.clusterquota.memory.limit.hardUpDownCounter每个调用的最大内存使用量的分布。所有项目上的资源的强制硬限制。[1]Developmentopenshift.clusterquota

[1]: 此指标从 ClusterResourceQuotaStatus.Total.Hard 字段中检索,该字段是 K8s ResourceQuotaStatus

指标: openshift.clusterquota.memory.limit.used

此指标是推荐的。

名称Instrument TypeUnit (UCUM)描述Stability实体关联
openshift.clusterquota.memory.limit.usedUpDownCounter每个调用的最大内存使用量的分布。跨所有项目的资源的当前观察到的总使用量。[1]Developmentopenshift.clusterquota

[1]: 此指标从 ClusterResourceQuotaStatus.Total.Used 字段中检索,该字段是 K8s ResourceQuotaStatus

指标: openshift.clusterquota.memory.request.hard

此指标是推荐的。

名称Instrument TypeUnit (UCUM)描述Stability实体关联
openshift.clusterquota.memory.request.hardUpDownCounter每个调用的最大内存使用量的分布。所有项目上的资源的强制硬限制。[1]Developmentopenshift.clusterquota

[1]: 此指标从 ClusterResourceQuotaStatus.Total.Hard 字段中检索,该字段是 K8s ResourceQuotaStatus

指标: openshift.clusterquota.memory.request.used

此指标是推荐的。

名称Instrument TypeUnit (UCUM)描述Stability实体关联
openshift.clusterquota.memory.request.usedUpDownCounter每个调用的最大内存使用量的分布。跨所有项目的资源的当前观察到的总使用量。[1]Developmentopenshift.clusterquota

[1]: 此指标从 ClusterResourceQuotaStatus.Total.Used 字段中检索,该字段是 K8s ResourceQuotaStatus

指标: openshift.clusterquota.hugepage_count.request.hard

此指标是推荐的。

名称Instrument TypeUnit (UCUM)描述Stability实体关联
openshift.clusterquota.hugepage_count.request.hardUpDownCounter{hugepage}所有项目上的资源的强制硬限制。[1]Developmentopenshift.clusterquota

[1]: 此指标从 ClusterResourceQuotaStatus.Total.Hard 字段中检索,该字段是 K8s ResourceQuotaStatus

Attributes

Stability需求级别Value Type描述Example Values
k8s.hugepage.sizeDevelopment必需字符串K8s 大页的大小(标识符)。2Mi

指标: openshift.clusterquota.hugepage_count.request.used

此指标是推荐的。

名称Instrument TypeUnit (UCUM)描述Stability实体关联
openshift.clusterquota.hugepage_count.request.usedUpDownCounter{hugepage}跨所有项目的资源的当前观察到的总使用量。[1]Developmentopenshift.clusterquota

[1]: 此指标从 ClusterResourceQuotaStatus.Total.Used 字段中检索,该字段是 K8s ResourceQuotaStatus

Attributes

Stability需求级别Value Type描述Example Values
k8s.hugepage.sizeDevelopment必需字符串K8s 大页的大小(标识符)。2Mi

指标: openshift.clusterquota.storage.request.hard

此指标是推荐的。

名称Instrument TypeUnit (UCUM)描述Stability实体关联
openshift.clusterquota.storage.request.hardUpDownCounter每个调用的最大内存使用量的分布。所有项目上的资源的强制硬限制。[1]Developmentopenshift.clusterquota

[1]: 此指标从 ClusterResourceQuotaStatus.Total.Hard 字段中检索,该字段是 K8s ResourceQuotaStatus

当为特定存储类定义资源配额时,应需要 k8s.storageclass.name

Attributes

Stability需求级别Value Type描述Example Values
k8s.storageclass.nameDevelopment有条件地必需 [1]字符串K8s StorageClass 对象的名称。gold.storageclass.storage.k8s.io

[1] k8s.storageclass.name: 当为特定存储类定义资源配额时,应需要 k8s.storageclass.name

指标: openshift.clusterquota.storage.request.used

此指标是推荐的。

名称Instrument TypeUnit (UCUM)描述Stability实体关联
openshift.clusterquota.storage.request.usedUpDownCounter每个调用的最大内存使用量的分布。跨所有项目的资源的当前观察到的总使用量。[1]Developmentopenshift.clusterquota

[1]: 此指标从 ClusterResourceQuotaStatus.Total.Used 字段中检索,该字段是 K8s ResourceQuotaStatus

当为特定存储类定义资源配额时,应需要 k8s.storageclass.name

Attributes

Stability需求级别Value Type描述Example Values
k8s.storageclass.nameDevelopment有条件地必需 [1]字符串K8s StorageClass 对象的名称。gold.storageclass.storage.k8s.io

[1] k8s.storageclass.name: 当为特定存储类定义资源配额时,应需要 k8s.storageclass.name

指标: openshift.clusterquota.persistentvolumeclaim_count.hard

此指标是推荐的。

名称Instrument TypeUnit (UCUM)描述Stability实体关联
openshift.clusterquota.persistentvolumeclaim_count.hardUpDownCounter{persistentvolumeclaim}所有项目上的资源的强制硬限制。[1]Development

[1]: 此指标从 ClusterResourceQuotaStatus.Total.Hard 字段中检索,该字段是 K8s ResourceQuotaStatus

当为特定存储类定义资源配额时,应需要 k8s.storageclass.name

Attributes

Stability需求级别Value Type描述Example Values
k8s.storageclass.nameDevelopment有条件地必需 [1]字符串K8s StorageClass 对象的名称。gold.storageclass.storage.k8s.io

[1] k8s.storageclass.name: 当为特定存储类定义资源配额时,应需要 k8s.storageclass.name

指标: openshift.clusterquota.persistentvolumeclaim_count.used

此指标是推荐的。

名称Instrument TypeUnit (UCUM)描述Stability实体关联
openshift.clusterquota.persistentvolumeclaim_count.usedUpDownCounter{persistentvolumeclaim}跨所有项目的资源的当前观察到的总使用量。[1]Development

[1]: 此指标从 ClusterResourceQuotaStatus.Total.Used 字段中检索,该字段是 K8s ResourceQuotaStatus

当为特定存储类定义资源配额时,应需要 k8s.storageclass.name

Attributes

Stability需求级别Value Type描述Example Values
k8s.storageclass.nameDevelopment有条件地必需 [1]字符串K8s StorageClass 对象的名称。gold.storageclass.storage.k8s.io

[1] k8s.storageclass.name: 当为特定存储类定义资源配额时,应需要 k8s.storageclass.name

指标: openshift.clusterquota.ephemeral_storage.request.hard

此指标是推荐的。

名称Instrument TypeUnit (UCUM)描述Stability实体关联
openshift.clusterquota.ephemeral_storage.request.hardUpDownCounter每个调用的最大内存使用量的分布。所有项目上的资源的强制硬限制。[1]Developmentopenshift.clusterquota

[1]: 此指标从 ClusterResourceQuotaStatus.Total.Hard 字段中检索,该字段是 K8s ResourceQuotaStatus

指标: openshift.clusterquota.ephemeral_storage.request.used

此指标是推荐的。

名称Instrument TypeUnit (UCUM)描述Stability实体关联
openshift.clusterquota.ephemeral_storage.request.usedUpDownCounter每个调用的最大内存使用量的分布。跨所有项目的资源的当前观察到的总使用量。[1]Developmentopenshift.clusterquota

[1]: 此指标从 ClusterResourceQuotaStatus.Total.Used 字段中检索,该字段是 K8s ResourceQuotaStatus

指标: openshift.clusterquota.ephemeral_storage.limit.hard

此指标是推荐的。

名称Instrument TypeUnit (UCUM)描述Stability实体关联
openshift.clusterquota.ephemeral_storage.limit.hardUpDownCounter每个调用的最大内存使用量的分布。所有项目上的资源的强制硬限制。[1]Developmentopenshift.clusterquota

[1]: 此指标从 ClusterResourceQuotaStatus.Total.Hard 字段中检索,该字段是 K8s ResourceQuotaStatus

指标: openshift.clusterquota.ephemeral_storage.limit.used

此指标是推荐的。

名称Instrument TypeUnit (UCUM)描述Stability实体关联
openshift.clusterquota.ephemeral_storage.limit.usedUpDownCounter每个调用的最大内存使用量的分布。跨所有项目的资源的当前观察到的总使用量。[1]Developmentopenshift.clusterquota

[1]: 此指标从 ClusterResourceQuotaStatus.Total.Used 字段中检索,该字段是 K8s ResourceQuotaStatus

指标: openshift.clusterquota.object_count.hard

此指标是推荐的。

名称Instrument TypeUnit (UCUM)描述Stability实体关联
openshift.clusterquota.object_count.hardUpDownCounter{object}所有项目上的资源的强制硬限制。[1]Developmentopenshift.clusterquota

[1]: 此指标从 ClusterResourceQuotaStatus.Total.Hard 字段中检索,该字段是 K8s ResourceQuotaStatus

Attributes

Stability需求级别Value Type描述Example Values
k8s.resourcequota.resource_nameDevelopment必需字符串资源配额定义的 K8s 资源的名称。[1]count/replicationcontrollers

[1] k8s.resourcequota.resource_name: 此属性的值可以是完整的 count/<resource>[.<group>] 字符串(例如,count/deployments.apps,count/pods),或者对于某些核心 Kubernetes 资源,可以是资源名称(例如,pods,services,configmaps)。Kubernetes 支持这两种形式的对象计数配额。有关更多详细信息,请参阅 Kubernetes 资源配额文档

指标: openshift.clusterquota.object_count.used

此指标是推荐的。

名称Instrument TypeUnit (UCUM)描述Stability实体关联
openshift.clusterquota.object_count.usedUpDownCounter{object}跨所有项目的资源的当前观察到的总使用量。[1]Developmentopenshift.clusterquota

[1]: 此指标从 ClusterResourceQuotaStatus.Total.Used 字段中检索,该字段是 K8s ResourceQuotaStatus

Attributes

Stability需求级别Value Type描述Example Values
k8s.resourcequota.resource_nameDevelopment必需字符串资源配额定义的 K8s 资源的名称。[1]count/replicationcontrollers

[1] k8s.resourcequota.resource_name: 此属性的值可以是完整的 count/<resource>[.<group>] 字符串(例如,count/deployments.apps,count/pods),或者对于某些核心 Kubernetes 资源,可以是资源名称(例如,pods,services,configmaps)。Kubernetes 支持这两种形式的对象计数配额。有关更多详细信息,请参阅 Kubernetes 资源配额文档