You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

调整Istio metrics移除指定维度配置未生效问题解决

Istio自定义指标移除维度配置不生效问题

问题

我尝试修改Istio metrics,减少部分指标的默认维度,参考官方文档示例编写的配置如下:

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维度,但实际该维度仍存在,想确认是配置有误还是存在Bug。

版本信息

  • Kubernetes:Azure Kubernetes Services (1.20.9)
  • Istio版本:1.11.4,安装命令为istioctl install --set profile=demo -y

解决方案

配置不生效的原因为我使用kubectl应用IstioOperator资源,改用istioctl应用配置后,功能完全符合预期。

内容的提问来源于stack exchange,提问作者macpak

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.09.24 13:54:07