Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Este documento contém instruções para configurar o tamanho do armazenamento dos painéis usando o recurso personalizado ObservabilityPipeline. As instruções substituem os valores padrão do namespace do projeto.
O pipeline de observabilidade do dispositivo isolado do Google Distributed Cloud (GDC) gerencia a implantação e a configuração de
Componentes da pilha de observabilidade.
O recurso personalizado ObservabilityPipeline permite acessar a API do pipeline de observabilidade e configurar o serviço de observabilidade para suas implantações. Esse recurso personalizado inclui configurações personalizadas para painéis usados no monitoramento do sistema.
Antes de começar
Para ter as permissões necessárias para configurar ou ver o tamanho do armazenamento dos painéis, peça ao administrador do IAM da organização para conceder a você um dos seguintes papéis no namespace platform-obs:
Criador de PA do pipeline de observabilidade: cria recursos personalizados ObservabilityPipeline. Solicite a função de cluster Criador de PA do pipeline de observabilidade (observabilitypipeline-pa-creator).
Editor do pipeline de observabilidade PA: edita ou modifica recursos personalizados ObservabilityPipeline. Solicite a função de cluster Editor do Observability Pipeline PA (observabilitypipeline-pa-editor).
Leitor de PA do pipeline de observabilidade: visualiza recursos personalizados ObservabilityPipeline. Solicite a função de cluster Leitor de PA do pipeline de observabilidade (observabilitypipeline-pa-viewer).
Antes de configurar o tamanho do armazenamento para painéis, siga estas etapas:
Defina o caminho do arquivo kubeconfig como uma variável de ambiente:
exportKUBECONFIG=KUBECONFIG_FILE
Substitua KUBECONFIG_FILE pelo caminho do arquivo kubeconfig do cluster de administrador da organização.
Atualize o valor storageSize aninhado no campo monitoring:
# Configure observability pipelineapiVersion:observability.gdc.goog/v1kind:ObservabilityPipelinemetadata:namespace:PROJECT_NAMESPACEname:observability-configspec:...monitoring:grafana:storageSize:1Gi# Configure the new storage size for dashboards in the project....
Salve a mudança e saia do editor de linha de comando.
Exemplo de configuração
O arquivo YAML a seguir mostra uma configuração de amostra do recurso personalizado ObservabilityPipeline:
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-09-04 UTC."],[[["\u003cp\u003eThis guide explains how to configure the storage size for dashboards within the Google Distributed Cloud (GDC) air-gapped appliance's Observability pipeline using the \u003ccode\u003eObservabilityPipeline\u003c/code\u003e custom resource.\u003c/p\u003e\n"],["\u003cp\u003eYou need to have the proper permissions, such as Observability Pipeline Creator, Editor, or Viewer, within the \u003ccode\u003einfra-obs\u003c/code\u003e namespace to configure or view the storage size.\u003c/p\u003e\n"],["\u003cp\u003eThe process involves setting the kubeconfig file path, deploying the \u003ccode\u003eObservabilityPipeline\u003c/code\u003e custom resource, and then editing the \u003ccode\u003estorageSize\u003c/code\u003e value under the \u003ccode\u003emonitoring\u003c/code\u003e field in either the \u003ccode\u003einfra-obs\u003c/code\u003e or \u003ccode\u003eplatform-obs\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eObservabilityPipeline\u003c/code\u003e custom resource is used to manage and configure the Observability stack components and includes settings for dashboards used in system monitoring.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003estorageSize\u003c/code\u003e value, found under the \u003ccode\u003egrafana\u003c/code\u003e field nested in \u003ccode\u003emonitoring\u003c/code\u003e in the custom resource, is the configuration that overrides the default storage values for the project namespace for the dashboards.\u003c/p\u003e\n"]]],[],null,["# Configure the dashboard storage\n\nThis document contains instructions to configure the storage size for dashboards using the `ObservabilityPipeline` custom resource. The instructions override the default values for the project namespace.\n\nThe Observability pipeline of Google Distributed Cloud (GDC) air-gapped appliance manages the deployment and configuration of\n\nObservability stack components.\n\nThe `ObservabilityPipeline` custom resource lets you reach the API of the Observability pipeline and configure the Observability service for your deployments. This custom resource includes customized settings for dashboards used in system monitoring.\n\nBefore you begin\n----------------\n\nTo get the permissions you need to configure or view the storage size for dashboards, ask your Organization IAM Admin to grant you one of the following roles in the `platform-obs` namespace:\n\n- **Observability Pipeline PA Creator** : creates `ObservabilityPipeline` custom resources. Request the Observability Pipeline PA Creator (`observabilitypipeline-pa-creator`) cluster role.\n- **Observability Pipeline PA Editor** : edits or modifies `ObservabilityPipeline` custom resources. Request the Observability Pipeline PA Editor (`observabilitypipeline-pa-editor`) cluster role.\n- **Observability Pipeline PA Viewer** : views `ObservabilityPipeline` custom resources. Request the Observability Pipeline PA Viewer (`observabilitypipeline-pa-viewer`) cluster role.\n\nBefore configuring the storage size for dashboards, work through the following steps:\n\n1. Set the path of the kubeconfig file as an environment variable:\n\n export KUBECONFIG=\u003cvar translate=\"no\"\u003eKUBECONFIG_FILE\u003c/var\u003e\n\n Replace \u003cvar translate=\"no\"\u003eKUBECONFIG_FILE\u003c/var\u003e with the path of the kubeconfig file of the org admin cluster.\n2. [Deploy the `ObservabilityPipeline` custom resource with the name `observability-config` into the project namespace.](#sample-configuration)\n\n3. View the current configuration of your Observability deployment:\n\n kubectl --kubeconfig=${KUBECONFIG} get observabilitypipeline -n \u003cvar translate=\"no\"\u003ePROJECT_NAMESPACE\u003c/var\u003e observability-config -o yaml\n\nUpdate the storage size for dashboards\n--------------------------------------\n\nWork through the following steps to configure the storage size for dashboards in the project:\n\n1. Open your `ObservabilityPipeline` custom resource in a command-line editor:\n\n kubectl --kubeconfig=${KUBECONFIG} -n \u003cvar translate=\"no\"\u003ePROJECT_NAMESPACE\u003c/var\u003e edit observabilitypipeline/observability-config\n\n2. Update the `storageSize` value nested in the `monitoring` field:\n\n # Configure observability pipeline\n apiVersion: observability.gdc.goog/v1\n kind: ObservabilityPipeline\n metadata:\n namespace: \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-l devsite-syntax-l-Scalar devsite-syntax-l-Scalar-Plain\"\u003ePROJECT_NAMESPACE\u003c/span\u003e\u003c/var\u003e\n name: observability-config\n spec:\n ...\n monitoring:\n grafana:\n storageSize: 1Gi # Configure the new storage size for dashboards in the project.\n ...\n\n3. Save the change and exit your command-line editor.\n\nSample configuration\n--------------------\n\nThe following YAML file shows a sample configuration of the `ObservabilityPipeline` custom resource: \n\n # Configure observability pipeline\n apiVersion: observability.gdc.goog/v1\n kind: ObservabilityPipeline\n metadata:\n namespace: \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-l devsite-syntax-l-Scalar devsite-syntax-l-Scalar-Plain\"\u003ePROJECT_NAMESPACE\u003c/span\u003e\u003c/var\u003e\n name: observability-config\n spec:\n ...\n monitoring:\n grafana:\n storageSize: 1Gi\n ..."]]