Uploaded image for project: 'OpenShift Service Mesh'
  1. OpenShift Service Mesh
  2. OSSM-8205

Prometheus data under `istio_requests_total{}` is missing in ClusterWide mode for mesh member app

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • OSSM 2.6.2
    • OSSM 2.6.2
    • Maistra
    • None
    • False
    • None
    • False
    • Hide
      • Install the latest kiali and ossm operator metadata bundles
      • Set up OSSM in cluster wide mode
        oc new-project istio-system
        oc apply -f - << EOF
        apiVersion: maistra.io/v2
        kind: ServiceMeshControlPlane
        metadata:
          name: basic
          namespace: istio-system
        spec:
          policy:
            type: Istiod
          addons:
            grafana:
              enabled: true
            kiali:
              enabled: true
            prometheus:
              enabled: true
          telemetry:
            type: Istiod
          version: v2.6
          mode: ClusterWide
        EOF
        sleep 3s
        oc -n istio-system wait --for condition=Ready smcp/basic --timeout 300s 
        
      • Set up book info app with traffic generator
        oc new-project bookinfo
        oc apply -f - <<EOF
        apiVersion: maistra.io/v1
        kind: ServiceMeshMember
        metadata:
          name: default
        spec:
          controlPlaneRef:
            name: basic
            namespace: istio-system
        EOF
        oc apply -f https://raw.githubusercontent.com/Maistra/istio/maistra-2.6/samples/bookinfo/platform/kube/bookinfo.yaml
        oc apply -f https://raw.githubusercontent.com/Maistra/istio/maistra-2.6/samples/bookinfo/networking/bookinfo-gateway.yaml
        
        export GATEWAY_URL=$(oc -n istio-system get route istio-ingressgateway -o jsonpath='{.spec.host}')
        curl https://raw.githubusercontent.com/kiali/kiali-test-mesh/master/traffic-generator/openshift/traffic-generator-configmap.yaml | SILENT='false' \
          DURATION='0s' ROUTE="http://${GATEWAY_URL}/productpage" RATE="1"  envsubst | oc apply -n bookinfo -f -
        wget -O traffic-generator.yaml https://raw.githubusercontent.com/kiali/kiali-test-mesh/master/traffic-generator/openshift/traffic-generator.yaml
        oc apply --validate=false -n bookinfo -f traffic-generator.yaml
        
      Show
      Install the latest kiali and ossm operator metadata bundles Set up OSSM in cluster wide mode oc new -project istio-system oc apply -f - << EOF apiVersion: maistra.io/v2 kind: ServiceMeshControlPlane metadata: name: basic namespace: istio-system spec: policy: type: Istiod addons: grafana: enabled: true kiali: enabled: true prometheus: enabled: true telemetry: type: Istiod version: v2.6 mode: ClusterWide EOF sleep 3s oc -n istio-system wait -- for condition=Ready smcp/basic --timeout 300s Set up book info app with traffic generator oc new -project bookinfo oc apply -f - <<EOF apiVersion: maistra.io/v1 kind: ServiceMeshMember metadata: name: default spec: controlPlaneRef: name: basic namespace: istio-system EOF oc apply -f https: //raw.githubusercontent.com/Maistra/istio/maistra-2.6/samples/bookinfo/platform/kube/bookinfo.yaml oc apply -f https: //raw.githubusercontent.com/Maistra/istio/maistra-2.6/samples/bookinfo/networking/bookinfo-gateway.yaml export GATEWAY_URL=$(oc -n istio-system get route istio-ingressgateway -o jsonpath= '{.spec.host}' ) curl https: //raw.githubusercontent.com/kiali/kiali-test-mesh/master/traffic-generator/openshift/traffic-generator-configmap.yaml | SILENT= ' false ' \ DURATION= '0s' ROUTE= "http: //${GATEWAY_URL}/productpage" RATE= "1" envsubst | oc apply -n bookinfo -f - wget -O traffic-generator.yaml https: //raw.githubusercontent.com/kiali/kiali-test-mesh/master/traffic-generator/openshift/traffic-generator.yaml oc apply --validate= false -n bookinfo -f traffic-generator.yaml

      When SMCP mode is clusterwide, the Kiali doesn't show inbound traffic for mesh application, only for for istio namespace.
      (bookinfo has traffic generator and the responses are 200 via istio gateway, so the bookinfo application works and it was set correctly).

      This is because the `istio_requests_total{}` in the prometheus don't contains data for bookinfo applications, only Gateway->productPage (see thread also here: https://redhat-internal.slack.com/archives/CHR7P722J/p1727445666103409 )

      With SMCP mode MultiTenant, it works correctly. (you can try the same reproducer as above, only change mode from ClusterWide to MultiTenant )

      It happens for all SMCP versions (2.6 , 2.5 , 2.4)

      It works correctly with both modes (ClusterWide or MultiTenant) in the OSSM 2.6.1

              yuaxu@redhat.com Yuanlin Xu
              mkralik@redhat.com Matej Kralik
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: