modules/slos/templates/latency.yaml (14 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: latency-window
display_name: >
- "Latency - ${latency_threshold}ms - ${latency_goal} - Calendar ${latency_rolling_period} Day
goal: ${latency_goal}
rolling_period_days: ${latency_rolling_period}
type: windows_based_sli
method: performance_window
method_performance: distribution_cut
window_period: ${latency_window}s
metric_filter: >
resource.type="istio_canonical_service"
metric.type="istio.io/service/server/response_latencies"
metric.label.destination_service_name=${service_name}
range_min: 0 # ms
range_max: ${latency_threshold} # ms