A través de estos paneles, puedes filtrar los valores de las métricas por espacio de nombres, orden de tarea (TO) o número de partida contractual (CLIN).
Antes de comenzar
Para obtener los permisos que necesitas para acceder a los paneles de uso de facturación y costo proyectado, pídele al administrador de IAM de tu organización que te otorgue el rol correspondiente en el espacio de nombres aplicable.
Filtra los valores de las métricas del espacio de nombres
Para filtrar los valores de métricas por etiquetas en los espacios de nombres, realiza la siguiente consulta en la página Explorar de la instancia de Monitoring:
none
sum by (label_CONVERTED_LABEL_NAME) (METRIC_NAME{} * on (cluster, namespace) \
group_left(label_CONVERTED_LABEL_NAME) \
kube_namespace_labels{label_CONVERTED_LABEL_NAME=LABEL_VALUE})
Reemplaza las siguientes variables:
CONVERTED_LABEL_NAME: Es la clave de etiqueta para filtrar los valores de métrica. Reemplaza todos los caracteres no alfabéticos de esta etiqueta por el guion bajo _. Por ejemplo, app.kubernetes.io/component se convierte en app_kubernetes_io_component.
METRIC_NAME: Es el nombre de las métricas relacionadas con la facturación.
LABEL_VALUE: Es el valor de la etiqueta para filtrar las métricas.
Filtra los valores de las métricas de los pods
Para filtrar los valores de las métricas por etiquetas en los Pods, realiza la siguiente consulta en la página Explorar de la instancia de Monitoring:
none
sum by (label_CONVERTED_LABEL_NAME) (METRIC_NAME{} * on (cluster, namespace, pod) \
group_left(label_CONVERTED_LABEL_NAME) \
kube_pod_labels{label_CONVERTED_LABEL_NAME=LABEL_VALUE})
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-04 (UTC)"],[[["\u003cp\u003eBilling metrics can be queried and visualized using the Billing Usage and Projected Cost dashboards.\u003c/p\u003e\n"],["\u003cp\u003eThe dashboards provide visualizations for various billing-related metrics, including \u003ccode\u003eserver_org_count\u003c/code\u003e, \u003ccode\u003ekube_namespace_resource_usage\u003c/code\u003e, and several others related to storage, backups, and AI usage.\u003c/p\u003e\n"],["\u003cp\u003eMetric values can be filtered by namespace, Task Order (TO), or Contract Line Item Number (CLIN).\u003c/p\u003e\n"],["\u003cp\u003eTo filter metric values by labels on namespaces or pods, specific queries can be used in the \u003cstrong\u003eExplore\u003c/strong\u003e page of the monitoring instance by inputting the metric name, label name, and label value.\u003c/p\u003e\n"],["\u003cp\u003eAccess to the billing usage and projected cost dashboards requires the appropriate permissions, granted by an Organization IAM admin.\u003c/p\u003e\n"]]],[],null,["# Query billing metrics\n\nTo query and visualize billing metrics, use the\n[Billing Usage](/distributed-cloud/hosted/docs/latest/gdch/platform/pa-user/billing/track-resource-consumption)\nand\n[Projected Cost](/distributed-cloud/hosted/docs/latest/gdch/platform/pa-user/billing/estimate-projected-costs)\ndashboards.\n\nThese dashboards provide visualizations on the following billing related\nmetrics:\n\n- `server_org_count`\n- `kube_namespace_resource_usage`\n- `pod:kube_pod_container_resource_requests:sum`\n- `metering_storage_organization_allocated_capacity_bytes`\n- `metering_storage_allocated_capacity_bytes`\n- `metering_gdcbackup_protected_pods_count`\n- `metering_gdcbackup_protected_vms_count`\n- `ai_vision_usage`\n- `ai_speech_audio_length_sum`\n- `ai_translation_usage_codepoints`\n\nThrough these dashboards, you can filter the metric values by namespace, Task\nOrder (TO), or Contract Line Item Number (CLIN).\n| **Note:** Contact your Infrastructure Operator to request the TO or CLIN necessary to filter metric values.\n\nBefore you begin\n----------------\n\nTo get the permissions you need to access the billing usage and projected cost\ndashboards, ask your Organization IAM admin to grant you the corresponding\nrole in the applicable namespace.\n\nFilter namespace metric values\n------------------------------\n\n- To filter metric values by labels on namespaces, perform the following query in the **Explore** page of the monitoring instance:\n\n`none\nsum by (label_`\u003cvar translate=\"no\"\u003eCONVERTED_LABEL_NAME\u003c/var\u003e`) (`\u003cvar translate=\"no\"\u003eMETRIC_NAME\u003c/var\u003e`{} * on (cluster, namespace) \\\ngroup_left(label_`\u003cvar translate=\"no\"\u003eCONVERTED_LABEL_NAME\u003c/var\u003e`) \\\nkube_namespace_labels{label_`\u003cvar translate=\"no\"\u003eCONVERTED_LABEL_NAME\u003c/var\u003e`=`\u003cvar translate=\"no\"\u003eLABEL_VALUE\u003c/var\u003e`})`\n\n\u003cbr /\u003e\n\nReplace the following variables:\n\n- \u003cvar translate=\"no\"\u003eCONVERTED_LABEL_NAME\u003c/var\u003e: the label key to filter metric values. Replace all non-alphabetic characters in this label with the underscore `_`. For example: `app.kubernetes.io/component` becomes `app_kubernetes_io_component`.\n- \u003cvar translate=\"no\"\u003eMETRIC_NAME\u003c/var\u003e: the name of the billing-related metrics.\n- \u003cvar translate=\"no\"\u003eLABEL_VALUE\u003c/var\u003e: the label value to filter metrics.\n\nFilter pod metric values\n------------------------\n\n- To filter metric values by labels on pods, perform the following query in the **Explore** page of the monitoring instance:\n\n`none\nsum by (label_`\u003cvar translate=\"no\"\u003eCONVERTED_LABEL_NAME\u003c/var\u003e`) (`\u003cvar translate=\"no\"\u003eMETRIC_NAME\u003c/var\u003e`{} * on (cluster, namespace, pod) \\\ngroup_left(label_`\u003cvar translate=\"no\"\u003eCONVERTED_LABEL_NAME\u003c/var\u003e`) \\\nkube_pod_labels{label_`\u003cvar translate=\"no\"\u003eCONVERTED_LABEL_NAME\u003c/var\u003e`=`\u003cvar translate=\"no\"\u003eLABEL_VALUE\u003c/var\u003e`})`"]]