-
Hello, Currently mongodb_mongod_replset_my_state returns only one, without set and with a value 6 which is UNKNOWN. The exporter itself isn't throwing any errors.
which is strange, since the user has sufficient priviliges (tested manually via mongosh). Also having look at the certain rs logs there're successful authentications of that user without any errors. Tested with 0.39, 0.40 and 0.41.0 versions of the exporter.
Best regards, Krzysztof |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
mongos doesn't return replicaset metrics
…On Mon, Oct 14, 2024, 17:23 Krzysztof ***@***.***> wrote:
Hello,
could you please give an advice why replicasets metrics (eg.
mongodb_mongod_replset_my_state ) might be missing ? Is the exporter
ready for working with sharded clusters ?
Currently mongodb_mongod_replset_my_state returns only one, without set
and with a value 6 which is UNKNOWN. The exporter itself isn't throwing any
errors.
Running exporter with a debug logging level is giving some output, eg.
"replSetGetStatus": {
"failed": 701,
"total": 701
},
which is strange, since the user has sufficient priviliges (tested
manually via mongosh). Also having look at the certain rs logs there're
successful authentications of that user without any errors.
Running the exporter with a different sets of args, eg,
collector.replicasetstatus only (combined with the other collectors),
no-direct-connect, global-conn-pool etc. didn’t have any effect.
Tested with 0.39, 0.40 and 0.41.0 versions of the exporter.
MongoDB: 7.0.14-8 (metrics were missing also on 6.x)
Actual args:
--web.listen-address=:9216
--discovering-mode
--collector.shards
--collector.replicasetstatus
--collector.diagnosticdata
--collector.dbstats
--collector.dbstatsfreestorage
--collector.collstats
--collector.indexstats
--collector.topmetrics
--collector.profile
--collector.currentopmetrics
--compatible-mode
--mongodb.global-conn-pool
--no-mongodb.direct-connect
MONGODB_URI is a non-TLS URI to a mongos service, mongodb://:@
Best regards, Krzysztof
—
Reply to this email directly, view it on GitHub
<https://url.avanan.click/v2/r01/___https://github.com/percona/mongodb_exporter/discussions/933___.YXAzOnBlcmNvbmE6YTpnOjU3ZDQ0ODE5YmNhMWMwMTgxNjk3MzAyMmJjNmM0MWVlOjc6YWVhODphOTU2M2M0NDk2MDQwNzhjMzBlNWU0OGI3OWEwNDU1YWQzNWRhMGIzYzgyNDRlZWEyNDU2NGUxZDQ5OWNhZTc2Omg6VDpO>,
or unsubscribe
<https://url.avanan.click/v2/r01/___https://github.com/notifications/unsubscribe-auth/AATD6EKAFSVYRLX6JITWWBLZ3PHWBAVCNFSM6AAAAABP5EACSKVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZXGMYTOMBRG4___.YXAzOnBlcmNvbmE6YTpnOjU3ZDQ0ODE5YmNhMWMwMTgxNjk3MzAyMmJjNmM0MWVlOjc6YzNiNzphOGEzNGNhMjE1Mzk0MTE1YjBhOTRhMGEyM2UyYzY3YWQ5YmMzOTlkZTUzYWFjYzU3MmU0ZWE4OGQzNGM1MzkwOmg6VDpO>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi, mongos doesn't return replicaset related metrics. Please run exporter against mongod instance |
Beta Was this translation helpful? Give feedback.
-
Thank you for a quick response. I'm still struggling to get the data from a cluster, I've tried with those URIs
|
Beta Was this translation helpful? Give feedback.
-
@BupycHuk do you have idea why exporter would export only one replicaset data at the time ? |
Beta Was this translation helpful? Give feedback.
Hi, mongos doesn't return replicaset related metrics. Please run exporter against mongod instance