Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Crear y administrar etiquetas de instancia
Bigtable ofrece la opción de agregar etiquetas a tus instancias. Las etiquetas son pares clave-valor que puedes usar para agrupar las instancias relacionadas y almacenar metadatos de una instancia.
En esta página, se explica cómo puedes usar las etiquetas con tus instancias de Bigtable. También se describe cómo agregar, actualizar y quitar las etiquetas de una instancia.
¿Qué son las etiquetas de recurso?
Una etiqueta es un par clave-valor que puedes asignar a las instancias de Google Cloud .
Te ayudan a organizar estos recursos y administrar los costos a gran escala, con el nivel de detalle que necesitas. Puedes adjuntar una etiqueta a cada recurso y, luego, usarlas para filtrarlos. La información sobre las etiquetas se envía al sistema de facturación que te permite desglosar los cargos facturados por etiqueta. Con los informes de facturación integrados, puedes filtrar y agrupar costos por etiquetas de recurso. También puedes usar etiquetas para consultar las exportaciones de datos de facturación.
Requisitos para las etiquetas
Las etiquetas que se aplican a un recurso deben cumplir los siguientes requisitos:
Cada recurso puede tener hasta 64 etiquetas de clúster.
Cada etiqueta debe ser un par clave-valor.
La longitud de las claves debe ser de entre 1 y 63 caracteres, y no pueden estar vacías. Los valores pueden estar vacíos y su longitud máxima es de 63 caracteres.
Las claves y los valores pueden contener solo letras en minúscula, caracteres numéricos, guiones bajos y guiones. Todos los caracteres deben usar la codificación UTF-8, además, se permiten los caracteres internacionales. Las claves deben comenzar con una letra en minúscula o un carácter internacional.
La porción de clave de una etiqueta debe ser única para un solo recurso.
Sin embargo, puedes usar la misma clave en varios recursos.
Estos límites se aplican a la clave y al valor de cada etiqueta, y a los recursos individuales de Google Cloud que tienen etiquetas. No hay límite para la cantidad de etiquetas de clúster que puedes aplicar en todos los recursos de un proyecto.
Usos comunes de las etiquetas
Estos son algunos casos prácticos comunes de las etiquetas:
Etiquetas de equipo o del centro de costos: Agrega etiquetas por equipo o centro de costos para distinguir las instancias que pertenecen a distintos equipos (por ejemplo, team:research y team:analytics). Puedes usar este tipo de etiquetas para la contabilidad de costos o la creación de presupuestos.
Etiquetas de componentes: por ejemplo, component:redis, component:frontend, component:ingest y component:dashboard.
Etiquetas de entorno o etapa: por ejemplo, environment:production y environment:test.
Etiquetas de estado: por ejemplo, state:active, state:readytodelete y state:archive.
Etiquetas de propiedad: Se usan para identificar a los equipos responsables de las operaciones, por ejemplo: team:shopping-cart.
No recomendamos crear grandes cantidades de etiquetas únicas, como marcas de tiempo o valores individuales para cada llamada a la API.
El problema con este enfoque es que, cuando los valores cambian con frecuencia o con claves que sobrecargan el catálogo, esto dificulta el filtrado y la generación de informes eficaces para los recursos.
Etiquetas
Las etiquetas se pueden usar como anotaciones que se pueden consultar en los recursos, pero no se pueden usar para establecer condiciones en las políticas. Las etiquetas proporcionan una forma de permitir o rechazar políticas de manera condicional en función de si un recurso tiene una etiqueta específica, ya que proporciona un control detallado sobre las políticas. Para obtener más información, consulta la Descripción general de etiquetas.
[[["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\u003eLabels in Bigtable are key-value pairs that allow you to group related instances and store metadata, enabling you to organize resources and manage costs.\u003c/p\u003e\n"],["\u003cp\u003eEach Bigtable resource can have up to 64 labels, each with keys and values that must adhere to specific length and character requirements, and keys must be unique within each instance.\u003c/p\u003e\n"],["\u003cp\u003eCommon uses for labels include categorizing instances by team, component, environment, state, and ownership, helping with cost accounting and resource management.\u003c/p\u003e\n"],["\u003cp\u003eLabels can be added, updated, and removed via the Google Cloud console, RPC Admin API, or REST Admin API, providing flexible management options.\u003c/p\u003e\n"],["\u003cp\u003eWhile labels serve as queryable annotations, they cannot set policy conditions, in which case tags should be used instead, as they provide more fine-grained control.\u003c/p\u003e\n"]]],[],null,["Create and manage instance labels\n\nBigtable provides the option to add labels to your instances. Labels are\nkey-value pairs that you can use to group related instances and store metadata\nabout an instance.\n\nThis page explains how you can use labels with your Bigtable\ninstances. It also describes how to add, update, and remove the labels for an\ninstance.\n\nWhat are labels?\n\nA label is a key-value pair that you can assign to Google Cloud instances.\nThey help you organize these resources and manage your costs at scale, with the\ngranularity you need. You can attach a label to each resource, then filter the\nresources based on their labels. Information about labels is forwarded to the billing system that\nlets you break down your billed charges by label. With built-in [billing reports](/billing/docs/how-to/reports),\nyou can filter and group costs by resource labels. You can also use labels to\nquery [billing data exports](/billing/docs/how-to/bq-examples).\n\nRequirements for labels\n\nThe labels applied to a resource must meet the following\nrequirements:\n\n- Each resource can have up to 64 labels.\n- Each label must be a key-value pair.\n- Keys have a minimum length of 1 character and a maximum length of 63 characters, and cannot be empty. Values can be empty, and have a maximum length of 63 characters.\n- Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. Keys must start with a lowercase letter or international character.\n- The key portion of a label must be unique within a single resource. However, you can use the same key with multiple resources.\n\nThese limits apply to the key and value for each label, and to the\nindividual Google Cloud resources that have labels. There\nis no limit on how many labels you can apply across all resources\nwithin a project.\n\nCommon uses of labels\n\nHere are some common use cases for labels:\n\n- **Team or cost center labels** : Add labels based on team or\n cost center to distinguish instances owned by different\n teams (for example, `team:research` and `team:analytics`). You can use this\n type of label for cost accounting or budgeting.\n\n- **Component labels** : For example, `component:redis`,\n `component:frontend`, `component:ingest`, and `component:dashboard`.\n\n- **Environment or stage labels** : For example,\n `environment:production` and `environment:test`.\n\n- **State labels** : For example, `state:active`,\n `state:readytodelete`, and `state:archive`.\n\n- **Ownership labels** : Used to identify the teams that are\n responsible for operations, for example: `team:shopping-cart`.\n\n\n| **Note:** Don't include sensitive information in labels, including personally identifiable information, such as an individual's name or title. Labels are not designed to handle sensitive information.\n\nWe don't recommend creating large numbers of unique labels, such as\nfor timestamps or individual values for every API call.\nThe problem with this approach is that when the values change frequently or with\nkeys that clutter the catalog, this makes it difficult to effectively filter and\nreport on resources.\n\nLabels and tags\n\nLabels can be used as queryable annotations for resources, but can't be used\nto set conditions on policies. Tags provide a way to conditionally allow or\ndeny policies based on whether a resource has a specific tag, by providing fine-grained\ncontrol over policies. For more information, see the\n[Tags overview](/resource-manager/docs/tags/tags-overview).\n\nAdd or updating an instance's labels\n\nAfter you [create a Bigtable instance](/bigtable/docs/creating-instance), you can\nuse the Google Cloud console to add labels to the instance and update existing\nlabels. You can also use the [RPC Admin API](/bigtable/docs/reference/admin/rpc) or the [REST Admin\nAPI](/bigtable/docs/reference/admin/rest) to add or update labels.\n\nTo add or update labels for a Bigtable instance using the\nGoogle Cloud console:\n\n1.\n Open the list of Bigtable instances in the Google Cloud console.\n\n\n [Open the instance list](https://console.cloud.google.com/bigtable/instances)\n2. Check the box next to each instance whose labels you want to modify.\n\n3. If the **Labels** panel is not visible, click **Show info panel** in the\n upper right corner to open it.\n\n4. Add and update labels as needed.\n\n To add a new label, click **Add label**, then type the key and value for the\n label.\n\n To modify an existing label, update its value. You cannot change the key for\n an existing label.\n5. Click **Save** to save your changes.\n\nRemove a label from an instance\n\nTo remove a label from a Bigtable instance using the\nGoogle Cloud console:\n\n1.\n Open the list of Bigtable instances in the Google Cloud console.\n\n\n [Open the instance list](https://console.cloud.google.com/bigtable/instances)\n2. Check the box next to each instance whose labels you want to remove.\n\n3. If the **Labels** panel is not visible, click **Show info panel** in the\n upper right corner to open it.\n\n4. Click the X next to each label that you want to remove.\n\n5. Click **Save** to save your changes.\n\nWhat's next\n\n- Learn how to [modify other properties of a Bigtable\n instance](/bigtable/docs/modifying-instance).\n- View per-instance Bigtable usage in the [Cloud Billing\n detailed export to BigQuery](/billing/docs/how-to/export-data-bigquery-tables/detailed-usage)."]]