OpenShift 指标的语义约定
状态: 开发中
OpenShift 指标
本文档描述了 OpenTelemetry 中常见的 OpenShift 特定指标的工具和属性。这些指标是从 OpenShift 的、定义明确的 API 中收集的。
openshift. 命名空间下的指标应附加到 OpenShift 资源 上,并因此继承其属性,例如 openshift.clusterquota.name 和 openshift.clusterquota.uid。
ClusterResourceQuota 指标
描述: openshift.clusterquota 命名空间下的 ClusterResourceQuota 级别的指标。
指标: openshift.clusterquota.cpu.limit.hard
此指标是推荐的。
| 名称 | Instrument Type | Unit (UCUM) | 描述 | Stability | 实体关联 |
|---|---|---|---|---|---|
openshift.clusterquota.cpu.limit.hard | UpDownCounter | {cpu} | 所有项目上的资源的强制硬限制。[1] | openshift.clusterquota |
[1]: 此指标从 ClusterResourceQuota 的 Status.Total.Hard 字段中检索,该字段是 K8s ResourceQuotaStatus。
指标: openshift.clusterquota.cpu.limit.used
此指标是推荐的。
| 名称 | Instrument Type | Unit (UCUM) | 描述 | Stability | 实体关联 |
|---|---|---|---|---|---|
openshift.clusterquota.cpu.limit.used | UpDownCounter | {cpu} | 跨所有项目的资源的当前观察到的总使用量。[1] | openshift.clusterquota |
[1]: 此指标从 ClusterResourceQuota 的 Status.Total.Used 字段中检索,该字段是 K8s ResourceQuotaStatus。
指标: openshift.clusterquota.cpu.request.hard
此指标是推荐的。
| 名称 | Instrument Type | Unit (UCUM) | 描述 | Stability | 实体关联 |
|---|---|---|---|---|---|
openshift.clusterquota.cpu.request.hard | UpDownCounter | {cpu} | 所有项目上的资源的强制硬限制。[1] | openshift.clusterquota |
[1]: 此指标从 ClusterResourceQuota 的 Status.Total.Hard 字段中检索,该字段是 K8s ResourceQuotaStatus。
指标: openshift.clusterquota.cpu.request.used
此指标是推荐的。
| 名称 | Instrument Type | Unit (UCUM) | 描述 | Stability | 实体关联 |
|---|---|---|---|---|---|
openshift.clusterquota.cpu.request.used | UpDownCounter | {cpu} | 跨所有项目的资源的当前观察到的总使用量。[1] | openshift.clusterquota |
[1]: 此指标从 ClusterResourceQuota 的 Status.Total.Used 字段中检索,该字段是 K8s ResourceQuotaStatus。
指标: openshift.clusterquota.memory.limit.hard
此指标是推荐的。
| 名称 | Instrument Type | Unit (UCUM) | 描述 | Stability | 实体关联 |
|---|---|---|---|---|---|
openshift.clusterquota.memory.limit.hard | UpDownCounter | 每个调用的最大内存使用量的分布。 | 所有项目上的资源的强制硬限制。[1] | openshift.clusterquota |
[1]: 此指标从 ClusterResourceQuota 的 Status.Total.Hard 字段中检索,该字段是 K8s ResourceQuotaStatus。
指标: openshift.clusterquota.memory.limit.used
此指标是推荐的。
| 名称 | Instrument Type | Unit (UCUM) | 描述 | Stability | 实体关联 |
|---|---|---|---|---|---|
openshift.clusterquota.memory.limit.used | UpDownCounter | 每个调用的最大内存使用量的分布。 | 跨所有项目的资源的当前观察到的总使用量。[1] | openshift.clusterquota |
[1]: 此指标从 ClusterResourceQuota 的 Status.Total.Used 字段中检索,该字段是 K8s ResourceQuotaStatus。
指标: openshift.clusterquota.memory.request.hard
此指标是推荐的。
| 名称 | Instrument Type | Unit (UCUM) | 描述 | Stability | 实体关联 |
|---|---|---|---|---|---|
openshift.clusterquota.memory.request.hard | UpDownCounter | 每个调用的最大内存使用量的分布。 | 所有项目上的资源的强制硬限制。[1] | openshift.clusterquota |
[1]: 此指标从 ClusterResourceQuota 的 Status.Total.Hard 字段中检索,该字段是 K8s ResourceQuotaStatus。
指标: openshift.clusterquota.memory.request.used
此指标是推荐的。
| 名称 | Instrument Type | Unit (UCUM) | 描述 | Stability | 实体关联 |
|---|---|---|---|---|---|
openshift.clusterquota.memory.request.used | UpDownCounter | 每个调用的最大内存使用量的分布。 | 跨所有项目的资源的当前观察到的总使用量。[1] | openshift.clusterquota |
[1]: 此指标从 ClusterResourceQuota 的 Status.Total.Used 字段中检索,该字段是 K8s ResourceQuotaStatus。
指标: openshift.clusterquota.hugepage_count.request.hard
此指标是推荐的。
| 名称 | Instrument Type | Unit (UCUM) | 描述 | Stability | 实体关联 |
|---|---|---|---|---|---|
openshift.clusterquota.hugepage_count.request.hard | UpDownCounter | {hugepage} | 所有项目上的资源的强制硬限制。[1] | openshift.clusterquota |
[1]: 此指标从 ClusterResourceQuota 的 Status.Total.Hard 字段中检索,该字段是 K8s ResourceQuotaStatus。
Attributes
| 键 | Stability | 需求级别 | Value Type | 描述 | Example Values |
|---|---|---|---|---|---|
k8s.hugepage.size | 必需 | 字符串 | K8s 大页的大小(标识符)。 | 2Mi |
指标: openshift.clusterquota.hugepage_count.request.used
此指标是推荐的。
| 名称 | Instrument Type | Unit (UCUM) | 描述 | Stability | 实体关联 |
|---|---|---|---|---|---|
openshift.clusterquota.hugepage_count.request.used | UpDownCounter | {hugepage} | 跨所有项目的资源的当前观察到的总使用量。[1] | openshift.clusterquota |
[1]: 此指标从 ClusterResourceQuota 的 Status.Total.Used 字段中检索,该字段是 K8s ResourceQuotaStatus。
Attributes
| 键 | Stability | 需求级别 | Value Type | 描述 | Example Values |
|---|---|---|---|---|---|
k8s.hugepage.size | 必需 | 字符串 | K8s 大页的大小(标识符)。 | 2Mi |
指标: openshift.clusterquota.storage.request.hard
此指标是推荐的。
| 名称 | Instrument Type | Unit (UCUM) | 描述 | Stability | 实体关联 |
|---|---|---|---|---|---|
openshift.clusterquota.storage.request.hard | UpDownCounter | 每个调用的最大内存使用量的分布。 | 所有项目上的资源的强制硬限制。[1] | openshift.clusterquota |
[1]: 此指标从 ClusterResourceQuota 的 Status.Total.Hard 字段中检索,该字段是 K8s ResourceQuotaStatus。
当为特定存储类定义资源配额时,应需要 k8s.storageclass.name。
Attributes
| 键 | Stability | 需求级别 | Value Type | 描述 | Example Values |
|---|---|---|---|---|---|
k8s.storageclass.name | 有条件地必需 [1] | 字符串 | K8s StorageClass 对象的名称。 | gold.storageclass.storage.k8s.io |
[1] k8s.storageclass.name: 当为特定存储类定义资源配额时,应需要 k8s.storageclass.name。
指标: openshift.clusterquota.storage.request.used
此指标是推荐的。
| 名称 | Instrument Type | Unit (UCUM) | 描述 | Stability | 实体关联 |
|---|---|---|---|---|---|
openshift.clusterquota.storage.request.used | UpDownCounter | 每个调用的最大内存使用量的分布。 | 跨所有项目的资源的当前观察到的总使用量。[1] | openshift.clusterquota |
[1]: 此指标从 ClusterResourceQuota 的 Status.Total.Used 字段中检索,该字段是 K8s ResourceQuotaStatus。
当为特定存储类定义资源配额时,应需要 k8s.storageclass.name。
Attributes
| 键 | Stability | 需求级别 | Value Type | 描述 | Example Values |
|---|---|---|---|---|---|
k8s.storageclass.name | 有条件地必需 [1] | 字符串 | K8s StorageClass 对象的名称。 | gold.storageclass.storage.k8s.io |
[1] k8s.storageclass.name: 当为特定存储类定义资源配额时,应需要 k8s.storageclass.name。
指标: openshift.clusterquota.persistentvolumeclaim_count.hard
此指标是推荐的。
| 名称 | Instrument Type | Unit (UCUM) | 描述 | Stability | 实体关联 |
|---|---|---|---|---|---|
openshift.clusterquota.persistentvolumeclaim_count.hard | UpDownCounter | {persistentvolumeclaim} | 所有项目上的资源的强制硬限制。[1] |
[1]: 此指标从 ClusterResourceQuota 的 Status.Total.Hard 字段中检索,该字段是 K8s ResourceQuotaStatus。
当为特定存储类定义资源配额时,应需要 k8s.storageclass.name。
Attributes
| 键 | Stability | 需求级别 | Value Type | 描述 | Example Values |
|---|---|---|---|---|---|
k8s.storageclass.name | 有条件地必需 [1] | 字符串 | K8s StorageClass 对象的名称。 | gold.storageclass.storage.k8s.io |
[1] k8s.storageclass.name: 当为特定存储类定义资源配额时,应需要 k8s.storageclass.name。
指标: openshift.clusterquota.persistentvolumeclaim_count.used
此指标是推荐的。
| 名称 | Instrument Type | Unit (UCUM) | 描述 | Stability | 实体关联 |
|---|---|---|---|---|---|
openshift.clusterquota.persistentvolumeclaim_count.used | UpDownCounter | {persistentvolumeclaim} | 跨所有项目的资源的当前观察到的总使用量。[1] |
[1]: 此指标从 ClusterResourceQuota 的 Status.Total.Used 字段中检索,该字段是 K8s ResourceQuotaStatus。
当为特定存储类定义资源配额时,应需要 k8s.storageclass.name。
Attributes
| 键 | Stability | 需求级别 | Value Type | 描述 | Example Values |
|---|---|---|---|---|---|
k8s.storageclass.name | 有条件地必需 [1] | 字符串 | K8s StorageClass 对象的名称。 | gold.storageclass.storage.k8s.io |
[1] k8s.storageclass.name: 当为特定存储类定义资源配额时,应需要 k8s.storageclass.name。
指标: openshift.clusterquota.ephemeral_storage.request.hard
此指标是推荐的。
| 名称 | Instrument Type | Unit (UCUM) | 描述 | Stability | 实体关联 |
|---|---|---|---|---|---|
openshift.clusterquota.ephemeral_storage.request.hard | UpDownCounter | 每个调用的最大内存使用量的分布。 | 所有项目上的资源的强制硬限制。[1] | openshift.clusterquota |
[1]: 此指标从 ClusterResourceQuota 的 Status.Total.Hard 字段中检索,该字段是 K8s ResourceQuotaStatus。
指标: openshift.clusterquota.ephemeral_storage.request.used
此指标是推荐的。
| 名称 | Instrument Type | Unit (UCUM) | 描述 | Stability | 实体关联 |
|---|---|---|---|---|---|
openshift.clusterquota.ephemeral_storage.request.used | UpDownCounter | 每个调用的最大内存使用量的分布。 | 跨所有项目的资源的当前观察到的总使用量。[1] | openshift.clusterquota |
[1]: 此指标从 ClusterResourceQuota 的 Status.Total.Used 字段中检索,该字段是 K8s ResourceQuotaStatus。
指标: openshift.clusterquota.ephemeral_storage.limit.hard
此指标是推荐的。
| 名称 | Instrument Type | Unit (UCUM) | 描述 | Stability | 实体关联 |
|---|---|---|---|---|---|
openshift.clusterquota.ephemeral_storage.limit.hard | UpDownCounter | 每个调用的最大内存使用量的分布。 | 所有项目上的资源的强制硬限制。[1] | openshift.clusterquota |
[1]: 此指标从 ClusterResourceQuota 的 Status.Total.Hard 字段中检索,该字段是 K8s ResourceQuotaStatus。
指标: openshift.clusterquota.ephemeral_storage.limit.used
此指标是推荐的。
| 名称 | Instrument Type | Unit (UCUM) | 描述 | Stability | 实体关联 |
|---|---|---|---|---|---|
openshift.clusterquota.ephemeral_storage.limit.used | UpDownCounter | 每个调用的最大内存使用量的分布。 | 跨所有项目的资源的当前观察到的总使用量。[1] | openshift.clusterquota |
[1]: 此指标从 ClusterResourceQuota 的 Status.Total.Used 字段中检索,该字段是 K8s ResourceQuotaStatus。
指标: openshift.clusterquota.object_count.hard
此指标是推荐的。
| 名称 | Instrument Type | Unit (UCUM) | 描述 | Stability | 实体关联 |
|---|---|---|---|---|---|
openshift.clusterquota.object_count.hard | UpDownCounter | {object} | 所有项目上的资源的强制硬限制。[1] | openshift.clusterquota |
[1]: 此指标从 ClusterResourceQuota 的 Status.Total.Hard 字段中检索,该字段是 K8s ResourceQuotaStatus。
Attributes
| 键 | Stability | 需求级别 | Value Type | 描述 | Example Values |
|---|---|---|---|---|---|
k8s.resourcequota.resource_name | 必需 | 字符串 | 资源配额定义的 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 Type | Unit (UCUM) | 描述 | Stability | 实体关联 |
|---|---|---|---|---|---|
openshift.clusterquota.object_count.used | UpDownCounter | {object} | 跨所有项目的资源的当前观察到的总使用量。[1] | openshift.clusterquota |
[1]: 此指标从 ClusterResourceQuota 的 Status.Total.Used 字段中检索,该字段是 K8s ResourceQuotaStatus。
Attributes
| 键 | Stability | 需求级别 | Value Type | 描述 | Example Values |
|---|---|---|---|---|---|
k8s.resourcequota.resource_name | 必需 | 字符串 | 资源配额定义的 K8s 资源的名称。[1] | count/replicationcontrollers |
[1] k8s.resourcequota.resource_name: 此属性的值可以是完整的 count/<resource>[.<group>] 字符串(例如,count/deployments.apps,count/pods),或者对于某些核心 Kubernetes 资源,可以是资源名称(例如,pods,services,configmaps)。Kubernetes 支持这两种形式的对象计数配额。有关更多详细信息,请参阅 Kubernetes 资源配额文档。