File tree Expand file tree Collapse file tree 8 files changed +28
-7
lines changed Expand file tree Collapse file tree 8 files changed +28
-7
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ apiVersion: v2
2
2
name : mo-ob-opensource
3
3
description : mo-ob-opensource's Helm chart for Kubernetes
4
4
type : application
5
- version : 1.0.0-alpha.16
5
+ version : 1.0.1
6
6
appVersion : 0.9.0
7
7
dependencies :
8
8
- condition : kube-prometheus-stack.enabled
Original file line number Diff line number Diff line change
1
+ {{- if .Values.alertrules.enabled }}
1
2
# # cooperate with {folder_to_char}/alert-rules/log-alert-rules/*.yaml
2
3
{{- $files := .Files.Glob "alert-rules/log-alert-rules/*.yaml" }}
3
4
{{- if $files }}
17
18
data :
18
19
{{ printf "%s.yaml" $alertFileName }}: {{ $.Files.Get $path | toYaml | indent 2}}
19
20
{{- end }}
20
- {{- end }}
21
+ {{- end }}
22
+ {{- end }} # end if enabled
Original file line number Diff line number Diff line change
1
+ {{- if .Values.alertrules.enabled }}
1
2
apiVersion : v1
2
3
kind : List
3
4
metadata :
22
23
heritage : Helm
23
24
spec :
24
25
{{ $root.Files.Get $path | nindent 6 }}
25
- {{- end }}
26
+ {{- end }}
27
+ {{- end }}
Original file line number Diff line number Diff line change 1
1
alerting :
2
2
namespace : " mo-ob"
3
3
4
+ # swith for generate alertrules which defined in `rules` folder
5
+ # - cooperate with template templates/mo-alerting-rules.yaml
6
+ # swith for generate alertrules which defined in `alert-rules/log-alert-rules` folder
7
+ # - cooperate with template templates/log-alert-rules.yaml
8
+ alertrules :
9
+ enabled : false
10
+
4
11
promtail :
5
12
enabled : true
6
13
serviceMonitor :
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ apiVersion: v2
2
2
name : mo-ruler-stack
3
3
description : mo-ruler's Helm chart for Kubernetes
4
4
type : application
5
- version : 1.0.0-alpha.13
5
+ version : 1.0.1
6
6
appVersion : 0.9.0
7
7
dependencies :
8
8
- condition : alertmanager.enabled
Original file line number Diff line number Diff line change 1
- {{- if .Values.grafana.enabled }}
1
+ {{- if (and .Values.grafana.enabled .Values.dashboards.enabled ) }}
2
2
{{- $files := .Files.Glob "grafana/dashboards/*.json" }}
3
3
{{- if $files }}
4
4
apiVersion : v1
Original file line number Diff line number Diff line change 1
- {{ if .Values.moRuler.enabled }}
1
+ {{ if (and .Values.moRuler.enabled .Values.alertrules.enabled) }}
2
2
3
3
apiVersion : v1
4
4
data :
@@ -7,4 +7,4 @@ kind: ConfigMap
7
7
metadata :
8
8
name : rules-config-map
9
9
10
- {{ end }}
10
+ {{ end }}
Original file line number Diff line number Diff line change @@ -17,6 +17,16 @@ secretSeed:
17
17
# # param for templates/grafana/grafana-admin-secret.yaml
18
18
grafana : YXNkZl9wYXNzd29y
19
19
20
+ # swith for generate dashboards which defined in `grafana` folder
21
+ # cooperate with template templates/grafana/dashboards-configmap.yaml
22
+ dashboards :
23
+ enabled : false
24
+
25
+ # swith for generate dashboards which defined in `rules` folder
26
+ # cooperate with template templates/rules-config.yaml
27
+ alertrules :
28
+ enabled : false
29
+
20
30
moRuler :
21
31
replicaCount : 1
22
32
enabled : false
You can’t perform that action at this time.
0 commit comments