Commit 2979308d authored by Mayank Saggar [Microsoft]'s avatar Mayank Saggar [Microsoft]
Browse files

Missed typo in postgres cpu alert

parent bcea60cf
Pipeline #58656 passed with stages
in 1 minute and 12 seconds
......@@ -261,7 +261,7 @@ log-alerts = {
frequency = 5,
time-window = 5,
action-group-name = ["ProdActionGroup", "DevActionGroup"],
query = "KubePodInventory\n| where Name has \"airflow\"\n| parse kind=regex Name with partitionId \"-airflow-[[:graph:]]\"\n| extend clusterName = case(partitionId == \"\", \"common-cluster\",\n partitionId)\n| distinct clusterName \n| extend dummy=1 \n| join kind=inner \n (AzureMetrics\n | where ResourceProvider == \"MICROSOFT.DBFORPOSTGRESQL\" \n | parse kind=regex _ResourceId with @\"\\/subscriptions\\/([0-9a-zA-Z\\-])*\\/resourcegroups\\/([0-9a-zA-Z\\-])*\\/providers\\/microsoft\\.dbforpostgresql\\/servers\\/\" ResourceName\n | extend dummy=1)\n on dummy\n| where ResourceName contains clusterName\n| project-away dummy, dummy1\n| where MetricName == \"cpu_percent\"\n| summarize AggregatedValue= avg(Average) by ResourceName, bin(TimeGenerated, 5m), MetricName, clusterName",
query = "KubePodInventory\n| where Name has \"airflow\"\n| parse kind=regex Name with partitionId \"-airflow-[[:graph:]]\"\n| extend clusterName = case(partitionId == \"\", \"sr\",\n partitionId)\n| distinct clusterName \n| extend dummy=1 \n| join kind=inner \n (AzureMetrics\n | where ResourceProvider == \"MICROSOFT.DBFORPOSTGRESQL\" \n | parse kind=regex _ResourceId with @\"\\/subscriptions\\/([0-9a-zA-Z\\-])*\\/resourcegroups\\/([0-9a-zA-Z\\-])*\\/providers\\/microsoft\\.dbforpostgresql\\/servers\\/\" ResourceName\n | extend dummy=1)\n on dummy\n| where ResourceName contains clusterName\n| project-away dummy, dummy1\n| where MetricName == \"cpu_percent\"\n|extend clusterName = case(clusterName == \"sr\", \"common-cluster\",\n clusterName)\n| summarize AggregatedValue= avg(Average) by ResourceName, bin(TimeGenerated, 5m), MetricName, clusterName",
# Threshold value for CPU usage which when exceeded will raise alert
trigger-threshold = 80,
trigger-operator = "GreaterThan",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment