You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: charts/application-template/templates/scheduler/prometheus-rule.yaml
-2
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,3 @@
1
-
{{- if .Capabilities.APIVersions.Has "monitoring.coreos.com/v1/PrometheusRule" }}
2
1
{{- if and .Values.scheduler.enabled (or .Values.scheduler.observability.prometheus.alerting_rules.enabled .Values.scheduler.observability.prometheus.istio_alerting_rules.enabled) }}
3
2
apiVersion: monitoring.coreos.com/v1
4
3
kind: PrometheusRule
@@ -78,4 +77,3 @@ spec:
78
77
description: "[{{ include "application.scheduler.name" . | title }}][istio-proxy] 서비스의 최근 메모리 사용량이 {{ .Values.scheduler.observability.prometheus.istio_alerting_rules.highMemoryUsageThreshold }}% 이상이 되었습니다. 현재값: {{`{{ .Value | humanize }}`}}%"
{{- if .Capabilities.APIVersions.Has "monitoring.coreos.com/v1/PrometheusRule" }}
2
-
{{- if and .Values.server.enabled (or .Values.server.observability.prometheus.rules.enabled .Values.server.observability.prometheus.istio_rules.enabled) }}
1
+
{{- if and .Values.server.enabled (or .Values.server.observability.prometheus.alerting_rules.enabled .Values.server.observability.prometheus.istio_alerting_rules.enabled) }}
3
2
apiVersion: monitoring.coreos.com/v1
4
3
kind: PrometheusRule
5
4
metadata:
6
5
name: {{ template "application.server.name" . }}
7
6
namespace: {{ .Release.Namespace }}
8
7
spec:
9
8
groups:
10
-
{{- if .Values.server.observability.prometheus.rules.enabled }}
9
+
{{- if .Values.server.observability.prometheus.alerting_rules.enabled }}
summary: "[{{ include "application.server.name" . | title }}] High CPU usage"
27
-
description: "[{{ include "application.server.name" . | title }}] 서비스의 최근 CPU 사용량이 {{ .Values.server.observability.prometheus.rules.highCpuUsageThreshold }}% 이상이 되었습니다. 현재값: {{`{{ .Value | humanize }}`}}%"
26
+
description: "[{{ include "application.server.name" . | title }}] 서비스의 최근 CPU 사용량이 {{ .Values.server.observability.prometheus.alerting_rules.highCpuUsageThreshold }}% 이상이 되었습니다. 현재값: {{`{{ .Value | humanize }}`}}%"
service: {{ include "application.server.name" . | quote }}
40
39
severity: critical
41
40
annotations:
42
41
summary: "[{{ include "application.server.name" . | title }}] High memory usage"
43
-
description: "[{{ include "application.server.name" . | title }}] 서비스의 최근 메모리 사용량이 {{ .Values.server.observability.prometheus.rules.highMemoryUsageThreshold }}% 이상이 되었습니다. 현재값: {{`{{ .Value | humanize }}`}}%"
42
+
description: "[{{ include "application.server.name" . | title }}] 서비스의 최근 메모리 사용량이 {{ .Values.server.observability.prometheus.alerting_rules.highMemoryUsageThreshold }}% 이상이 되었습니다. 현재값: {{`{{ .Value | humanize }}`}}%"
44
43
{{- end }}
45
-
{{- if .Values.server.observability.prometheus.istio_rules.enabled }}
44
+
{{- if .Values.server.observability.prometheus.istio_alerting_rules.enabled }}
summary: "[{{ include "application.server.name" . | title }}][istio-proxy] High CPU usage"
62
-
description: "[{{ include "application.server.name" . | title }}][istio-proxy] 서비스의 최근 CPU 사용량이 {{ .Values.server.observability.prometheus.istio_rules.highCpuUsageThreshold }}% 이상이 되었습니다. 현재값: {{`{{ .Value | humanize }}`}}%"
61
+
description: "[{{ include "application.server.name" . | title }}][istio-proxy] 서비스의 최근 CPU 사용량이 {{ .Values.server.observability.prometheus.istio_alerting_rules.highCpuUsageThreshold }}% 이상이 되었습니다. 현재값: {{`{{ .Value | humanize }}`}}%"
service: {{ include "application.server.name" . | quote }}
75
74
severity: critical
76
75
annotations:
77
76
summary: "[{{ include "application.server.name" . | title }}][istio-proxy] High memory usage"
78
-
description: "[{{ include "application.server.name" . | title }}][istio-proxy] 서비스의 최근 메모리 사용량이 {{ .Values.server.observability.prometheus.istio_rules.highMemoryUsageThreshold }}% 이상이 되었습니다. 현재값: {{`{{ .Value | humanize }}`}}%"
77
+
description: "[{{ include "application.server.name" . | title }}][istio-proxy] 서비스의 최근 메모리 사용량이 {{ .Values.server.observability.prometheus.istio_alerting_rules.highMemoryUsageThreshold }}% 이상이 되었습니다. 현재값: {{`{{ .Value | humanize }}`}}%"
Copy file name to clipboardexpand all lines: charts/application-template/templates/worker/prometheus-rule.yaml
-2
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,3 @@
1
-
{{- if .Capabilities.APIVersions.Has "monitoring.coreos.com/v1/PrometheusRule" }}
2
1
{{- if and .Values.worker.enabled (or .Values.worker.observability.prometheus.alerting_rules.enabled .Values.worker.observability.prometheus.istio_alerting_rules.enabled) }}
3
2
apiVersion: monitoring.coreos.com/v1
4
3
kind: PrometheusRule
@@ -78,4 +77,3 @@ spec:
78
77
description: "[{{ include "application.worker.name" . | title }}][istio-proxy] 서비스의 최근 메모리 사용량이 {{ .Values.worker.observability.prometheus.istio_alerting_rules.highMemoryUsageThreshold }}% 이상이 되었습니다. 현재값: {{`{{ .Value | humanize }}`}}%"
0 commit comments