Skip to content

Commit 35193b9

Browse files
authored
chore: add missing exporter api to mysql (#2373)
1 parent 3cd35f6 commit 35193b9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

addons/mysql/templates/_helpers.tpl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ provider: kubeblocks
8383
serviceKind: mysql
8484
description: mysql component definition for Kubernetes
8585
updateStrategy: BestEffortParallel
86+
exporter:
87+
containerName: mysql-exporter
88+
scrapePath: /metrics
89+
scrapePort: http-metrics
8690
services:
8791
- name: default
8892
roleSelector: primary
@@ -247,7 +251,7 @@ roles:
247251
mkdir -p {{ .Values.dataMountPath }}/{log,binlog,auditlog,temp}
248252
if [ -f {{ .Values.dataMountPath }}/plugin/audit_log.so ]; then
249253
cp {{ .Values.dataMountPath }}/plugin/audit_log.so /usr/lib64/mysql/plugin/
250-
fi
254+
fi
251255
if [ -d /etc/pki/tls ]; then
252256
mkdir -p {{ .Values.dataMountPath }}/tls/
253257
cp -L /etc/pki/tls/*.pem {{ .Values.dataMountPath }}/tls/

0 commit comments

Comments
 (0)