Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to get server status and metrics cannot be obtained #119

Open
tangxuye opened this issue Nov 15, 2019 · 1 comment
Open

Failed to get server status and metrics cannot be obtained #119

tangxuye opened this issue Nov 15, 2019 · 1 comment

Comments

@tangxuye
Copy link

My mongodb is single instance and I can't obtain the relevant monitoring items in Prometheus Sever after starting mongodb_exporter.
The command format is as follows: nohup ./mongodb_exporter-linux-amd64 -mongodb.collect.replset=false -mongodb.collect.oplog=false -mongodb.uri "mongodb://usr:12345@ip:27017" &
When I checked the output log, I found the system prompt: 24687 server_status. Go :173] Failed to get server status.
What's wrong with me?

@manukoli1986
Copy link

Hi Tangxuye,

Before executing via nohup and run it in backgroud. Just run the same command in console to get output and you will have idea about your issue.

like below output.

mongodb_exporter --mongodb.uri=mongodb://1.1.1.1:27017 --collect.database

INFO[0000] Starting mongodb_exporter (version=0.10.0, branch=v0.10.0, revision=bf683745093a9210ebacbeb235bb792e21d17389) source="mongodb_exporter.go:94"
INFO[0000] Build context (go=go1.12.9, user=[email protected], date=20190918-12:07:48) source="mongodb_exporter.go:95"
INFO[0000] Starting HTTP server for http://:9216/metrics ... source="server.go:140"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants