hertzbeat icon indicating copy to clipboard operation
hertzbeat copied to clipboard

[BUG] mongodb srv connection support

Open songxychn opened this issue 1 month ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

i'm using mongodb atlas cloud database, version 7.0.8. connecting to it requires srv enabled. or i will get error message like below:

Timed out after 6000 ms while waiting to connect. Client view of cluster state is {type=UNKNOWN, servers=[{address=xxxxxx.xxxxxxx.mongodb.net:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketException: xxxxxx.xxxxxx.mongodb.net}, caused by {java.net.UnknownHostException: xxxxxx.xxxxxx.mongodb.net}}]

Expected Behavior

whether srv is enabled could be configured by a option, like Navicat does.

Steps To Reproduce

  1. login in mongodb atlas
  2. get a free mongodb cloud database
  3. try to connect by hertzbeat

Environment

HertzBeat version(s): v1.5.0

Debug logs

No response

Anything else?

No response

songxychn avatar May 27 '24 08:05 songxychn