diff --git a/internal/alerts/example-alert-template.json b/internal/alerts/example-alert-template.json index a13c164ba..b177d043a 100644 --- a/internal/alerts/example-alert-template.json +++ b/internal/alerts/example-alert-template.json @@ -218,7 +218,7 @@ }, { "alert": "Memory usage % greater than 75 for prometheus-collector containers on cluster ci-dev-aks-mac-eus", - "expression": "(sum(container_memory_working_set_bytes{namespace=\"kube-system\", container=\"prometheus-collector\", image!=\"\"}) by (container, pod) / sum(kube_pod_container_resource_limits{namespace=\"kube-system\", container=\"prometheus-collector\", resource=\"memory\"}) by (container, pod)) > 75", + "expression": "(sum(container_memory_working_set_bytes{namespace=\"kube-system\", container=\"prometheus-collector\", image!=\"\"}) by (container, pod) / sum(kube_pod_container_resource_limits{namespace=\"kube-system\", container=\"prometheus-collector\", resource=\"memory\"}) by (container, pod)) * 100> 75", "for": "PT3M", "annotations": { "description": "Memory usage greater than 75% for prometheus-collector containers on cluster ci-dev-aks-mac-eus" diff --git a/otelcollector/test/ci-cd/ci-cd-cluster.json b/otelcollector/test/ci-cd/ci-cd-cluster.json index 2eadfb019..ba6e1784f 100644 --- a/otelcollector/test/ci-cd/ci-cd-cluster.json +++ b/otelcollector/test/ci-cd/ci-cd-cluster.json @@ -937,7 +937,7 @@ }, { "alert": "[Concat('Memory usage greater than 75% for prometheus-collector containers on cluster', parameters('clusterName'))]", - "expression": "(sum(container_memory_working_set_bytes{namespace=\"kube-system\", container=\"prometheus-collector\", image!=\"\"}) by (container, pod) / sum(kube_pod_container_resource_limits{namespace=\"kube-system\", container=\"prometheus-collector\", resource=\"memory\"}) by (container, pod)) > 75", + "expression": "(sum(container_memory_working_set_bytes{namespace=\"kube-system\", container=\"prometheus-collector\", image!=\"\"}) by (container, pod) / sum(kube_pod_container_resource_limits{namespace=\"kube-system\", container=\"prometheus-collector\", resource=\"memory\"}) by (container, pod)) * 100> 75", "for": "PT3M", "annotations": { "description": "[Concat('Memory usage greater than 75% for prometheus-collector containers on cluster', parameters('clusterName'))]" @@ -976,4 +976,4 @@ } ], "outputs": {} -} \ No newline at end of file +}