Prometheus/MongoDB_Exporter

So, I am using the exporter for the MongoDB for the first time. I have configured it and I am getting error message while using --collector.dbstats tag. Attached image contains the error. can someone help??

I am using docker and this is my .yml file:-

version: '3.1' services: prometheus: image: prom/prometheus build: . ports: - 9090:9090

mongodb:
image: percona/percona-server-mongodb
ports:
- 27020:27017
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=password

mongo-exporter:
image: percona/mongodb_exporter:0.32.2
ports:
- 9216:9216
command:
- --mongodb.uri=mongodb://exporter:password@mongodb:27017/
- --discovering-mode
- --compatible-mode
- --collector.diagnosticdata
- --collector.collstats
- --collector.replicasetstatus
- --collector.dbstats
- --collector.topmetrics
- --collector.indexstats

grafana:
image: grafana/grafana
ports:
- 3000:3000

#Error:

mongodb_1 | {“t”:{“$date”:“2022-07-06T09:37:32.714+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:22944, “ctx”:“conn82”,“msg”:“Connection ended”,“attr”:{“remote”:“172.19.0.5:44976”,“uuid”:“25657385-46a1-4a14-b828-f23f724ec08b”,“connectionId”:82,“connectionCount”:6}}
mongo-exporter_1 | 2022/07/06 09:37:32 http: panic serving 172.19.0.1:39572: descriptor Desc{fqName: “collector_scrape_time_ms”, help: “Time taken for scrape by collector”, constLabels: {collector=“dbstats”}, variableLabels: [exporter]} already
exists with the same fully-qualified name and const label values

mongo-exporter_1 | goroutine 2537 [running]:
mongo-exporter_1 | net/http.(*conn).serve.func1()
mongo-exporter_1 | /opt/hostedtoolcache/go/1.17.11/x64/src/net/http/server.go:1802 +0xb9
mongo-exporter_1 | panic({0xaea980, 0xc00081bd50})
mongo-exporter_1 | /opt/hostedtoolcache/go/1.17.11/x64/src/runtime/panic.go:1047 +0x266
mongo-exporter_1 | github.\com/prometheus/client_golang/prometheus.(*Registry).MustRegister(0xd52320, {0xc000779830, 0x1, 0x8})
mongo-exporter_1 | /home/runner/go/pkg/mod/github.com/!percona-!lab/client_golang@v1.12.2-0.20220701073455-ee06569fd6a5/prometheus/registry.go:403 +0x7f
mongo-exporter_1 | github.com/percona/mongodb_exporter/exporter.(*Exporter).makeRegistry(0xc00038ee60, {0xd52320, 0xc0003ae360}, 0xc0001861a0, {0xd4d988, 0xc00069f170}, {{0xc000387000, 0x1, 0x1}, 0x0, …})
mongo-exporter_1 | /home/runner/work/mongodb_exporter/mongodb_exporter/exporter/exporter.go:188 +0xa2f
mongo-exporter_1 | github.com/percona/mongodb_exporter/exporter.(*Exporter).Handler.func1({0xd4f638, 0xc000422000}, 0xc0002c2000)
mongo-exporter_1 | /home/runner/work/mongodb_exporter/mongodb_exporter/exporter/exporter.go:305 +0x405
mongo-exporter_1 | net/http.HandlerFunc.ServeHTTP(0x0, {0xd4f638, 0xc000422000}, 0x463fae)
mongo-exporter_1 | /opt/hostedtoolcache/go/1.17.11/x64/src/net/http/server.go:2047 +0x2f
mongo-exporter_1 | net/http.serverHandler.ServeHTTP({0xc00080e210}, {0xd4f638, 0xc000422000}, 0xc0002c2000)
mongo-exporter_1 | /opt/hostedtoolcache/go/1.17.11/x64/src/net/http/server.go:2879 +0x43b
mongo-exporter_1 | net/http.(*conn).serve(0xc000390000, {0xd52358, 0xc000383d70})
mongo-exporter_1 | /opt/hostedtoolcache/go/1.17.11/x64/src/net/http/server.go:1930 +0xb08
mongo-exporter_1 | created by net/http.(*Server).Serve
mongo-exporter_1 | /opt/hostedtoolcache/go/1.17.11/x64/src/net/http/server.go:3034 +0x4e8