Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danopstech/starlink
π Starlink Monitoring System. Measuring the performance of your Starlink internet connection
https://github.com/danopstech/starlink
docker-compose grafana monitoring observability prometheus prometheus-exporter spacex starlink
Last synced: about 2 months ago
JSON representation
π Starlink Monitoring System. Measuring the performance of your Starlink internet connection
- Host: GitHub
- URL: https://github.com/danopstech/starlink
- Owner: danopstech
- License: gpl-3.0
- Created: 2021-04-16T16:51:42.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-01T14:48:13.000Z (over 2 years ago)
- Last Synced: 2024-07-31T19:44:14.074Z (5 months ago)
- Topics: docker-compose, grafana, monitoring, observability, prometheus, prometheus-exporter, spacex, starlink
- Homepage:
- Size: 4.52 MB
- Stars: 258
- Watchers: 24
- Forks: 38
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
Starlink Monitoring System
π°οΈ Measuring the performance of your "Beta" Starlink internet connection! π‘
Not affiliated with or acting on behalf of Starlinkβ’οΈ
Report Bug
β’
Request Feature
## ποΈ Built With
- π³ **[Starlink exporter](https://github.com/danopstech/starlink_exporter)** - talks to the Starlink dish via gRPC and exposes metrics in a format Prometheus understands.
- π³ **[Speedtest exporter](https://github.com/danopstech/speedtest_exporter)** - When asked it carries out a ping,upload and download test to [speedtest.net](https://www.speedtest.net/).
- π³ **[Blackbox exporter](https://github.com/prometheus/blackbox_exporter/)** - Carries out high frequency ping tests.
- π³ **[Grafana](https://grafana.com/)** - used to compose observability dashboards.
- π³ **[Prometheus](https://prometheus.io/)** - implements a highly dimensional data model.
- π³ **[Docker-Compose](https://docs.docker.com/compose/)** - for defining and running multi-container Docker applications.## π Overview
I hope this project will make it easier for users to monitor their Starlink connection in even more detail, see its performance over time with each beta software release, but most importantly brag about their new satellite base internet to EVERYONE!
**What does this do?**
1. Collects information from the Starlink dish every 3 seconds such as: signal strength, alarms, obstructions and latency
2. Runs internet speed tests every 60 minutes (upload, download, ping)
3. Measures latency to multiple destinations globally every 3 seconds
4. Stores all the metrics in a local database (Prometheus time series database)
5. You can then view the metrics on pre-built dashboards or create your own dashboards in Grafana.
β οΈ IMPORTANT: When running; this will carry out speedtests every 60 minutes, which will download and upload a fair amount of data over time. Please bare this in mind if your internet connection fails over to tethered/mobile or a data chargeable supplier when Starlink is not available.
## ποΈ Quick Start
If you have good knowledge of the above technologies, possibly a Developer, DevOps Engineer, etc then quick start is for you:
1. Clone the repo and `cd` into your local copy
2. `docker-compose pull && docker-compose up --remove-orphan`
3. Grafana is on `localhost:3000` (admin/admin)
4. The others services are on the ports as per the above diagram.## π’ Detailed Start (Slower Start)
### Pre-requisites
Ensure you install the latest version of docker and docker-compose on your host machine.- [Docker](https://docs.docker.com/get-docker/)
- [Docker Compose](https://docs.docker.com/compose/install/)To test you have both installed correctly, open your `Shell or Terminal` and run following commands:
```bash
$ docker --version
```
```bash
$ docker-compose --version
```### Install
After installing the pre-requisites, You need all the files within this Github Repository downloaded to the machine you want to run the monitoring from.
This machine must be connected to the same network as the Starlink dish (more then likely the Starlink wifi).- If you know `git` and have it installed then clone the repository - https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/cloning-a-repository
- Or use Github desktop - https://desktop.github.com/
- Or if you don't know `git` and/or don't want to install it then you can download the files as a [zip here](https://github.com/danopstech/starlink/archive/refs/heads/main.zip) or from clicking the green code button (top right)
> π‘ Please **Star** and **Watch** the repository to hopefully get updates as new features are added
Quick overview of the file structure you now have locally (for information only, you don't really need to know this):
```bash
starlink
βββ .docs # Extra docs and images
βββ config # Configuration for each service
β βββ grafana
β β βββ provisioning
β β βββ dashboards # The preloaded dashboards
β β βββ datasources # The preloaded config to talk with prometheus
β βββ prometheus # Prometheus config file
β βββ blackbox # Blackbox exporter config file
βββ data # Persistent data
β βββ grafana # Grafana will store its running files here
β βββ prometheus # Prometheus will store its running files here
βββ docker-compose.yaml # Defines all the applications to run
```### Setup
Open a terminal again and `cd` into the directory of your local copy. we will start all the services using Docker Compose and see logs on the terminal. The logs should quieten down, then your ready to read the "usage" section.
```bash
$ cd
$ docker-compose pull && docker-compose up --remove-orphan
```### Upgrading
The Docker Compose file will run the latest versions of all the applications. To upgrade you need to pull the new image versions and then restart the current running ones.
As we ran the original `docker-compose up` in the foreground, so we could watch the logs. Your need to open a new terminal and `cd` to the repository directory.
```bash
$ docker-compose pull
$ docker-compose restart
```### Stopping
To stop you can `ctrl-c` the foreground task in the original terminal and then:
```bash
$ docker-compose down
```## π Usage (from the browser)
**Grafana:**
- This is where the pretty graphs are
- Access via your browser at [http://localhost:3000](http://localhost:3000)
- The username and password is "admin" (no need to change it, its only local)
- Pre-loaded dashboards are Starlink, Speedtest, Ping**Prometheus**
- If you know [promQL](https://prometheus.io/docs/prometheus/latest/querying/basics/), this is where you can create adhoc queries
- Access via your browser at [http://localhost:9090](http://localhost:9090)
- You can check the state of the exporters [here](http://localhost:9090/targets)**Starlink Exporter**
- Standard usage there is no need to visit this
- Access via your browser at [http://localhost:9817](http://localhost:9817)
- `/metrics` link will get the latest metrics from the Starlink dish
- `/health` link shows you the gRPC connection state to the dish**Speedtest Exporter**
- Standard usage there is no need to visit this
- Access via your browser at [http://localhost:9092](http://localhost:9092)
- `/metrics` link takes 40 seconds to load as it carries out a speedtest
- You might get an error `Limit of concurrent requests reached (1), try again later.` this means a speedtest is already running
- `/health` link shows you if it can reach the internet**Blackbox Exporter**
- Standard usage there is no need to visit this
- Access via your browser at [http://localhost:9115](http://localhost:9115)
- Recent probes table shows you past ping test details## π Extras
### Running versioned imagesIf you would like more control over which versions of each image to run please visit: [Moving to versioned releases](https://github.com/danopstech/starlink/blob/main/.docs/versioned_releases.md)
### Pushing to a cloud based Grafana account
As standard all data stays on your local machine in the `data` folder, we **do not** collect your dish metrics centrally. If you would like more information about pushing metrics into your own Grafana cloud account: [Pushing metrics to Grafana cloud](https://github.com/danopstech/starlink/blob/main/.docs/grafana_cloud.md)
## π Roadmap
See the open [issues](https://github.com/danopstech/starlink/issues) for a list of proposed features (and known issues).## ποΈ License
[GPL-3.0 License](https://github.com/danopstech/starlink/blob/main/LICENSE)## π Author
This project was created in 2021 by [Dan Willcocks](https://github.com/dwillcocks).## π Troubleshooting
Some troubleshooting tips coming soon, until then raise an [issue](https://github.com/danopstech/starlink/issues/new?assignees=dwillcocks&labels=bug&template=bug_report.md&title=).