Skip to content

Commit

Permalink
Fix FAQ templating format and change workload to target.
Browse files Browse the repository at this point in the history
  • Loading branch information
kellyfj committed Jul 7, 2023
1 parent 2b80c47 commit eda3fd8
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions docs/gitbook/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -391,20 +391,20 @@ sum(
rate(
istio_requests_total{
reporter="destination",
destination_workload_namespace=~"$namespace",
destination_workload=~"$workload",
destination_workload_namespace=~"{{ namespace }}",
destination_workload=~"{{ target }}",
response_code!~"5.*"
}[$interval]
}[{{ interval }}]
)
)
/
sum(
rate(
istio_requests_total{
reporter="destination",
destination_workload_namespace=~"$namespace",
destination_workload=~"$workload"
}[$interval]
destination_workload_namespace=~"{{ namespace }}",
destination_workload=~"{{ target }}"
}[{{ interval }}]
)
)
```
Expand All @@ -415,8 +415,8 @@ Envoy query (App Mesh):
sum(
rate(
envoy_cluster_upstream_rq{
kubernetes_namespace="$namespace",
kubernetes_pod_name=~"$workload",
kubernetes_namespace="{{ namespace }}",
kubernetes_pod_name=~"{{ target }}",
envoy_response_code!~"5.*"
}[$interval]
)
Expand All @@ -425,8 +425,8 @@ sum(
sum(
rate(
envoy_cluster_upstream_rq{
kubernetes_namespace="$namespace",
kubernetes_pod_name=~"$workload"
kubernetes_namespace="{{ namespace }}",
kubernetes_pod_name=~"{{ target }}"
}[$interval]
)
)
Expand All @@ -438,7 +438,7 @@ Envoy query (Contour and Gloo):
sum(
rate(
envoy_cluster_upstream_rq{
envoy_cluster_name=~"$namespace-$workload",
envoy_cluster_name=~"{{ namespace }}-{{ target }}",
envoy_response_code!~"5.*"
}[$interval]
)
Expand All @@ -447,7 +447,7 @@ sum(
sum(
rate(
envoy_cluster_upstream_rq{
envoy_cluster_name=~"$namespace-$workload",
envoy_cluster_name=~"{{ namespace }}-{{ target }}",
}[$interval]
)
)
Expand Down Expand Up @@ -476,8 +476,8 @@ histogram_quantile(0.99,
irate(
istio_request_duration_milliseconds_bucket{
reporter="destination",
destination_workload=~"$workload",
destination_workload_namespace=~"$namespace"
destination_workload=~"{{ target }}",
destination_workload_namespace=~"{{ namespace }}"
}[$interval]
)
) by (le)
Expand All @@ -491,8 +491,8 @@ histogram_quantile(0.99,
sum(
irate(
envoy_cluster_upstream_rq_time_bucket{
kubernetes_pod_name=~"$workload",
kubernetes_namespace=~"$namespace"
kubernetes_pod_name=~"{{ target }}",
kubernetes_namespace=~"{{ namespace }}"
}[$interval]
)
) by (le)
Expand All @@ -515,8 +515,8 @@ If you're using Istio with Gateway API, the Prometheus query needs to include `r
rate(
istio_requests_total{
reporter="source",
destination_workload_namespace=~"$namespace",
destination_workload=~"$workload",
destination_workload_namespace=~"{{ namespace }}",
destination_workload=~"{{ target }}",
response_code!~"5.*"
}[$interval]
)
Expand All @@ -526,8 +526,8 @@ sum(
rate(
istio_requests_total{
reporter="source",
destination_workload_namespace=~"$namespace",
destination_workload=~"$workload"
destination_workload_namespace=~"{{ namespace }}",
destination_workload=~"{{ target }}"
}[$interval]
)
) * 100
Expand Down

0 comments on commit eda3fd8

Please sign in to comment.