Add custom metric

hi. I’m currently using istio 1.14.1 (installed by helm rancher-istio:100.4.0+up1.14.1). i can’t create custom metrics.
here is my code:

apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
metadata:
  namespace: istio-system
  name: add-metric-test
spec:
  profile: empty
  meshConfig:
   defaultConfig:
     proxyStatsMatcher:
       inclusionPrefixes:
       - istio_request_codes
  values:
    telemetry:
      v2:
        prometheus:
          configOverride:
            inboundSidecar:
              definitions:
              - name: request_codes
                type: COUNTER
                value: "(request.method.startsWith('GET') ? 1 : 1)"
            outboundSidecar:
              definitions:
              - name: request_codes
                type: COUNTER
                value: "(request.method.startsWith('GET') ? 1 : 1)"
            gateway:
              definitions:
              - name: request_codes
                type: COUNTER
                value: "(request.method.startsWith('GET') ? 1 : 1)"
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
metadata:
  namespace: istio-system
  name: modify-metric-request
spec:
  profile: empty
  values:
    telemetry:
      v2:
        prometheus:
          configOverride:
            inboundSidecar:
              metrics:
              - name: request_codes
                dimensions:
                  path: request.url_path
                  code: response.code
                  upstream: upstream_peer.name
                  downstream: downstream_peer.name
            outboundSidecar:
              metrics:
              - name: request_codes
                dimensions:
                  path: request.url_path
                  code: response.code
                  upstream: upstream_peer.name
                  downstream: downstream_peer.name
            gateway:
              metrics:
              - name: request_codes
                dimensions:
                  path: request.url_path
                  code: response.code
                  upstream: upstream_peer.name
                  downstream: downstream_peer.name

I add annotation for my pod :

Pod Template:
Labels: app=corporation

proxy.istio.io/config:
{ “holdApplicationUntilProxyStarts”: true, “terminationDrainDuration”: 30s ,
“extraStatTags”:[“path”,“code”,“upstream”,“downstream”],
“proxyStatsMatcher”: { “inclusionPrefixes” :[“istio_request_codes”]}
}

but it did not work .

updates:

i installed istiooperator:

istioctl operator init --namespace istio-operator --watchedNamespaces=istio-system,platform-dev,platform-qa

then i add new metrics ,but envoyfilter [stats-filter-1.14] remain the same .

still does not work

it seems that istiooperator is not taking effect (modify envoyfilter [stats-filter-1.14])