有很多细节需要记录
这个是服务下拉框必须有:
这个是IP服务器下拉框,必须有,注意要选择ALL。
这里要注意,不这样配置就不行,不然只能单服务下接口可以,想混合服务接口放一起就不行:
这里直接写死service服务和rpc接口就行:
默认写法:
sum by (callType) (sum_over_time(arms_app_requests_count{service="服务",rpc="接口",host=~"$host",callType=~"^dsf$|^http$|^dubbo$|^mq$|^user_method$|^producer$|^thrift$|^hsf$|^server$|^grpc$",prpc="__all__",ppid="__all__",endpoint="__all__",destId="__all__"}[1m]))
还有一种正则的玩法就是这样写:
sum by (callType)和sum by (callType,service,rpc) 并无差异 数据是对等的
sum by (callType,service,rpc) (sum_over_time(arms_app_requests_count{service=~"你的服务1|服务2",rpc=~"接口1|/接口2",host=~"$host",callType=~"^dsf$|^http$|^dubbo$|^mq$|^user_method$|^producer$|^thrift$|^hsf$|^server$|^grpc$",prpc="__all__",ppid="__all__",endpoint="__all__",destId="__all__"}[1m]))
画预警线
本文发布于:2024-02-05 07:31:33,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170727452764471.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |