0

问题

我正在尝试修改指标,以使其中一些指标的维度少于默认维度。我按照这里的例子。我的代码如下所示:

apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
metadata:
  name: my-istio-operator
  namespace: default
spec:
  values:
    telemetry:
      v2:
        prometheus:
          configOverride:
            inboundSidecar:
              stat_prefix: istio
              metrics:
                - name: requests_total
                  tags_to_remove: ["destination_canonical_revision"]
            outboundSidecar:
              stat_prefix: istio
              metrics:
                - name: requests_total
                  tags_to_remove: ["destination_canonical_revision"]

我如何理解代码,现在不istio_request_total应该有destination_canonical_revision尺寸,但它确实有。如果我做错了什么或者这是一个错误,请告诉我。

版本

Kubernetes:使用命令安装的 Azure Kubernetes Services (1.20.9)
Istio 1.11.4istioctl install --set profile=demo -y

解决方案

它不起作用,因为我使用 kubectl 添加 IstioOperator。在我切换到 istioctl 后,一切都按预期工作。

4

1 回答 1

0

社区 wiki 回答以总结问题。

OP 已解决该问题并发表评论:

它不起作用,因为我使用 kubectl 添加 IstioOperator。在我切换到 istioctl 后,一切都按预期工作。

于 2021-12-28T16:11:15.047 回答