Skip to content

Commit 951ebc5

Browse files
fix metrics configuration (#1154)
Signed-off-by: souravbiswassanto saurov@appscode.com Co-authored-by: raihankhan <raihan@appscode.com>
1 parent 97dd8e8 commit 951ebc5

File tree

9 files changed

+29
-29
lines changed

9 files changed

+29
-29
lines changed

charts/kubedb-metrics/templates/elasticsearch/kubedb-com-elasticsearch.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: kubedb-com-elasticsearch
55
spec:
66
targetRef:
7-
apiVersion: kubedb.com/v1alpha2
7+
apiVersion: kubedb.com/v1
88
kind: Elasticsearch
99
commonLabels:
1010
- key: app
@@ -31,8 +31,8 @@ spec:
3131
valuePath: .spec.storageType
3232
- key: enableSSL
3333
valuePath: .spec.enableSSL
34-
- key: terminationPolicy
35-
valuePath: .spec.terminationPolicy
34+
- key: deletionPolicy
35+
valuePath: .spec.deletionPolicy
3636
- key: storageClassName
3737
valuePath: .spec.storage.storageClassName
3838
metricValue:

charts/kubedb-metrics/templates/kafka/kubedb-com-kafka.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: kubedb-com-kafka
55
spec:
66
targetRef:
7-
apiVersion: kubedb.com/v1alpha2
7+
apiVersion: kubedb.com/v1
88
kind: Kafka
99
commonLabels:
1010
- key: app

charts/kubedb-metrics/templates/mariadb/kubedb-com-mariadb.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: kubedb-com-mariadb
55
spec:
66
targetRef:
7-
apiVersion: kubedb.com/v1alpha2
7+
apiVersion: kubedb.com/v1
88
kind: MariaDB
99
commonLabels:
1010
- key: app
@@ -71,8 +71,8 @@ spec:
7171
valuePath: .spec.requireSSL
7272
- key: storageType
7373
valuePath: .spec.storageType
74-
- key: terminationPolicy
75-
valuePath: .spec.terminationPolicy
74+
- key: deletionPolicy
75+
valuePath: .spec.deletionPolicy
7676
metricValue:
7777
value: 1
7878

charts/kubedb-metrics/templates/mongodb/kubedb-com-mongodb.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: kubedb-com-mongodb
55
spec:
66
targetRef:
7-
apiVersion: kubedb.com/v1alpha2
7+
apiVersion: kubedb.com/v1
88
kind: MongoDB
99
commonLabels:
1010
- key: app
@@ -62,8 +62,8 @@ spec:
6262
valuePath: .spec.sslMode
6363
- key: storageType
6464
valuePath: .spec.storageType
65-
- key: terminationPolicy
66-
valuePath: .spec.terminationPolicy
65+
- key: deletionPolicy
66+
valuePath: .spec.deletionPolicy
6767
- key: version
6868
valuePath: .spec.version
6969
metricValue:

charts/kubedb-metrics/templates/mysql/kubedb-com-mysql.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: kubedb-com-mysql
55
spec:
66
targetRef:
7-
apiVersion: kubedb.com/v1alpha2
7+
apiVersion: kubedb.com/v1
88
kind: MySQL
99
commonLabels:
1010
- key: app
@@ -71,8 +71,8 @@ spec:
7171
valuePath: .spec.useAddressType
7272
- key: storageType
7373
valuePath: .spec.storageType
74-
- key: terminationPolicy
75-
valuePath: .spec.terminationPolicy
74+
- key: deletionPolicy
75+
valuePath: .spec.deletionPolicy
7676
- key: requireSSL
7777
valuePath: .spec.requireSSL
7878
metricValue:

charts/kubedb-metrics/templates/perconaxtradb/kubedb-com-perconaxtradb.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: kubedb-com-perconaxtradb
55
spec:
66
targetRef:
7-
apiVersion: kubedb.com/v1alpha2
7+
apiVersion: kubedb.com/v1
88
kind: PerconaXtraDB
99
commonLabels:
1010
- key: app
@@ -71,8 +71,8 @@ spec:
7171
valuePath: .spec.requireSSL
7272
- key: storageType
7373
valuePath: .spec.storageType
74-
- key: terminationPolicy
75-
valuePath: .spec.terminationPolicy
74+
- key: deletionPolicy
75+
valuePath: .spec.deletionPolicy
7676
metricValue:
7777
value: 1
7878

charts/kubedb-metrics/templates/postgres/kubedb-com-postgres.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: kubedb-com-postgres
55
spec:
66
targetRef:
7-
apiVersion: kubedb.com/v1alpha2
7+
apiVersion: kubedb.com/v1
88
kind: Postgres
99
commonLabels:
1010
- key: app
@@ -71,8 +71,8 @@ spec:
7171
valuePath: .spec.sslMode
7272
- key: storageType
7373
valuePath: .spec.storageType
74-
- key: terminationPolicy
75-
valuePath: .spec.terminationPolicy
74+
- key: deletionPolicy
75+
valuePath: .spec.deletionPolicy
7676
- key: version
7777
valuePath: .spec.version
7878
- key: standby_mode

charts/kubedb-metrics/templates/proxysql/kubedb-com-proxysql.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: kubedb-com-proxysql
55
spec:
66
targetRef:
7-
apiVersion: kubedb.com/v1alpha2
7+
apiVersion: kubedb.com/v1
88
kind: ProxySQL
99
commonLabels:
1010
- key: app
@@ -67,8 +67,8 @@ spec:
6767
labels:
6868
- key: version
6969
valuePath: .spec.version
70-
- key: terminationPolicy
71-
valuePath: .spec.terminationPolicy
70+
- key: deletionPolicy
71+
valuePath: .spec.deletionPolicy
7272
- key: backend
7373
valuePath: .spec.backend.name
7474
- key: ssl

charts/kubedb-metrics/templates/redis/kubedb-com-redis.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: kubedb-com-redis
55
spec:
66
targetRef:
7-
apiVersion: kubedb.com/v1alpha2
7+
apiVersion: kubedb.com/v1
88
kind: Redis
99
commonLabels:
1010
- key: app
@@ -31,16 +31,16 @@ spec:
3131
value: 1
3232

3333
- name: cluster_master_nodes
34-
help: "Number of master nodes in redis cluster"
34+
help: "Number of shards in redis cluster"
3535
type: gauge
3636
field:
37-
path: .spec.cluster.master
37+
path: .spec.cluster.shards
3838
type: Integer
3939
metricValue:
40-
valueFromPath: .spec.cluster.master
40+
valueFromPath: .spec.cluster.shards
4141

4242
- name: cluster_replicas
43-
help: "Number of replicas in redis cluster"
43+
help: "Number of replicas for each shard"
4444
type: gauge
4545
field:
4646
path: .spec.cluster.replicas
@@ -98,8 +98,8 @@ spec:
9898
valuePath: .spec.mode
9999
- key: storageType
100100
valuePath: .spec.storageType
101-
- key: terminationPolicy
102-
valuePath: .spec.terminationPolicy
101+
- key: deletionPolicy
102+
valuePath: .spec.deletionPolicy
103103
metricValue:
104104
value: 1
105105

0 commit comments

Comments
 (0)