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

accelerate get metrics info #7

Open
spwangxp opened this issue Jan 22, 2021 · 0 comments
Open

accelerate get metrics info #7

spwangxp opened this issue Jan 22, 2021 · 0 comments

Comments

@spwangxp
Copy link
Contributor

cmd :mqadmin brokerStatus -b xxx -n xxx
为了防止某些情况下,获取 nameserver 地址缓慢导致命令超时

metrics=$(timeout -s SIGKILL 30s /opt/rocketmq/current/bin/mqadmin brokerStatus -b "localhost:${BROKER_PORT:-10911}" |& grep -E "^($filter)" | awk '{print $1, $3}')

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

1 participant