Skip to content

Commit b837743

Browse files
authored
create new azure virtual network alerts (#1430)
* create new azure virtual network alerts * fix lint
1 parent 49ff0fe commit b837743

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

csp-mixin/alerts/azure-alerts.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,3 +165,33 @@ groups:
165165
summary: 'Low database tempdb log space.'
166166
description: 'Look for active sessions that might be using TempDB intensively, identify stored procedures or queries that create temporary tables or objects, and also look for long-running or memory-intensive queries that rely heavily on TempDB into the {{ $labels.resourceName }} database.'
167167
dashboard_url: '/a/grafana-csp-app/azure/dashboards/sqldatabase'
168+
169+
- alert: AzureVNetSubnetIPExhaustion
170+
expr: |
171+
((azure_microsoft_network_virtualnetworks_availablesubnetaddresses_count{job=~".+",resourceGroup=~".+",subscriptionName=~".+",resourceName=~".+"}/(azure_microsoft_network_virtualnetworks_availablesubnetaddresses_count{job=~".+",resourceGroup=~".+",subscriptionName=~".+",resourceName=~".+"} + azure_microsoft_network_virtualnetworks_assignedsubnetaddresses_count{job=~".+",resourceGroup=~".+",subscriptionName=~".+",resourceName=~".+"})) * 100) < 10
172+
for: 5m
173+
keep_firing_for: 10m
174+
labels:
175+
severity: critical
176+
service: 'Azure Virtual network'
177+
serviceId: 'microsoft.network/virtualnetworks'
178+
namespace: cloud-provider-azure
179+
annotations:
180+
summary: 'Subnet IP Address Exhaustion Detected.'
181+
description: 'IP addresses for the subnet {{ $labels.subnet_name }} on the Virtual network {{ $labels.resourceName }} have dropped below the critical threshold. This may cause connectivity issues for new resources requiring IP allocations. Consider resizing the subnet or optimizing IP usage.'
182+
dashboard_url: '/a/grafana-csp-app/azure/dashboards/vnet'
183+
184+
- alert: AzureVNetPeeringConnectionFailures
185+
expr: |
186+
((azure_microsoft_network_virtualnetworks_connectedpeerings_count{job=~".+", resourceGroup=~".+", subscriptionName=~".+", resourceName=~".+"} / azure_microsoft_network_virtualnetworks_peerings_count{job=~".+", resourceGroup=~".+", subscriptionName=~".+", resourceName=~".+"}) * 100) < 80
187+
for: 5m
188+
keep_firing_for: 10m
189+
labels:
190+
severity: critical
191+
service: 'Azure Virtual network'
192+
serviceId: 'microsoft.network/virtualnetworks'
193+
namespace: cloud-provider-azure
194+
annotations:
195+
summary: 'Azure VNet Peering Connection Issues.'
196+
description: 'The success rate of Virtual Network {{ $labels.resourceName }} peering connections has fallen below the defined threshold, indicating possible connectivity failures. Investigate potential misconfigurations, network latency, or service disruptions affecting peering communication.'
197+
dashboard_url: '/a/grafana-csp-app/azure/dashboards/vnet'

csp-mixin/prometheus_rules_out/prometheus_alerts.yaml

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)