Skip to content

Commit b42789a

Browse files
authored
feat: add azure flexible server for postgresql alerts (#1546)
1 parent dc018f7 commit b42789a

File tree

2 files changed

+91
-0
lines changed

2 files changed

+91
-0
lines changed

csp-mixin/alerts/azure-alerts.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,3 +199,50 @@ groups:
199199
summary: 'Azure VNet Peering Connection Issues.'
200200
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.'
201201
dashboard_url: '/a/grafana-csp-app/azure/dashboards/vnet'
202+
203+
- name: azure.flexibleserverspostgresql
204+
rules:
205+
- alert: AzureFlexibleServerHighCpuUtilization
206+
expr: |
207+
azure_microsoft_dbforpostgresql_flexibleservers_cpu_percent_average_percent{resourceName!=""} > 90
208+
for: 5m
209+
keep_firing_for: 10m
210+
labels:
211+
severity: critical
212+
service: 'Azure PostgreSQL Flexible Servers'
213+
serviceId: 'microsoft.dbforpostgresql/flexibleservers'
214+
namespace: cloud-provider-azure
215+
annotations:
216+
summary: 'Flexible Server CPU utilization is too high.'
217+
description: 'The Flexible Server {{ $labels.resourceName }} is under heavy load and may become unresponsive.'
218+
dashboard_url: '/a/grafana-csp-app/azure/dashboards/postgresql-flexible-servers'
219+
220+
- alert: AzureFlexibleServerHighMemoryUsage
221+
expr: |
222+
azure_microsoft_dbforpostgresql_flexibleservers_memory_percent_average_percent{resourceName!=""} > 90
223+
for: 5m
224+
keep_firing_for: 10m
225+
labels:
226+
severity: critical
227+
service: 'Azure PostgreSQL Flexible Servers'
228+
serviceId: 'microsoft.dbforpostgresql/flexibleservers'
229+
namespace: cloud-provider-azure
230+
annotations:
231+
summary: 'Flexible Server Memory usage is too high.'
232+
description: 'The Flexible Server {{ $labels.resourceName }} is experiencing high memory usage, which may lead to performance degradation.'
233+
dashboard_url: '/a/grafana-csp-app/azure/dashboards/postgresql-flexible-servers'
234+
235+
- alert: AzureFlexibleServerHighStorageUsage
236+
expr: |
237+
azure_microsoft_dbforpostgresql_flexibleservers_storage_percent_maximum_percent{resourceName!=""} > 90
238+
for: 5m
239+
keep_firing_for: 10m
240+
labels:
241+
severity: critical
242+
service: 'Azure PostgreSQL Flexible Servers'
243+
serviceId: 'microsoft.dbforpostgresql/flexibleservers'
244+
namespace: cloud-provider-azure
245+
annotations:
246+
summary: 'Flexible Server Storage usage is too high.'
247+
description: 'The Flexible Server {{ $labels.resourceName }} is running low on storage space, which may impact database operations.'
248+
dashboard_url: '/a/grafana-csp-app/azure/dashboards/postgresql-flexible-servers'

csp-mixin/prometheus_rules_out/prometheus_alerts.yaml

Lines changed: 44 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)