@@ -47,7 +47,7 @@ serviceMonitor:
47
47
# Set relabel_configs as per https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config
48
48
relabelings : []
49
49
multipleTarget :
50
- enabled : false
50
+ enabled : true
51
51
targets :
52
52
# target connection information with name (required), endpoint (required) and port (optionnal)
53
53
# if sharedSecret is not enabled the name must match an entry client.{{ name }} existing in the secret
@@ -56,10 +56,16 @@ serviceMonitor:
56
56
# port: 3307
57
57
# - endpoint: mysql2.dns.local
58
58
# name: mysql2
59
+ - endpoint : mariadb-cluster-0.mariadb-cluster-internal
60
+ name : maria0
61
+ - endpoint : mariadb-cluster-1.mariadb-cluster-internal
62
+ name : maria1
63
+ - endpoint : mariadb-cluster-2.mariadb-cluster-internal
64
+ name : maria2
59
65
# Enable shared credentials for all targets
60
66
sharedSecret :
61
- enabled : false
62
- name : " "
67
+ enabled : true
68
+ name : " mariadb-monitor "
63
69
64
70
serviceAccount :
65
71
# Specifies whether a ServiceAccount should be created
@@ -81,7 +87,8 @@ resources: {}
81
87
# cpu: 100m
82
88
# memory: 128Mi
83
89
84
- nodeSelector : {}
90
+ nodeSelector :
91
+ openstack-control-plane : enabled
85
92
86
93
tolerations : []
87
94
@@ -159,7 +166,7 @@ collectors:
159
166
# perf_schema.indexiowaits: false
160
167
# perf_schema.tableiowaits: false
161
168
# perf_schema.tablelocks: false
162
- # perf_schema.replication_group_member_stats: false
169
+ perf_schema.replication_group_member_stats : true
163
170
# slave_status: true
164
171
# slave_hosts: false
165
172
# heartbeat: false
@@ -169,7 +176,7 @@ collectors:
169
176
# mysql connection params which build the my.cnf config
170
177
mysql :
171
178
db : " "
172
- host : " mariadb-cluster "
179
+ host : " "
173
180
# config my.cnf https://dev.mysql.com/doc/c-api/8.0/en/mysql-options.html
174
181
additionalConfig :
175
182
# - connect-timeout=5
@@ -180,8 +187,8 @@ mysql:
180
187
user : " monitoring"
181
188
# secret with full config my.cnf
182
189
existingConfigSecret :
183
- name : " "
184
- key : " "
190
+ name : " mariadb-monitor "
191
+ key : " my.conf "
185
192
# secret only containing the password
186
193
existingPasswordSecret :
187
194
name : " mariadb-monitoring"
0 commit comments