[PromQL] Use Count and Count by (xx) to count the number of pods that hold many containers inside these pods.
Tối đang có 2 metrics: Bạn có thể thấy là 2 metrics của 2 container khác nhau nhưng cùng 1 pod.nếu như mình muốn tạo 1 query đếm số pods thì sẽ cần làm gì Đầu tiên chúng ta dùng count by (xxx) This part groups the metrics by the pod label and counts the…