apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
  name: istio-metrics-aggregation
  labels:
    app.kubernetes.io/name: istio-prometheus
spec:
  groups:
  - name: &#34;istio.metricsAggregation-rules&#34;
    interval: 5s
    rules:
    - record: &#34;workload:istio_requests_total&#34;
      expr: &#34;sum without(instance, kubernetes_namespace, kubernetes_pod_name) (istio_requests_total)&#34;

    - record: &#34;workload:istio_request_duration_milliseconds_count&#34;
      expr: &#34;sum