Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
In diesem Dokument finden Sie eine Anleitung zum Konfigurieren der Speichergröße für Dashboards mit der benutzerdefinierten Ressource ObservabilityPipeline. Die Anweisungen überschreiben die Standardwerte für den Projektnamespace.
Die Observability-Pipeline der Air-Gapped-Appliance von Google Distributed Cloud (GDC) verwaltet die Bereitstellung und Konfiguration von
Komponenten des Observability-Stacks.
Mit der benutzerdefinierten Ressource ObservabilityPipeline können Sie die API der Observability-Pipeline erreichen und den Observability-Dienst für Ihre Bereitstellungen konfigurieren. Diese benutzerdefinierte Ressource enthält benutzerdefinierte Einstellungen für Dashboards, die für das Systemmonitoring verwendet werden.
Hinweise
Bitten Sie Ihren IAM-Administrator der Organisation, Ihnen eine der folgenden Rollen im platform-obs-Namespace zuzuweisen, um die Berechtigungen zu erhalten, die Sie zum Konfigurieren oder Aufrufen der Speichergröße für Dashboards benötigen:
Observability Pipeline PA Creator: Erstellt benutzerdefinierte ObservabilityPipeline-Ressourcen. Fordern Sie die Clusterrolle „Observability Pipeline PA Creator“ (observabilitypipeline-pa-creator) an.
Observability Pipeline PA Editor: Bearbeitet oder ändert benutzerdefinierte ObservabilityPipeline-Ressourcen. Fordern Sie die Clusterrolle „Observability Pipeline PA Editor“ (observabilitypipeline-pa-editor) an.
Observability Pipeline PA Viewer: Kann benutzerdefinierte ObservabilityPipeline-Ressourcen aufrufen. Fordern Sie die Clusterrolle „Observability Pipeline PA Viewer“ (observabilitypipeline-pa-viewer) an.
Bevor Sie die Speichergröße für Dashboards konfigurieren, führen Sie die folgenden Schritte aus:
Legen Sie den Pfad der kubeconfig-Datei als Umgebungsvariable fest:
exportKUBECONFIG=KUBECONFIG_FILE
Ersetzen Sie KUBECONFIG_FILE durch den Pfad der kubeconfig-Datei des Administratorclusters der Organisation.
Aktualisieren Sie den Wert storageSize, der im Feld monitoring verschachtelt ist:
# 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....
Speichern Sie die Änderung und beenden Sie den Befehlszeileneditor.
Beispielkonfiguration
Die folgende YAML-Datei zeigt eine Beispielkonfiguration der benutzerdefinierten Ressource ObservabilityPipeline:
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 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 ..."]]