Problem
I am trying to modify metrics so that some of them have less dimensions than the default ones. I follow examples from here. My code looks like:
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"]
How I understand the code, now the istio_request_total
should not have destination_canonical_revision
dimensions, however it does have. Please let me know if I am doing something incorrectly or this is a bug.
Versions
Kubernetes: Azure Kubernetes Services (1.20.9)
Istio 1.11.4 installed with command istioctl install --set profile=demo -y
Solution
It did not work because I was using kubectl to add IstioOperator. After I switched to istioctl, everything works as expected.
Community wiki answer to summarise the problem.
OP has resolved the issue and posted the comment: