MMS has a public RESTful API you can use: https://docs.mms.mongodb. com/reference/api/.
Alternatively, you can also collect raw metrics from your MongoDB deployment with the same commands used by the MMS monitoring agent:
There is an overview of common commands & monitoring tools in the MongoDB manual:
http://docs.mongodb.org/ manual/administration/ monitoring/
http://docs.mongodb.org/
I've build the http to call metrics via restul api calls.
curl -u "user_id: 5738fe1e67528a5e44ab18b814be34 5d" "https://server1:8080/api/ public/v1.0/groups/ 5345c8b07b470ca7a1354ca1/ hosts/ 44eab9f222fc835cc4351fe6c4520a 39/metrics/" --digest -i --verbose --sslv2
This is a sample
However, I am getting this error:
OpenSSL: error:140770FC:SSL routines:SSL23_GET_SERVER_ HELLO:unknown protocol
Unable to establish SSL connection.
Can you tell what might be wrong?
I tried with
SSLv2, SSLv3, and TLSv1, keep getting:
OpenSSL: error:140770FC:SSL routines:SSL23_GET_SERVER_ HELLO:unknown protocol
Unable to establish SSL connection.
What version of ssl mongodb uses. Is anybody able to retrieve mongodb performance data via restful api calls. please advise how were you able to do it?
댓글 없음:
댓글 쓰기