ai cooking
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Alerts (#442)

* add a alert rule on our crummy logs

* two alerts

* remvoe some junk

---------

Co-authored-by: paul miller <paul.miller>

authored by

Paul Miller
paul miller
and committed by
GitHub
b6ad96b9 4f77455e

+100
+49
deploy/azure/errorsalert.json
··· 1 + { 2 + "apiVersion": "2026-03-01", 3 + "id": "/subscriptions/9f43d7e0-b18f-41e2-82cd-3fddc93b7b76/resourceGroups/careme/providers/microsoft.insights/scheduledqueryrules/careme errors", 4 + "name": "careme errors", 5 + "type": "microsoft.insights/scheduledqueryrules", 6 + "kind": "LogAlert", 7 + "location": "westus3", 8 + "tags": {}, 9 + "properties": { 10 + "createdWithApiVersion": "2025-01-01-preview", 11 + "displayName": "careme errors", 12 + "description": "did we get errors? ", 13 + "severity": 3, 14 + "enabled": true, 15 + "evaluationFrequency": "PT1H", 16 + "scopes": [ 17 + "/subscriptions/9f43d7e0-b18f-41e2-82cd-3fddc93b7b76/resourceGroups/careme/providers/microsoft.insights/components/caremeinsights" 18 + ], 19 + "targetResourceTypes": [ 20 + "microsoft.insights/components" 21 + ], 22 + "windowSize": "PT1H", 23 + "overrideQueryTimeRange": "P2D", 24 + "criteria": { 25 + "allOf": [ 26 + { 27 + "query": "traces\n| where timestamp > ago(1h)\n| where severityLevel > 1\n| project timestamp, message, customDimensions\n| where customDimensions[\"error\"] !contains \"IpLHR8yDDEY\"\n\n", 28 + "timeAggregation": "Count", 29 + "dimensions": [], 30 + "resourceIdColumn": "", 31 + "operator": "GreaterThan", 32 + "threshold": 0, 33 + "failingPeriods": { 34 + "numberOfEvaluationPeriods": 1, 35 + "minFailingPeriodsToAlert": 1 36 + } 37 + } 38 + ] 39 + }, 40 + "autoMitigate": false, 41 + "actions": { 42 + "actionGroups": [ 43 + "/subscriptions/9F43D7E0-B18F-41E2-82CD-3FDDC93B7B76/resourceGroups/careme/providers/microsoft.insights/actionGroups/mailme" 44 + ], 45 + "customProperties": {}, 46 + "actionProperties": {} 47 + } 48 + } 49 + }
+51
deploy/azure/newusers.json
··· 1 + { 2 + "apiVersion": "2026-03-01", 3 + "id": "/subscriptions/9f43d7e0-b18f-41e2-82cd-3fddc93b7b76/resourceGroups/careme/providers/microsoft.insights/scheduledqueryrules/new users", 4 + "name": "new users", 5 + "type": "microsoft.insights/scheduledqueryrules", 6 + "kind": "LogAlert", 7 + "location": "westus3", 8 + "tags": {}, 9 + "properties": { 10 + "createdWithApiVersion": "2025-01-01-preview", 11 + "displayName": "new users", 12 + "description": "people signed up!", 13 + "severity": 3, 14 + "enabled": true, 15 + "evaluationFrequency": "P1D", 16 + "scopes": [ 17 + "/subscriptions/9f43d7e0-b18f-41e2-82cd-3fddc93b7b76/resourceGroups/careme/providers/microsoft.insights/components/caremeinsights" 18 + ], 19 + "targetResourceTypes": [ 20 + "microsoft.insights/components" 21 + ], 22 + "windowSize": "P1D", 23 + "overrideQueryTimeRange": "P2D", 24 + "criteria": { 25 + "allOf": [ 26 + { 27 + "query": "traces\n| where timestamp > ago(1d)\n| where message startswith \"created new user\"\n", 28 + "timeAggregation": "Count", 29 + "dimensions": [], 30 + "resourceIdColumn": "", 31 + "operator": "GreaterThan", 32 + "threshold": 0, 33 + "failingPeriods": { 34 + "numberOfEvaluationPeriods": 1, 35 + "minFailingPeriodsToAlert": 1 36 + } 37 + } 38 + ] 39 + }, 40 + "autoMitigate": false, 41 + "actions": { 42 + "actionGroups": [ 43 + "/subscriptions/9f43d7e0-b18f-41e2-82cd-3fddc93b7b76/resourcegroups/careme/providers/microsoft.insights/actiongroups/mailme" 44 + ], 45 + "customProperties": {}, 46 + "actionProperties": { 47 + "Email.Subject": "New users!" 48 + } 49 + } 50 + } 51 + }