Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Membuat SLO
Halaman ini menjelaskan cara membuat tujuan tingkat layanan (SLO) di
konsolGoogle Cloud . Untuk informasi tentang cara membuat SLO secara terprogram,
lihat
Menggunakan SLO API
Untuk ringkasan dan informasi tentang cara mendesain SLO, lihat artikel berikut:
Pilih project Google Cloud dari menu drop-down di panel menu.
Klik layanan yang ingin Anda buatkan SLO-nya.
Di menu navigasi sebelah kiri, klik Kesehatan.
Klik link Create an SLO.
Klik Jenis SLI untuk memilih jenis indikator tingkat layanan (SLI)
yang akan dilacak untuk SLO ini. Pilih salah satu opsi berikut:
Ketersediaan: Rasio jumlah respons yang berhasil terhadap jumlah semua respons. Permintaan yang gagal sebelum
mencapai proxy sidecar Envoy untuk layanan Anda (misalnya, karena kegagalan jaringan atau
DNS) tidak disertakan dalam rasio ini.
Latensi: Rasio jumlah panggilan yang berada di bawah
Ambang Batas Latensi yang ditentukan terhadap jumlah semua panggilan.
Untuk SLI latensi, masukkan Nilai Minimum Latensi dalam milidetik.
Di bagian SLO Goal, masukkan persentase di kolom Compliance
target untuk menetapkan target performa SLI. Cloud Service Mesh
menggunakan nilai ini untuk menghitung
anggaran error
yang Anda miliki untuk SLO ini.
Di bagian Compliance Period, pilih Period Type dan
Period Length. Lihat
Periode kepatuhan
untuk mengetahui informasi selengkapnya tentang setelan ini.
Secara opsional, pilih Tambahkan SLI Mode Jendela. SLI berbingkai dapat membantu Anda menangkap
periode waktu saat layanan tidak akan memenuhi Target kepatuhan SLO
(seperti saat ada lonjakan jumlah permintaan yang meningkatkan
latensi untuk jangka waktu yang singkat). Saat memilih opsi ini, Anda harus
menentukan:
Target Periode: Masukkan target persentase untuk setiap periode.
Durasi Periode: Masukkan durasi waktu selama performa SLO akan diukur dalam penambahan selama periode kepatuhan.
Misalnya, Anda memiliki SLO Ketersediaan dengan periode 7 hari Bergulir, dan Sasaran SLO sebesar 99%. Kemudian, tambahkan
Target Jendela sebesar 95% dan Durasi Jendela sebesar 5 menit.
Agar mematuhi kebijakan, layanan harus tersedia setidaknya 99% sepanjang waktu selama 7 hari terakhir, dengan 95% dari semua periode 5 menit.
Jika ingin, klik Beri nama SLO untuk mengubah nama tampilan SLO default. Cloud Service Mesh menyediakan nama default yang mendeskripsikan SLO
berdasarkan setelan.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-19 UTC."],[],[],null,["# Creating SLOs\n=============\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.19/docs/observability/slo-overview)\n- [Designing SLOs](/service-mesh/v1.19/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/anthos/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 **SLI Type** 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 **SLO Goal** section, enter a percentage in the **Compliance\n target** field to set the performance target for the SLI. Cloud Service Mesh\n uses this value to calculate the\n [error budget](/service-mesh/v1.19/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.19/docs/observability/design-slo#compliance_periods)\n for more information on these settings.\n\n7. Optionally, select **Add a Windowed 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 - **Window Target**: Enter a percentage target for each window.\n - **Window Duration:** Enter the length of time 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 **Window Target** of **95** % and a **Window 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 SLO\n based on the settings.\n\n9. Click **Submit**.\n\nWhat's next\n-----------\n\n- [Monitoring SLOs](/service-mesh/v1.19/docs/observability/monitor-slo)\n- [Creating an alerting policy on an SLO](/service-mesh/v1.19/docs/observability/alert-policy-slo)"]]