We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
应用从3.2.5升级到3.2.7版本,发现方法维度的标签指标,没有ip标签字段?请问是怎么考量的? 3.2.6版本没有重构org.apache.dubbo.metrics.model.MetricsSupport#applicationTags)
3.2.5
3.2.7
ip
3.2.6
org.apache.dubbo.metrics.model.MetricsSupport#applicationTags)
刚发现,是这个重构了 #13034 @songxiaosheng @AlbumenJ 某个方法耗时长,怎么反推定位到是某个ip实例触发的?通过traceId定位么?
看了3.2.7版本发布说明的3个功能变更,没搜索到关于MetricsSupport或hostTags的改动
MetricsSupport
hostTags
3.2.6版本的标签指标有ip标签
# HELP dubbo_provider_requests_failed_service_unavailable_total_aggregate Aggregated failed codec total Requests # TYPE dubbo_provider_requests_failed_service_unavailable_total_aggregate gauge dubbo_provider_requests_failed_service_unavailable_total_aggregate{ application_module_id="1.1",application_name="lefit-user", application_version="3.2.6", git_commit_id="89e279739b02f79dcb0a9d40462feb12fd237908",group="", hostname="lihuagangdebijibendiannao.local",interface="com.lefit.user.client.core.UserLoginApi", ip="172.16.22.50",method="userLoginInWXMiniProgram",version="1.0",} 0.0
3.2.7版本的标签指标没有ip标签
# HELP dubbo_provider_requests_failed_service_unavailable_total_aggregate Aggregated failed codec total Requests # TYPE dubbo_provider_requests_failed_service_unavailable_total_aggregate gauge dubbo_provider_requests_failed_service_unavailable_total_aggregate{ application="lefit-user",application_module_id="1.1", application_name="lefit-user", group="",interface="com.lefit.user.client.core.UserApi",method="userDefaultGenInfo",version="1.0",} 0.0
通过arthas抓包验证org.apache.dubbo.metrics.model.MethodMetric.getTags
arthas
org.apache.dubbo.metrics.model.MethodMetric.getTags
watch org.apache.dubbo.metrics.model.ApplicationMetric getTags '{target, returnObj}' -x 2
org.apache.dubbo.metrics.model.Metric
public interface Metric { Map<String, String> getTags(); }
org.apache.dubbo.metrics.model.MethodMetric#getTags
org.apache.dubbo.metrics.model.MetricsSupport#methodTags
org.apache.dubbo.metrics.model.MetricsSupport#hostTags 这个方法没有被调用,所以ip标签没有了
org.apache.dubbo.metrics.model.MetricsSupport#hostTags
org.apache.dubbo.metrics.model.ApplicationMetric#getTags 包装调用hostTags
org.apache.dubbo.metrics.model.ApplicationMetric#getTags
The text was updated successfully, but these errors were encountered:
ip或者主机信息可以直接通过取指标来源查询比如普罗米修斯的$instance变量,在每个指标中增加此标签有点冗余了
Sorry, something went wrong.
理解了,感谢!
No branches or pull requests
Ask your question here
应用从
3.2.5
升级到3.2.7
版本,发现方法维度的标签指标,没有ip
标签字段?请问是怎么考量的?3.2.6
版本没有重构org.apache.dubbo.metrics.model.MetricsSupport#applicationTags)
刚发现,是这个重构了 #13034
@songxiaosheng @AlbumenJ
某个方法耗时长,怎么反推定位到是某个ip实例触发的?通过traceId定位么?
看了
3.2.7
版本发布说明的3个功能变更,没搜索到关于MetricsSupport
或hostTags
的改动标签指标数据前后对比
3.2.6
版本的标签指标有ip标签3.2.7
版本的标签指标没有ip标签通过
arthas
抓包验证org.apache.dubbo.metrics.model.MethodMetric.getTags
watch org.apache.dubbo.metrics.model.ApplicationMetric getTags '{target, returnObj}' -x 2
org.apache.dubbo.metrics.model.Metric
服务方法维度的标签指标
org.apache.dubbo.metrics.model.MethodMetric#getTags
org.apache.dubbo.metrics.model.MetricsSupport#methodTags
org.apache.dubbo.metrics.model.MetricsSupport#hostTags
这个方法没有被调用,所以
ip
标签没有了应用维度的标签指标
org.apache.dubbo.metrics.model.ApplicationMetric#getTags
包装调用
hostTags
The text was updated successfully, but these errors were encountered: