[BUG] otel k8s-cluster rule, add namespace dimension for MAL aggregation calculation(Deployment Status,Deployment Spec Replicas) (#10563)

This commit is contained in:
innerpeacez 2023-03-20 16:43:01 +08:00 committed by GitHub
parent 3a8e0c11b7
commit 3662b01365
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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'])