ource_labels: [__name__]
    regex: &#39;workload:(.*)&#39;
    target_label: __name__
    action: replace
  params:
    &#39;match[]&#39;:
    - &#39;{__name__=~&#34;workload:(.*)&#34;}&#39;
    - &#39;{__name__=~&#34;pilot(.*)&#34;}&#39;
</code></pre><p>If you are using the <a href=https://github.com/coreos/prometheus-operator>Prometheus Operator</a>, use the following configuration instead:</p><pre><code class=language-yaml data-expandlinks=true data-repo=istio>apiVersion: monitoring.coreos.com/v1
kind: 