-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Improve monitoring tool #1361
Comments
Hi @ManfredKarrer |
Yeah would be great! |
If you work in regtest environment use those prog args: For mainnet: If you test with localhost you might want to change the default port 80 to something like 8080 in MonitorMain: port(8080); |
@ManfredKarrer thanks for help. I can now run the monitor locally using mainnet. I can now start working on the issue. First issue that I understand you want to address is related to refactoring of code. Is this related to logic and template mixing in MetricsModel.java? I would like to understand what will make the system more reliable. Can you point me to first task that should be done? |
I think it should be rewritten and also the way what is displayed in the webpage. Most important is that we filter out false positives (thats why there are retries because if Tor is very slow or unstable the first request might fail) and show clearly when a node is failing. So it is pretty open how to do it in details. The current version was done really very quick and dirty and should not be considered as "optimal". |
I'm using munin http://munin-monitoring.org/ There are may plugins included. And this is my plugin to collect the bitcoin-core data: /usr/share/munin/plugins/bitcoind_
|
Hello, |
Yes it is still open and of interest! And yes its in Java, though can be combined with different tools (e.g. http://munin-monitoring.org). |
I'm just looking at munin, and see that it exists also as an "official" debian package. Nice. |
the webapi was not used for monitoring, as the webapi is mostly to read/create offers, trades, fund your wallet etc. The monitoring checks the health of all nodes in the P2P network (peers, seednodes, ... ). Most of the checks happen over the P2P network, some like the pricenodes are over http. |
Thanks for the answer @mrosseel I dive a bit into this munin tool. |
Thanks for your feedback. The main task is java and p2p network based. The munin tool would be an additional tool to check the state of the machine. |
Hello @Emzy , |
Hello @HarryMacfinned, no I have not. But I now configured it and will test it. It seems you can test it with:
|
Hello @Emzy , |
Hello @HarryMacfinned,
|
Hello @Emzy , |
Started work on the issue here: https://github.com/freimair/bisq/tree/monitor |
I set up a "quick and dirty" monitoring tool in December for monitoring the seed nodes and Bitcoin nodes using the Bisq infrastructure (not just Tor connection checks as that reported too many false positives).
http://seedmonitor.0-2-1.net/
https://github.com/bisq-network/exchange/tree/master/monitor
It is working more or less ok and reports no false positives anymore as far I observed, but still would require some fixes, improvements and probably a heavy refactoring (was really done quick and dirty in 1 or 2 days). It does not touch too much the overall Bisq code and the subject for refactoring is mainly the way how the monitored data are structured.
It could be extended much more but first task would be to get it more reliable and get Slack notifications enabled again (integrated but deactivated as it reports too many messages).
It would also be good to separate Seed node and Bitcoin node monitoring because with the recent Tor relay node Dos protections a host with a lot of connections might get blocked.
Further extensions would be to monitor host parameters (CPU/RAM load, network load,...) of all monitored nodes. @Emzy has some nice tool running for his nodes.
To get price provider nodes monitored in the same way (using actual Bisq code not just Tor requests as it is now at http://188.166.2.139:8080/status) would be good as well.
The text was updated successfully, but these errors were encountered: