Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Crea SLO
En esta página, se describe cómo crear un objetivo de nivel de servicio (SLO) en la consola deGoogle Cloud . Si deseas obtener información para crear un SLO de manera programática, consulta Trabaja con la API de SLO
Si deseas obtener una descripción general y más información para diseñar los SLO, consulta los siguientes vínculos:
Selecciona el proyecto Google Cloud en la lista desplegable de la barra de menú.
Haz clic en el servicio para el que deseas crear un SLO.
En la barra de navegación izquierda, haz clic en Estado.
Haz clic en el vínculo Crear un SLO.
Haz clic en Set your service-level indicator (SLI) para seleccionar el tipo de indicador de nivel de servicio (SLI) para realizar el seguimiento de este SLO. Elige una de estas opciones:
Disponibilidad: Es la proporción entre la cantidad de respuestas realizadas de forma correcta y la cantidad total de respuestas. Las solicitudes que fallan antes de llegar al proxy de sidecar de Envoy para tu servicio (debido a fallas de red o de DNS, por ejemplo) no se incluyen en esta proporción.
Latencia: Es la proporción entre la cantidad de llamadas que se encuentran por debajo del límite de latencia especificado y la cantidad total de llamadas.
Para los SLI de latencia, ingresa el límite de latencia en milisegundos.
En la sección Objetivo de rendimiento, ingresa un porcentaje en el campo Objetivo para establecer el objetivo de rendimiento del SLI.
Cloud Service Mesh usa este valor para calcular el porcentaje de error aceptable que tienes para este SLO.
En la sección Período de cumplimiento, selecciona opciones para Tipo de período y Duración del período. Consulta Períodos de cumplimiento para obtener más información sobre estas opciones de configuración.
Como alternativa, en la sección Establece tu SLI, puedes seleccionar el SLI basado en Windows. Un SLI con ventanas puede ayudarte a detectar períodos en los que el servicio no alcanzará el objetivo de cumplimiento del SLO (por ejemplo, cuando hay aumentos en la cantidad de solicitudes que aumentan la latencia durante un período breve). Cuando seleccionas esta opción, debes especificar lo siguiente:
Criterio de calidad: Establece un umbral para el porcentaje de “buen rendimiento” que debe cumplirse para que una ventana determinada se considere “buena”.
Duración: Establece la duración de cada ventana, durante la cual se medirá el rendimiento del SLO en incrementos durante el período de cumplimiento.
Por ejemplo, supongamos que tienes una disponibilidad del SLO con un período progresivo de 7 días y que el objetivo del SLO es del 99%. Luego, agregas un criterio de calidad del 95% y una duración de 5 minutos.
Para cumplir con el objetivo, el servicio necesita que el 95% de todas las ventanas de 5 minutos en los últimos 7 días estén disponibles al menos el 99% del tiempo.
De manera opcional, haz clic en Name your SLO para cambiar el nombre visible predeterminado del SLO. Cloud Service Mesh proporciona un nombre predeterminado que describe el SLO según la configuración.
[[["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)"],[],[],null,["# Creating SLOs\n=============\n\n| **Note:** This guide only supports Cloud Service Mesh with Istio APIs and does not support Google Cloud APIs. For more information see, [Cloud Service Mesh overview](/service-mesh/v1.24/docs/overview).\n\nThis page describes how to create a service level objective (SLO) in the\nGoogle Cloud console. For information on creating a SLO programmatically,\nsee\n[Working with the SLO API](/stackdriver/docs/solutions/slo-monitoring/api/api-structures)\n\nFor an overview and information on designing SLOs, see the following:\n\n- [Service level objectives overview](/service-mesh/v1.24/docs/observability/slo-overview)\n- [Designing SLOs](/service-mesh/v1.24/docs/observability/design-slo)\n\nTo create an SLO:\n\n1. Go to the **Health** tab for a service:\n\n 1. In the Google Cloud console, go to **Cloud Service Mesh**.\n\n [Go to Cloud Service Mesh](https://console.cloud.google.com/kubernetes/services)\n 2. Select the Google Cloud project from the drop-down list on the menu bar.\n\n 3. Click the service that you want to create an SLO for.\n\n 4. In the left navigation bar, click **Health**.\n\n2. Click the **Create an SLO** link.\n\n3. Click **Set your service-level indicator (SLI)** to select the type of service level indicator (SLI)\n to track for this SLO. Choose one of the following:\n\n - **Availability**: The ratio of the number of successful responses to the number of all responses. Requests that fail before they reach the Envoy sidecar proxy for your service (because of networking or DNS failures, for example) aren't included in this ratio.\n - **Latency** : The ratio of the number of calls that are below the specified **Latency Threshold** to the number of all calls.\n4. For latency SLIs, enter the **Latency Threshold** in milliseconds.\n\n5. In the **Performance Goal** section, enter a percentage in the **Goal**\n field to set the performance target for the SLI.\n Cloud Service Mesh uses this value to calculate the\n [error budget](/service-mesh/v1.24/docs/observability/design-slo#error_budgets)\n you have for this SLO.\n\n6. In the **Compliance Period** section, select the **Period Type** and the\n **Period Length** . See\n [Compliance periods](/service-mesh/v1.24/docs/observability/design-slo#compliance_periods)\n for more information on these settings.\n\n7. Alternatively, in the **Set your SLI** section, you may select **Windows-based** SLI. A windowed SLI can help you catch\n periods of time when the service won't meet the SLO **Compliance target**\n (such as when there are spikes in the number of requests that increase\n latency for a short period of time). When you select this option, you must\n specify:\n\n - **Goodness criterion**: Set a threshold for the percentage of \"good performance\" that must be met in order for a given window to count as \"good.\"\n - **Duration**: Set the length of each window, over which SLO performance will be measured in increments during the compliance period.\n\n For example, suppose you have an **Availability** SLO with a\n **Rolling** **7** day period, and an **SLO Goal** of **99** %. Then you add\n a **Goodness criterion** of **95** % and a **Duration** of **5** minutes.\n To be compliant, the service needs **95** % of all **5** minute windows\n over the last **7** days to be available at least **99**% of the time.\n8. Optionally, click **Name your SLO** to change the default SLO display\n name. Cloud Service Mesh supplies a default name that describes the\n SLO based on the settings.\n\n9. Click **Submit**.\n\nWhat's next\n-----------\n\n- [Monitoring SLOs](/service-mesh/v1.24/docs/observability/monitor-slo)\n- [Creating an alerting policy on an SLO](/service-mesh/v1.24/docs/observability/alert-policy-slo)"]]