群名称），并且给 <em>主</em> 集群添加一个配置：</p><pre><code class=language-yaml data-expandlinks=true data-repo=istio>scrape_configs:
- job_name: &#39;federate-{{REMOTE_CLUSTER_NAME}}&#39;
  scrape_interval: 15s

  honor_labels: true
  metrics_path: &#39;/federate&#39;

  params:
    &#39;match[]&#39;:
      - &#39;{job=&#34;kubernetes-pods}&#39;

  static_configs:
    - targets:
      - &#39;prometheus.{{REMOTE_INGRESS_DOMAIN}}&#39;
      labels:
        cluster: &#39;{{REMOTE_CLUSTER_N