modules/slos/templates/availability.yaml (17 lines of code) (raw):

# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. project_id: ${project_id} service: ${service_id} slo_id: availability-window display_name: > - "Availability - ${availability_goal} - Calendar ${availability_rolling_period} Day goal: ${availability_goal} rolling_period_days: ${availability_rolling_period} type: request_based_sli method: good_total_ratio good_total_ratio: 0.95 good_service_filter: > resource.type="istio_canonical_service" metric.type="istio.io/service/server/request_count" metric.label.destination_service_name=${service_name} total_service_filter: > resource.type="istio_canonical_service" metric.type="istio.io/service/server/request_count" metric.label.destination_service_name=${service_name} #https://github.com/terraform-google-modules/terraform-google-slo/blob/master/modules/slo-native/dynamic.tf #https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/identifying-custom-sli