![internet usage monitor network internet usage monitor network](https://cdn.comparitech.com/wp-content/uploads/2017/12/OpManager_Interfaces.jpg)
Copy that key and paste it in a new line in the ~/.ssh/authorized_keys file on the remote host under your control that you'll use for the persistent tunnel. The first thing I did was create an SSH key on my Pi under the pi user account using the following command (using all the defaults when prompted): ssh-keygen -t ed25519 -C "pi-starlink"Īfter the key is generated, run cat ~/.ssh/id_ed25519.pub to see the public key. However, I noticed that plain old ssh can be used in the same fashion, when paired with a properly-configured systemd service.
![internet usage monitor network internet usage monitor network](https://i.stack.imgur.com/0mPx5.png)
To do that, I was going to set up autossh, to configure up a persistent SSH connection from the Pi to a server under my control outside the local Starlink network. So the monitoring was one half of the task the other part is being able to log into the Pi remotely and view Grafana from my home. It could take 5-10 minutes for statistics to start populating be sure to refresh the dashboard (or turn on auto-refresh) to see the metrics start coming in.
INTERNET USAGE MONITOR NETWORK PASSWORD
If you visit that URL and log in with the default credentials ( admin / wonka-configure the default password in the grafana/config.monitoring file), then you should be able to go to the dashboards (go to Dashboards > Manage), and click on the 'internet connection' dashboard. (Substitute your Pi's IP address or hostname for the 10.x IP address I am using here.) This exposes a number of ports on the Pi-so make sure you lock things down as you see fit on your own network-but the most important is the Grafana URL, which is: Next, I cloned the internet-monitoring project from my fork (which is tuned for Raspberry Pi) and ran the included docker-compose file: git clone
INTERNET USAGE MONITOR NETWORK INSTALL
I logged out and logged back in so the new group would apply, and installed docker-compose: sudo apt-get install -y libffi-dev libssl-dev python3-dev python3-pip git Once that was done, I added my pi user to the Docker group: sudo usermod -aG docker pi To prep my Pi, I had to make sure I had Docker installed, so I followed the steps: wget -O get-docker.sh So I started looking into it, and found someone already did it for me-I found the maxandersen/internet-monitoring project on GitHub, and used that (though I made a slightly modified fork that works better on Raspberry Pi).
![internet usage monitor network internet usage monitor network](https://fossbytes.com/wp-content/uploads/2016/03/windows-10-network-usage-app.jpg)
Internet Monitoring on the Piįor the first task, I had plans to build a Prometheus and Grafana-based dashboard for metrics on the Pi, and run everything inside Docker containers. So to make remote access possible, I would have to find a way to have the Pi reach out to one of my servers with a persistent connection, then I could 'tunnel' through that server from other locations to reach the Pi. The wrinkle with a Starlink-based Internet connection, though, is that SpaceX is using Carrier-Grade NAT (CGNAT) on their network, so there won't be any kind of IPv4 address I could reach the Pi at, nor does SpaceX yet have IPv6 set up in their network. I know the Starlink app has its own monitoring, but I like to have my own fancy independent monitoring in place too. recently I acquired a Starlink 'Dishy', and I'm going to be installing it at a rural location near where I live, but since it's a bit of a drive to get to it, I wanted to set up a Raspberry Pi to monitor the Starlink connection quality over time.