|
128 | 128 | Total memory: {{ with printf `%(memoryTotal)s` | query | first | value | humanize }}{{ . }}{{ end }}.
|
129 | 129 | Consider investigating processes consuming high memory or increasing available memory.
|
130 | 130 | ||| % {
|
131 |
| - instanceLabel: instanceLabel, |
132 |
| - threshold: config.alertMemoryUsageThresholdCritical, |
133 |
| - memoryFree: signals.memory.memoryFree.asRuleExpression(), |
134 |
| - memoryTotal: signals.memory.memoryTotal.asRuleExpression(), |
| 131 | + instanceLabel: instanceLabel, |
| 132 | + threshold: config.alertMemoryUsageThresholdCritical, |
| 133 | + memoryFree: signals.memory.memoryFree.asRuleExpression(), |
| 134 | + memoryTotal: signals.memory.memoryTotal.asRuleExpression(), |
135 | 135 | },
|
136 | 136 | },
|
137 | 137 | },
|
|
228 | 228 | },
|
229 | 229 | },
|
230 | 230 | ]
|
231 |
| - + if std.member(config.metricsSource, 'prometheus_pre_0_30') then |
232 |
| - [ |
233 |
| - { |
234 |
| - alert: 'WindowsServiceNotHealthy', |
235 |
| - expr: ||| |
236 |
| - (%s) > 0 |
237 |
| - ||| % [ |
238 |
| - signals.services.serviceNotHealthy.asRuleExpression(), |
239 |
| - ], |
240 |
| - 'for': '5m', |
241 |
| - labels: { |
242 |
| - severity: 'critical', |
243 |
| - }, |
244 |
| - annotations: { |
245 |
| - summary: 'Windows service is not healthy.', |
246 |
| - description: "Windows service {{ $labels.name }} is not in healthy state, currently in '{{ $labels.status }}'.", |
247 |
| - }, |
248 |
| - } |
249 |
| - ] else [] |
250 |
| - + if config.enableADDashboard then ADAlerts else [], |
| 231 | + + if std.member(config.metricsSource, 'prometheus_pre_0_30') then |
| 232 | + [ |
| 233 | + { |
| 234 | + alert: 'WindowsServiceNotHealthy', |
| 235 | + expr: ||| |
| 236 | + (%s) > 0 |
| 237 | + ||| % [ |
| 238 | + signals.services.serviceNotHealthy.asRuleExpression(), |
| 239 | + ], |
| 240 | + 'for': '5m', |
| 241 | + labels: { |
| 242 | + severity: 'critical', |
| 243 | + }, |
| 244 | + annotations: { |
| 245 | + summary: 'Windows service is not healthy.', |
| 246 | + description: "Windows service {{ $labels.name }} is not in healthy state, currently in '{{ $labels.status }}'.", |
| 247 | + }, |
| 248 | + }, |
| 249 | + ] else [] |
| 250 | + + if config.enableADDashboard then ADAlerts else [], |
251 | 251 | },
|
252 | 252 | ],
|
253 | 253 | },
|
|
0 commit comments