diff --git a/docs/en/changes/changes.md b/docs/en/changes/changes.md index 810e21a8de..a2c8424448 100644 --- a/docs/en/changes/changes.md +++ b/docs/en/changes/changes.md @@ -13,6 +13,7 @@ * Fix component ID of topology overlap due to storage layer bugs. * [Breaking Change] Enhance JDBC storage through merging tables and managing day-based table rolling. * [Breaking Change] Sharding-MySQL implementations and tests get removed due to we have the day-based rolling mechanism by default +* Fix otel k8s-cluster rule add namespace dimension for MAL aggregation calculation(Deployment Status,Deployment Spec Replicas) #### Documentation diff --git a/oap-server/server-starter/src/main/resources/otel-rules/k8s/k8s-cluster.yaml b/oap-server/server-starter/src/main/resources/otel-rules/k8s/k8s-cluster.yaml index 8310351653..b141d5c391 100644 --- a/oap-server/server-starter/src/main/resources/otel-rules/k8s/k8s-cluster.yaml +++ b/oap-server/server-starter/src/main/resources/otel-rules/k8s/k8s-cluster.yaml @@ -66,9 +66,9 @@ metricsRules: - name: deployment_total exp: kube_deployment_labels.sum(['cluster']) - name: deployment_status - exp: kube_deployment_status_condition.valueEqual(1).tagMatch('condition' , 'Available').sum(['cluster' , 'deployment' ,'condition' , 'status']).tag({tags -> tags.remove('condition')}) + exp: kube_deployment_status_condition.valueEqual(1).tagMatch('condition' , 'Available').sum(['cluster' , 'deployment' , 'namespace' ,'condition' , 'status']).tag({tags -> tags.remove('condition')}) - name: deployment_spec_replicas - exp: kube_deployment_spec_replicas.sum(['cluster' , 'deployment']) + exp: kube_deployment_spec_replicas.sum(['cluster' , 'deployment' , 'namespace']) - name: service_total exp: kube_service_info.sum(['cluster'])