Skip to content

Commit

Permalink
Monitoring: enable alert rules persistence (#898)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiffang authored and tennix committed Oct 18, 2019
1 parent cea5558 commit b8df97d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions charts/tidb-cluster/templates/monitor-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ spec:
value: {{ .Values.binlog.pump.create | default false | quote }}
- name: PROM_CONFIG_PATH
value: /prometheus-rules
- name: PROM_PERSISTENT_DIR
value: /data
- name: TIDB_VERSION
value: {{ .Values.tidb.image }}
- name: GF_K8S_PROMETHEUS_URL
value: {{ .Values.monitor.initializer.config.K8S_PROMETHEUS_URL }}
- name: GF_TIDB_PROMETHEUS_URL
Expand Down Expand Up @@ -132,6 +136,8 @@ spec:
imagePullPolicy: {{ .Values.monitor.reloader.imagePullPolicy | default "IfNotPresent" }}
command:
- /bin/reload
- --root-store-path=/data
- --sub-store-path={{ .Values.tidb.image }}
- --watch-path=/prometheus-rules/rules
- --prometheus-url=http://127.0.0.1:9090
ports:
Expand All @@ -142,6 +148,8 @@ spec:
- name: prometheus-rules
mountPath: /prometheus-rules
readOnly: false
- name: monitor-data
mountPath: /data
resources:
{{ toYaml .Values.monitor.reloader.resources | indent 10 }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/tidb-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ monitor:
# memory: 64Mi
reloader:
create: true
image: pingcap/tidb-monitor-reloader:v1.0.0
image: pingcap/tidb-monitor-reloader:v1.0.1
imagePullPolicy: IfNotPresent
service:
type: NodePort
Expand Down

0 comments on commit b8df97d

Please sign in to comment.