Skip to content

Commit 8d74215

Browse files
authored
PMM-7: Fix CI checks (#1171)
* bump version file * update test images * surpress histogram metrics
1 parent 55813e2 commit 8d74215

File tree

6 files changed

+22
-18
lines changed

6 files changed

+22
-18
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ REPO ?= percona/$(NAME)
1717
GORELEASER_FLAGS ?=
1818
UID ?= $(shell id -u)
1919

20-
export TEST_MONGODB_IMAGE?=mongo:4.4
20+
export TEST_MONGODB_IMAGE?=mongo:6.0
2121
export TEST_MONGODB_ADMIN_USERNAME?=
2222
export TEST_MONGODB_ADMIN_PASSWORD?=
2323
export TEST_MONGODB_USERNAME?=

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Currently, these metric sources are implemented:
2121

2222
## Supported MongoDB versions
2323

24-
The exporter works with Percona Server for MongoDB and MongoDB Community or Enterprise Edition versions 4.4 and newer. Older versions might also work but are not tested anymore.
24+
The exporter works with Percona Server for MongoDB and MongoDB Community or Enterprise Edition versions 6.0 and newer. Older versions might also work but are not tested anymore.
2525

2626
## Info on Percona MongoDB exporter versions
2727

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.47.0
1+
v0.47.1

docker-compose.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
mongo-1-1:
33
container_name: "mongo-1-1"
4-
image: ${TEST_MONGODB_IMAGE:-mongo:4.4}
4+
image: ${TEST_MONGODB_IMAGE:-mongo:6.0}
55
ports:
66
- "${TEST_MONGODB_S1_PRIMARY_PORT:-17001}:27017"
77
command: mongod --replSet rs1 --shardsvr --port 27017 --oplogSize 16 --bind_ip 0.0.0.0
@@ -14,7 +14,7 @@ services:
1414

1515
mongo-1-2:
1616
container_name: "mongo-1-2"
17-
image: ${TEST_MONGODB_IMAGE:-mongo:4.4}
17+
image: ${TEST_MONGODB_IMAGE:-mongo:6.0}
1818
ports:
1919
- "${TEST_MONGODB_S1_SECONDARY1_PORT:-17002}:27017"
2020
command: mongod --replSet rs1 --shardsvr --port 27017 --oplogSize 16 --bind_ip 0.0.0.0
@@ -23,7 +23,7 @@ services:
2323

2424
mongo-1-3:
2525
container_name: "mongo-1-3"
26-
image: ${TEST_MONGODB_IMAGE:-mongo:4.4}
26+
image: ${TEST_MONGODB_IMAGE:-mongo:6.0}
2727
ports:
2828
- "${TEST_MONGODB_S1_SECONDARY2_PORT:-17003}:27017"
2929
command: mongod --replSet rs1 --shardsvr --port 27017 --oplogSize 16 --bind_ip 0.0.0.0
@@ -32,7 +32,7 @@ services:
3232

3333
mongo-1-arbiter:
3434
container_name: "mongo-1-arbiter"
35-
image: ${TEST_MONGODB_IMAGE:-mongo:4.4}
35+
image: ${TEST_MONGODB_IMAGE:-mongo:6.0}
3636
ports:
3737
- "${TEST_MONGODB_S1_ARBITER:-17011}:27017"
3838
command: mongod --replSet rs1 --shardsvr --port 27017 --oplogSize 16
@@ -41,7 +41,7 @@ services:
4141

4242
mongo-rs1-setup:
4343
container_name: "mongo-rs1-setup"
44-
image: ${TEST_MONGODB_IMAGE:-mongo:4.4}
44+
image: ${TEST_MONGODB_IMAGE:-mongo:6.0}
4545
depends_on:
4646
- "mongo-1-1"
4747
- "mongo-1-2"
@@ -150,7 +150,7 @@ services:
150150

151151
mongo-rs2-setup:
152152
container_name: "mongo-rs2-setup"
153-
image: ${TEST_MONGODB_IMAGE:-mongo:4.4}
153+
image: ${TEST_MONGODB_IMAGE:-mongo:6.0}
154154
depends_on:
155155
- "mongo-2-1"
156156
- "mongo-2-2"
@@ -174,7 +174,7 @@ services:
174174
# Config servers
175175
mongo-cnf-2:
176176
container_name: "mongo-cnf-2"
177-
image: ${TEST_MONGODB_IMAGE:-mongo:4.4}
177+
image: ${TEST_MONGODB_IMAGE:-mongo:6.0}
178178
ports:
179179
- "${TEST_MONGODB_CONFIGSVR2_PORT:-17008}:27017"
180180
command: mongod --dbpath /data/db --replSet cnf-serv --configsvr --port 27017 --oplogSize 16
@@ -183,7 +183,7 @@ services:
183183

184184
mongo-cnf-3:
185185
container_name: "mongo-cnf-3"
186-
image: ${TEST_MONGODB_IMAGE:-mongo:4.4}
186+
image: ${TEST_MONGODB_IMAGE:-mongo:6.0}
187187
ports:
188188
- "${TEST_MONGODB_CONFIGSVR3_PORT:-17009}:27017"
189189
command: mongod --dbpath /data/db --replSet cnf-serv --configsvr --port 27017 --oplogSize 16
@@ -192,7 +192,7 @@ services:
192192

193193
mongo-cnf-1:
194194
container_name: "mongo-cnf-1"
195-
image: ${TEST_MONGODB_IMAGE:-mongo:4.4}
195+
image: ${TEST_MONGODB_IMAGE:-mongo:6.0}
196196
ports:
197197
- "${TEST_MONGODB_CONFIGSVR1_PORT:-17007}:27017"
198198
command: mongod --dbpath /data/db --replSet cnf-serv --configsvr --port 27017 --oplogSize 16
@@ -204,7 +204,7 @@ services:
204204

205205
mongo-cnf-setup:
206206
container_name: "mongo-cnf-setup"
207-
image: ${TEST_MONGODB_IMAGE:-mongo:4.4}
207+
image: ${TEST_MONGODB_IMAGE:-mongo:6.0}
208208
depends_on:
209209
- "mongo-cnf-1"
210210
- "mongo-cnf-2"
@@ -224,7 +224,7 @@ services:
224224

225225
mongos:
226226
container_name: "mongos"
227-
image: ${TEST_MONGODB_IMAGE:-mongo:4.4}
227+
image: ${TEST_MONGODB_IMAGE:-mongo:6.0}
228228
ports:
229229
- "${TEST_MONGODB_MONGOS_PORT:-17000}:27017"
230230
networks:
@@ -240,7 +240,7 @@ services:
240240

241241
mongo-shard-setup:
242242
container_name: "mongo-shard-setup"
243-
image: ${TEST_MONGODB_IMAGE:-mongo:4.4}
243+
image: ${TEST_MONGODB_IMAGE:-mongo:6.0}
244244
depends_on:
245245
- "mongos"
246246
networks:
@@ -270,15 +270,15 @@ services:
270270

271271
standalone:
272272
container_name: "standalone"
273-
image: ${TEST_MONGODB_IMAGE:-mongo:4.4}
273+
image: ${TEST_MONGODB_IMAGE:-mongo:6.0}
274274
ports:
275275
- "${TEST_MONGODB_STANDALONE_PORT:-27017}:27017"
276276
command: mongod --port 27017 --oplogSize 16
277277

278278
standalone-encrypted:
279279
user: root
280280
container_name: "standalone-encrypted"
281-
image: ${TEST_MONGODB_IMAGE:-mongo:4.4}
281+
image: ${TEST_MONGODB_IMAGE:-mongo:6.0}
282282
ports:
283283
- "${TEST_MONGODB_STANDALONE_ENCRYPTED_PORT:-27027}:27017"
284284
volumes:

exporter/metrics.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,10 @@ func makeMetrics(prefix string, m bson.M, labels map[string]string, compatibleMo
309309
}
310310

311311
for k, val := range m {
312+
// histogram metrics are currently unsupported (PMM-14337)
313+
if k == "histograms" {
314+
continue
315+
}
312316
nextPrefix := prefix + k
313317

314318
l := make(map[string]string)

test-setup/mongodb-auth.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG TEST_MONGODB_IMAGE=mongo:4.4
1+
ARG TEST_MONGODB_IMAGE=mongo:6.0
22
FROM ${TEST_MONGODB_IMAGE}
33
USER root
44
COPY test-setup/secret/keyfile /opt/keyfile

0 commit comments

Comments
 (0)