|
24 | 24 | { |
25 | 25 | alert: 'SapHanaHighPhysicalMemoryUsage', |
26 | 26 | expr: ||| |
27 | | - 100 * sum without (database_name)(hanadb_host_memory_resident_mb{%(filteringSelector)s}) / sum without (database_name) (hanadb_host_memory_physical_total_mb{%(filteringSelector)s}) > %(alertsCriticalHighPhysicalMemoryUsage)s |
| 27 | + 100 * sum by (job, sid, host)(hanadb_host_memory_resident_mb{%(filteringSelector)s}) / sum by (job, sid, host) (hanadb_host_memory_physical_total_mb{%(filteringSelector)s}) > %(alertsCriticalHighPhysicalMemoryUsage)s |
28 | 28 | ||| % config, |
29 | 29 | 'for': '5m', |
30 | 30 | labels: { |
|
40 | 40 | { |
41 | 41 | alert: 'SapHanaMemAllocLimitBelowRecommendation', |
42 | 42 | expr: ||| |
43 | | - 100 * sum without (database_name) (hanadb_host_memory_alloc_limit_mb{%(filteringSelector)s}) / sum without (database_name) (hanadb_host_memory_physical_total_mb{%(filteringSelector)s}) < %(alertsWarningLowMemAllocLimit)s |
| 43 | + 100 * sum by (job, sid, host) (hanadb_host_memory_alloc_limit_mb{%(filteringSelector)s}) / sum by (job, sid, host) (hanadb_host_memory_physical_total_mb{%(filteringSelector)s}) < %(alertsWarningLowMemAllocLimit)s |
44 | 44 | ||| % config, |
45 | 45 | 'for': '5m', |
46 | 46 | labels: { |
|
56 | 56 | { |
57 | 57 | alert: 'SapHanaHighMemoryUsage', |
58 | 58 | expr: ||| |
59 | | - 100 * sum without (database_name) (hanadb_host_memory_used_total_mb{%(filteringSelector)s}) / sum without (database_name) (hanadb_host_memory_alloc_limit_mb{%(filteringSelector)s}) > %(alertsCriticalHighMemoryUsage)s |
| 59 | + 100 * sum by (job, sid, host) (hanadb_host_memory_used_total_mb{%(filteringSelector)s}) / sum by (job, sid, host) (hanadb_host_memory_alloc_limit_mb{%(filteringSelector)s}) > %(alertsCriticalHighMemoryUsage)s |
60 | 60 | ||| % config, |
61 | 61 | 'for': '5m', |
62 | 62 | labels: { |
|
72 | 72 | { |
73 | 73 | alert: 'SapHanaHighDiskUtilization', |
74 | 74 | expr: ||| |
75 | | - 100 * sum without (database_name, filesystem_type, path, usage_type) (hanadb_disk_total_used_size_mb{%(filteringSelector)s}) / sum without (database_name, filesystem_type, path, usage_type) (hanadb_disk_total_size_mb{%(filteringSelector)s}) > %(alertsCriticalHighDiskUtilization)s |
| 75 | + 100 * sum by (job, sid, host) (hanadb_disk_total_used_size_mb{%(filteringSelector)s}) / sum by (job, sid, host) (hanadb_disk_total_size_mb{%(filteringSelector)s}) > %(alertsCriticalHighDiskUtilization)s |
76 | 76 | ||| % config, |
77 | 77 | 'for': '5m', |
78 | 78 | labels: { |
|
81 | 81 | annotations: { |
82 | 82 | summary: 'SAP HANA disk is approaching capacity.', |
83 | 83 | description: ( |
84 | | - 'The disk usage is at {{ printf "%%.2f" $value }}%% on {{$labels.host}} which is above the threshold of %(filteringSelector)s%%.' |
| 84 | + 'The disk usage is at {{ printf "%%.2f" $value }}%% on {{$labels.host}} which is above the threshold of %(alertsCriticalHighDiskUtilization)s%%.' |
85 | 85 | ) % config, |
86 | 86 | }, |
87 | 87 | }, |
|
0 commit comments