It gets its information by either monitoring a specific interface, or by reading previously-saved tcpdump data from a file.Make sure -jobname is aligned with existing -jobname entry, and other lines are also indented properly.
Tcpstat Mac OS XIntroduction This tutorial assumes you have Ubuntu 18.04 or 20.04 running on your node (a Mac OS X version of this tutorial will come later).Tcpstat How To Set UpThis tutorial will show how to set up infrastructure to monitor an instance of AvalancheGo.We will use: Prometheus to gather and store data nodeexporter to get information about the machine, AvalancheGos metrics API to get information about the node Grafana to visualize data on a dashboard. Prerequisites: A running AvalancheGo node Shell access to the machine running the node Administrator privileges on the machine Caveat: Security The system as described here should not be opened to the public internet. Neither Prometheus nor Grafana as shown here is hardened against unauthorized access. Make sure that both of them are accessible only over a secured proxy, local network, or VPN. Setting that up is beyond the scope of this tutorial, but exercise caution. Bad security practices could lead to attackers gaining control over your node It is your responsibility to follow proper security practices. Contributions The basis for the Grafana dashboard was taken from the good guys at ColmenaLabs, which is apparently not available anymore. If you have ideas and suggestions on how to improve this tutorial, please say so, post an issue, or make a pull request on Github. Now, we can run Prometheus as a system service: sudo systemctl daemon - reload sudo systemctl start prometheus sudo systemctl enable prometheus Prometheus should now be running. To make sure, we can check with: systemctl status prometheus which should produce something like: prometheus. ![]() Tcpstat Password Adminadmin AndLog in with usernamepassword adminadmin and set up a new, secure password. Now we need to connect Grafana to our data source, Prometheus. On Grafanas web interface: Go to Configuration on the left-side menu and select Data Sources. In the form, enter the name (Prometheus will do), and as the URL. Click Save Test Check for Data source is working green message. Set up nodeexporter In addition to metrics from AvalancheGo, lets set up up monitoring of the machine itself, so we can check CPU, memory, network and disk usage and be aware of any anomalies. Get the latest version with: curl -s grep browserdownloadurl grep linux-amd64 cut -d -f 4 wget -qi - change linux-amd64 if you have a different architecture (RaspberryPi is linux-arm64, for example). Untar and move the executable: tar xvf nodeexporter - 1.0.1. Then we add nodeexporter as a service. Start the service, and enable it on boot: sudo systemctl start nodeexporter sudo systemctl enable nodeexporter sudo systemctl status nodeexporter Now, were ready to tie it all together. Configure AvalancheGo and nodeexporter Prometheus jobs Make sure that your AvalancheGo node is running with appropriate command line arguments. Lets edit Prometheus configuration: Do: sudo nano etc prometheus prometheus.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |