Skip to content

Commit

Permalink
cherry pick #2715 to release-1.0 (#2728)
Browse files Browse the repository at this point in the history
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>

Co-authored-by: weekface <weekface@gmail.com>
  • Loading branch information
ti-srebot and weekface authored Jun 16, 2020
1 parent 052815f commit 7d826ec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/tidb-cluster/templates/monitor-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ spec:
- name: PROM_PERSISTENT_DIR
value: /data
- name: TIDB_VERSION
{{- if .Values.monitor.prometheus.alertManagerRulesVersion }}
value: tidb:{{ .Values.monitor.prometheus.alertManagerRulesVersion }}
{{- else }}
value: {{ .Values.tidb.image }}
{{- end }}
- name: GF_K8S_PROMETHEUS_URL
value: {{ .Values.monitor.initializer.config.K8S_PROMETHEUS_URL }}
- name: GF_TIDB_PROMETHEUS_URL
Expand Down
5 changes: 5 additions & 0 deletions charts/tidb-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,11 @@ monitor:
type: NodePort
reserveDays: 12
# alertmanagerURL: ""

# alertManagerRulesVersion is the version of the tidb cluster that used for alert rules.
# default to current tidb cluster version, for example: v3.0.15
#
# alertManagerRulesVersion: ""
nodeSelector: {}
# kind: monitor
# zone: cn-bj1-01,cn-bj1-02
Expand Down

0 comments on commit 7d826ec

Please sign in to comment.