greptimedb-client-java icon indicating copy to clipboard operation
greptimedb-client-java copied to clipboard

Question: Is there an interface or method for the indicators of GreptimeDB?

Open ZY945 opened this issue 2 years ago • 5 comments

ZY945 avatar Dec 22 '23 08:12 ZY945

Hi,I'm not sure if I have correctly understood your question. Do you mean 'metrics'?

The Java client listens on the SIGUSR2 signal, you can get metrics data through 'kill -s SIGUSR2'. For detailed information, please refer to the following document:

https://docs.greptime.com/reference/sdk/java#how-to-use-kill-s-sigusr2-pid

fengjiachun avatar Dec 25 '23 11:12 fengjiachun

I think @ZY945 meant the GreptimeDB metrics, you can find them at the http://ip:4000/metrics endpoint, the ip is your greptimedb server ip.

killme2008 avatar Dec 25 '23 11:12 killme2008

Thank you for your answers. APIs like this http://ip:4000/metrics

ZY945 avatar Dec 25 '23 12:12 ZY945

Hi,I'm not sure if I have correctly understood your question. Do you mean 'metrics'?

The Java client listens on the SIGUSR2 signal, you can get metrics data through 'kill -s SIGUSR2'. For detailed information, please refer to the following document:

https://docs.greptime.com/reference/sdk/java#how-to-use-kill-s-sigusr2-pid

kill -s SIGUSR2 pid Thank you very much. This is a good method. Will it affect the normal use of greptimedb?

ZY945 avatar Dec 25 '23 12:12 ZY945

Hi,I'm not sure if I have correctly understood your question. Do you mean 'metrics'? The Java client listens on the SIGUSR2 signal, you can get metrics data through 'kill -s SIGUSR2'. For detailed information, please refer to the following document: https://docs.greptime.com/reference/sdk/java#how-to-use-kill-s-sigusr2-pid

kill -s SIGUSR2 pid Thank you very much. This is a good method. Will it affect the normal use of greptimedb?

It won't affect the normal running of the GreptimeDB client , it merely outputs some information.

fengjiachun avatar Dec 25 '23 12:12 fengjiachun