Skip to content
New issue

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

负载均衡导致的采集问题 #39

Open
boyaovo opened this issue May 5, 2023 · 3 comments
Open

负载均衡导致的采集问题 #39

boyaovo opened this issue May 5, 2023 · 3 comments

Comments

@boyaovo
Copy link

boyaovo commented May 5, 2023

因为监控是写在代码里的,导致如果使用k8s上线,并开启负载均衡,会导致这个监控也只能采集到单个pod的数据,有什么解决办法吗

@defp
Copy link

defp commented Oct 20, 2023

ServiceMonitor ?

@typ431127
Copy link

可以注册实例到nacos或consul里面,使用prometheus sd采集

@weidaolee
Copy link

Add host or podName as a label so that you can have aggregated/separated views of the metrics on the grafana side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants