MSSQL and MySQL peer format can be changed to the same format as java by configuration #543
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Please answer these questions before submitting pull request
Why submit this pull request?
Bug fix
New feature provided
Improve performance
Related issues
Bug fix
Bug description.
How to fix?
New feature or improvement
The database peer format in java is unified as
host:port
But in .NET,
DbConnection.DataSource
is generally used directly, and this format is generally nothost:port
. Different formats of the same database peer in .NET and Java will result in separate statistics for virtual databases. I've only changed the format for MSSQL and MySQL so far because I only use those two.java agent数据库采集部分peer采用了统一的格式
host:port
,.NET中一般直接使用DbConnection.DataSource
,格式基本都不是host:port
,如果.NET和java使用同一个库,最后在虚拟数据库界面上会显示两个实例,这个PR增加了一个配置可以支持使用java agent相同的格式,默认还是之前的格式。这个PR中只支持MSSQL和MySQL,其他数据库我没用到就先不改了。