diff --git "a/.gitbook/assets/Scherm\302\255afbeelding 2024-06-13 om 19.49.40.png" "b/.gitbook/assets/Scherm\302\255afbeelding 2024-06-13 om 19.49.40.png" deleted file mode 100644 index 6e91159..0000000 Binary files "a/.gitbook/assets/Scherm\302\255afbeelding 2024-06-13 om 19.49.40.png" and /dev/null differ diff --git a/.gitbook/assets/apprise_notification.png b/.gitbook/assets/apprise_notification.png deleted file mode 100644 index 4a87ef9..0000000 Binary files a/.gitbook/assets/apprise_notification.png and /dev/null differ diff --git a/.gitbook/assets/db_notification.png b/.gitbook/assets/db_notification.png index 05b928c..68116c5 100644 Binary files a/.gitbook/assets/db_notification.png and b/.gitbook/assets/db_notification.png differ diff --git a/.gitbook/assets/mail_notification.png b/.gitbook/assets/mail_notification.png index 2e69842..0281aba 100644 Binary files a/.gitbook/assets/mail_notification.png and b/.gitbook/assets/mail_notification.png differ diff --git a/.gitbook/assets/prometheus_settings.png b/.gitbook/assets/prometheus_settings.png new file mode 100644 index 0000000..a4d97fb Binary files /dev/null and b/.gitbook/assets/prometheus_settings.png differ diff --git a/.gitbook/assets/webhook_notification.png b/.gitbook/assets/webhook_notification.png index 8fad263..04c1783 100644 Binary files a/.gitbook/assets/webhook_notification.png and b/.gitbook/assets/webhook_notification.png differ diff --git a/README.md b/README.md index c1ebe15..1875132 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ description: >- # Introduction {% hint style="info" %} -Docs are up-to-date through version: `v1.6.0` +Docs are up-to-date through version: `v1.13.x` {% endhint %}
diff --git a/SUMMARY.md b/SUMMARY.md index ba7d405..9f02157 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -31,7 +31,9 @@ * [Data Integrations](settings/data-platforms/README.md) * [InfluxDB v2](settings/data-platforms/influxdb2.md) + * [Prometheus](settings/data-platforms/prometheus.md) * [Notifications](settings/notifications/README.md) + * [Apprise](settings/notifications/apprise.md) * [Database](settings/notifications/database.md) * [Mail](settings/notifications/mail.md) * [Webhook](settings/notifications/webhook.md) @@ -44,7 +46,6 @@ * [Traefik](other/proxies/traefik.md) * [Tailscale](other/proxies/tailscale.md) * [Nginx](other/proxies/nginx.md) -* [Caching](other/caching.md) * [Commands](other/commands.md) * [Data Dictionary](other/data-dictionary.md) * [Embed Dashboard](other/embed-dashboard.md) diff --git a/features.md b/features.md index 55714d9..20da87e 100644 --- a/features.md +++ b/features.md @@ -4,4 +4,4 @@ description: A full list of implemented features and those that are planned. # Features -
FeaturesStatus
Install options
Docker images for x86Done
Docker images for arm64Done
unRAID Community AppDone
Dashboard
Show the most recent resultsDone
Pretty graphsDone
Results
History of failed and successful resultsDone
Filter by scheduled and successfulDone
Export selected results to CSVDone
Speedtest options
Scheduled testsDone
Adhoc testDone
Manually specify a serverDone
Manually specify a list of serversDone
Threshold alertsDone
Ping options
Ping a domain or list of domainsPlanned
Database support
SQLite (default)Done
MariaDB / MySQLDone
PostgresqlDone
InfluxDB v2Done
PrometheusPlanned
Notification Channels
In-appDone
MailDone
DiscordDone
GotifyDone
SlackDone
TelegramDone
WebhooksDone
NtfyDone
PushoverDone
HealthCheck.ioDone
Application Monitoring
https://ohdear.app/Planned
https://thenping.me/Planned
https://healthchecks.io/Planned
+
FeaturesStatus
Install options
Docker images for x86Done
Docker images for arm64Done
unRAID Community AppDone
Dashboard
Show the most recent resultsDone
Pretty graphsDone
Results
History of failed and successful resultsDone
Filter by scheduled and successfulDone
Export selected results to CSVDone
Speedtest options
Scheduled testsDone
Adhoc testDone
Manually specify a serverDone
Manually specify a list of serversDone
Threshold alertsDone
Ping options
Ping a domain or list of domainsPlanned
Database support
SQLite (default)Done
MariaDB / MySQLDone
PostgresqlDone
InfluxDB v2Done
PrometheusDone
Notification Channels
In-appDone
MailDone
WebhooksDone
AppriseDone
Application Monitoring
https://ohdear.app/Planned
https://thenping.me/Planned
https://healthchecks.io/Planned
diff --git a/getting-started/environment-variables.md b/getting-started/environment-variables.md index eafc87f..c1eba47 100644 --- a/getting-started/environment-variables.md +++ b/getting-started/environment-variables.md @@ -8,16 +8,22 @@ description: >- ### Application -
NameRequiredDescriptionExample
PUIDtrueUsed to set the user the container should run as.1000
PGIDtrueUsed to set the group the container should run as.1000
APP_NAMEfalseUsed to define the application's name in the dashboard and in notifications.
APP_KEYtrueKey used to encrypt and decrypt data. See the install docs to generate a key.
ADMIN_NAMEfalseName of the initial admin user.
Note: Only effective during initial setup.
Admin
ADMIN_EMAILfalseEmail of the initial admin user.
Note: Only effective during initial setup.
admin@example.com
ADMIN_PASSWORDfalsePassword of the initial admin user.
Note: Only effective during initial setup.
password
ALLOWED_IPSfalseBlock requests to the application unless from the allowed addresses.127.0.0.1,127.0.0.2
APP_URLfalseURL used for links in emails and notifications.https://speedtest.example.com
ASSET_URLfalseURL used for assets, needed when using a reverse proxy.https://speedtest.example.com
APP_TIMEZONEfalseApplication timezone should be set if your database does not use UTC as its default timezone.Europe/London
CHART_BEGIN_AT_ZEROfalseBegin the dashboard axis charts at zero.

- Default: true
true or false
CHART_DATETIME_FORMATfalseSet the formatting of timestamps in charts.

Formatting: https://www.php.net/manual/en/datetime.format.php
j/m G:i
(18/10 20:06)
DATETIME_FORMATfalseSet the formatting of timestamps in tables and notifications.

Formatting: https://www.php.net/manual/en/datetime.format.php
j M Y, G:i:s
(18 Oct 2024, 20:06:01)
DISPLAY_TIMEZONEfalseDisplay timestamps in your local time.America/New_York
CONTENT_WIDTHfalseWidth of the content section of each page. Can be set to any value found in the Filament docs.

- Default:7xl
PUBLIC_DASHBOARDfalseEnables the public dashboard for guest (unauthenticated) users.

- Default:false
+
NameRequiredDescriptionExample
PUIDtrueUsed to set the user the container should run as.1000
PGIDtrueUsed to set the group the container should run as.1000
APP_KEYtrueKey used to encrypt and decrypt data. See the install docs to generate a key.
APP_URLtrueURL used for links in emails and notifications.https://speedtest.example.com
APP_NAMEfalseUsed to define the application's name in the dashboard and in notifications.
ADMIN_NAMEfalseName of the initial admin user.
Note: Only effective during initial setup.
Admin
ADMIN_EMAILfalseEmail of the initial admin user.
Note: Only effective during initial setup.
admin@example.com
ADMIN_PASSWORDfalsePassword of the initial admin user.
Note: Only effective during initial setup.
password
ASSET_URLfalseURL used for assets, needed when using a reverse proxy.https://speedtest.example.com
APP_LOCALEfalseChange the default language.
APP_TIMEZONEfalseApplication timezone should be set if your database does not use UTC as its default timezone.Europe/London
ALLOWED_IPSfalseBlock requests to the application unless from the allowed addresses.127.0.0.1,127.0.0.2
*** -### Speedtest +### Display -
NameRequiredDescriptionExample
SPEEDTEST_SKIP_IPSfalseA comma separated list of public IP addresses where tests will be skipped when present.127.0.0.1 or 127.0.0.0/16
SPEEDTEST_SCHEDULEfalseCron expression used to run speedtests on a scheduled basis. https://crontab.guru/ is a helpful tool.6 */2 * * *
(At minute 6 past every 2nd hour)
SPEEDTEST_SERVERSfalse

Comma separated list of server IDs to randomly use for speedtest.

To find servers near you visit: https://c.speedtest.net/speedtest-servers-static.php

52365 or 36998,52365
SPEEDTEST_BLOCKED_SERVERSfalseComma separated list of server IDs that should not be used when running speedtests.
SPEEDTEST_INTERFACEfalseSet the network interface to use for the test. This need to be the network interface available inside the containereth0
SPEEDTEST_CHECKINTERNET_URLfalseSet the URL used for checking of an active internet connection. We check only for an HTTP 200 response ocde.
THRESHOLD_ENABLEDfalseEnable the thresholds. Note: Only effective during initial setup.true
THRESHOLD_DOWNLOADfalse

Set the Download Threshold

Note: Only effective during initial setup.

900
THRESHOLD_UPLOADfalse

Set the Upload Threshold

Note: Only effective during initial setup.

900
THRESHOLD_PINGfalse

Set the Ping Threshold

Note: Only effective during initial setup.

25
PRUNE_RESULTS_OLDER_THANfalseSet the value to greater than zero to prune stored results. This value should be represented in days, e.g. 7 will purge all results over 7 days old.7
+
NameRequiredDescriptionExample
CHART_BEGIN_AT_ZEROfalseBegin the dashboard axis charts at zero.

- Default: true
true or false
CHART_DATETIME_FORMATfalseSet the formatting of timestamps in charts.

Formatting: https://www.php.net/manual/en/datetime.format.php
j/m G:i
(18/10 20:06)
DATETIME_FORMATfalseSet the formatting of timestamps in tables and notifications.

Formatting: https://www.php.net/manual/en/datetime.format.php
j M Y, G:i:s
(18 Oct 2024, 20:06:01)
DISPLAY_TIMEZONEfalseDisplay timestamps in your local time.America/New_York
CONTENT_WIDTHfalseWidth of the content section of each page. Can be set to any value found in the Filament docs.

- Default: 7xl
PUBLIC_DASHBOARDfalseEnables the public dashboard for guest (unauthenticated) users.

- Default: false
DEFAULT_CHART_RANGEfalseSet the default time range for the dashboards

- Default: 24h
Options: 24h, week or month
+ +*** + +### Speed tests + +
NameRequiredDescriptionExample
SPEEDTEST_SKIP_IPSfalseA comma separated list of public IP addresses where tests will be skipped when present.127.0.0.1 or 127.0.0.0/16
SPEEDTEST_SCHEDULEfalseCron expression used to run speedtests on a scheduled basis. https://crontab.guru/ is a helpful tool.6 */2 * * *
(At minute 6 past every 2nd hour)
SPEEDTEST_SERVERSfalse

Comma separated list of server IDs to randomly use for speedtest.

To find servers near you visit: https://c.speedtest.net/speedtest-servers-static.php

52365 or 36998,52365
SPEEDTEST_BLOCKED_SERVERSfalseComma separated list of server IDs that should not be used when running an Ookla Speedtest.
SPEEDTEST_INTERFACEfalseSet the network interface to use for the test. This need to be the network interface available inside the containereth0
SPEEDTEST_EXTERNAL_IP_URLfalseURL of a service used to get the external WAN IP address.
SPEEDTEST_INTERNET_CHECK_HOSTNAMEfalseHostname used to ping for an active internet connection.
THRESHOLD_ENABLEDfalseEnable the thresholds. Note: Only effective during initial setup.true
THRESHOLD_DOWNLOADfalse

Set the Download Threshold

Note: Only effective during initial setup.

900
THRESHOLD_UPLOADfalse

Set the Upload Threshold

Note: Only effective during initial setup.

900
THRESHOLD_PINGfalse

Set the Ping Threshold

Note: Only effective during initial setup.

25
PRUNE_RESULTS_OLDER_THANfalseSet the value to greater than zero to prune stored results. This value should be represented in days, e.g. 7 will purge all results over 7 days old.7
*** ### API -
NameRequiredDescriptionExample
API_RATE_LIMITfalseNumber of requests per minute to the API.

- Default: 60
100
+
NameRequiredDescriptionExample
API_RATE_LIMITfalseNumber of requests per minute to the API.

- Default: 60
100
API_MAX_RESULTSfalseSets the maximum number of results returned by API.

- Default 500
500
diff --git a/getting-started/installation/README.md b/getting-started/installation/README.md index 115b677..e37ce3b 100644 --- a/getting-started/installation/README.md +++ b/getting-started/installation/README.md @@ -2,6 +2,10 @@ Speedtest Tracker is containerized so you can run it anywhere you run your containers. The image is built by LinuxServer.io, build information can be found [here](https://fleet.linuxserver.io/image?name=linuxserver/speedtest-tracker). +{% hint style="danger" %} +Only the installation methods listed below are supported. Any other installation methods, such as bare metal setups or Proxmox LXCs, are **not supported** by this project. +{% endhint %} + Use the install guides listed below to install Speedtest Tracker: ### Docker diff --git a/getting-started/installation/using-docker-compose.md b/getting-started/installation/using-docker-compose.md index d3a5d67..96fdaba 100644 --- a/getting-started/installation/using-docker-compose.md +++ b/getting-started/installation/using-docker-compose.md @@ -16,7 +16,7 @@ Docker run commands can be found on the [Using Docker](using-docker.md) page and {% stepper %} {% step %} -#### Generate an Application Key +**Generate an Application Key** Run the command below to generate a key, the key is required for [encryption](../../security/encryption.md). Copy this key including the `base64:` prefix and paste it as your `APP_KEY` value. @@ -26,10 +26,16 @@ echo -n 'base64:'; openssl rand -base64 32; {% endstep %} {% step %} -#### **Setting Up Docker** +**Setting Up Docker** SQLite is fine for most installs but you can also use more traditional relational databases like MariaDB, MySQL and Postgres. +{% hint style="info" %} +You will need to get your user's `PUID` and `PGID`, you can do this by running `id $user` on the host. + +[https://docs.linuxserver.io/general/understanding-puid-and-pgid/](https://docs.linuxserver.io/general/understanding-puid-and-pgid/) +{% endhint %} + {% tabs %} {% tab title="SQLite" %} ```yaml @@ -42,9 +48,10 @@ services: - 8080:80 - 8443:443 environment: - - PUID=1000 - - PGID=1000 - - APP_KEY= + - PUID= + - PGID= + - APP_KEY= # Required + - APP_URL= # Required - DB_CONNECTION=sqlite volumes: - /path/to/data:/config @@ -62,9 +69,10 @@ services: - 8080:80 - 8443:443 environment: - - PUID=1000 - - PGID=1000 - - APP_KEY= + - PUID= + - PGID= + - APP_KEY= # Required + - APP_URL= # Required - DB_CONNECTION=mariadb - DB_HOST=db - DB_PORT=3306 @@ -107,9 +115,10 @@ services: - 8080:80 - 8443:443 environment: - - PUID=1000 - - PGID=1000 - - APP_KEY= + - PUID= + - PGID= + - APP_KEY= # Required + - APP_URL= # Required - DB_CONNECTION=mysql - DB_HOST=db - DB_PORT=3306 @@ -152,9 +161,10 @@ services: - 8080:80 - 8443:443 environment: - - PUID=1000 - - PGID=1000 - - APP_KEY= + - PUID= + - PGID= + - APP_KEY= # Required + - APP_URL= # Required - DB_CONNECTION=pgsql - DB_HOST=db - DB_PORT=5432 @@ -167,17 +177,18 @@ services: depends_on: - db db: - image: postgres:17 + image: postgres:18 restart: always environment: - POSTGRES_DB=speedtest_tracker - POSTGRES_USER=speedtest_tracker - POSTGRES_PASSWORD=password + - PGDATA=/var/lib/postgresql/data/ volumes: - speedtest-db:/var/lib/postgresql/data healthcheck: - test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"] - interval: 5s + test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres}"] + interval: 10s retries: 5 timeout: 5s volumes: @@ -192,13 +203,13 @@ If you would like to provide your own SSL keys, they must be named `cert.crt` (f {% endstep %} {% step %} -#### **Environment Variables** +**Environment Variables** In order for the application to run smoothly, some environment variables need to be set. Check out the [Environment Variables](../environment-variables.md) section. Make sure all **required** variables are configured. {% endstep %} {% step %} -#### **Configuration Variables (Optional)** +**Configuration Variables (Optional)** You can set configuration variables to have automatic speedtest on an schedule. Check out the [Environment Variables](../environment-variables.md#speedtest) section on how to set the variables. Also see the [FAQ](../../help/faqs.md#speedtest) for tips effectively scheduling tests. @@ -208,13 +219,13 @@ Complete overview of the Environment Variables for custom configuration can be f {% endstep %} {% step %} -#### **Start the Container** +**Start the Container** You can now start the container accordingly the platform you are on. {% endstep %} {% step %} -#### **First Login** +**First Login** During the start the container there is a default username and password created. Use the [default login](../../security/authentication.md#default-user-account) credentials to login to the application. You can [change the default user](../../security/authentication.md#change-account-details) after logging in. {% endstep %} diff --git a/getting-started/installation/using-docker.md b/getting-started/installation/using-docker.md index 15187a3..b5ff34a 100644 --- a/getting-started/installation/using-docker.md +++ b/getting-started/installation/using-docker.md @@ -16,7 +16,7 @@ Docker run commands assume you already have a database installed and configured. {% stepper %} {% step %} -#### Generate an Application Key +**Generate an Application Key** Run the command below to generate a key, the key is required for [encryption](../../security/encryption.md). Copy this key including the `base64:` prefix and paste it as your `APP_KEY` value. @@ -26,24 +26,30 @@ echo -n 'base64:'; openssl rand -base64 32; {% endstep %} {% step %} -#### **Setting Up Docker** +**Setting Up Docker** SQLite is fine for most installs but you can also use more traditional relational databases like MariaDB, MySQL and Postgres. +{% hint style="info" %} +You will need to get your user's `PUID` and `PGID`, you can do this by running `id $user` on the host. + +[https://docs.linuxserver.io/general/understanding-puid-and-pgid/](https://docs.linuxserver.io/general/understanding-puid-and-pgid/) +{% endhint %} + {% tabs %} {% tab title="SQLite" %} -```docker -docker run -d --name speedtest-tracker --restart unless-stopped \ +
docker run -d --name speedtest-tracker --restart unless-stopped \
     -p 8080:80 \
     -p 8443:443 \
-    -e PUID=1000 \
-    -e PGID=1000 \
-    -e APP_KEY= \
+    -e PUID= \
+    -e PGID= \
+    -e APP_KEY= \
+    -e APP_URL= \
     -e DB_CONNECTION=sqlite \
     -v /path/to/data:/config \
     -v /path/to-custom-ssl-keys:/config/keys \
     lscr.io/linuxserver/speedtest-tracker:latest
-```
+
{% endtab %} {% tab title="MariaDB" %} @@ -51,9 +57,10 @@ docker run -d --name speedtest-tracker --restart unless-stopped \ docker run -d --name speedtest-tracker --restart unless-stopped \ -p 8080:80 \ -p 8443:443 \ - -e PUID=1000 \ - -e PGID=1000 \ - -E APP_KEY= \ + -e PUID= \ + -e PGID= \ + -e APP_KEY= \ + -e APP_URL= \ -e DB_CONNECTION=mariadb \ -e DB_HOST= \ -e DB_PORT=3306 \ @@ -71,9 +78,10 @@ docker run -d --name speedtest-tracker --restart unless-stopped \ docker run -d --name speedtest-tracker --restart unless-stopped \ -p 8080:80 \ -p 8443:443 \ - -e PUID=1000 \ - -e PGID=1000 \ - -e APP_KEY= \ + -e PUID= \ + -e PGID= \ + -e APP_KEY= \ + -e APP_URL= \ -e DB_CONNECTION=mysql \ -e DB_HOST= \ -e DB_PORT=3306 \ @@ -93,7 +101,8 @@ docker run -d --name speedtest-tracker --restart unless-stopped \ -p 8443:443 \ -e PUID=1000 \ -e PGID=1000 \ - -e APP_KEY= + -e APP_KEY= \ + -e APP_URL= \ -e DB_CONNECTION=pgsql \ -e DB_HOST= \ -e DB_PORT=5432 \ @@ -113,13 +122,13 @@ If you would like to provide your own SSL keys, they must be named `cert.crt` (f {% endstep %} {% step %} -#### **Environment Variables** +**Environment Variables** In order for the application to run smoothly, some environment variables need to be set. Check out the [Environment Variables](../environment-variables.md) section. Make sure all **required** variables are configured. {% endstep %} {% step %} -#### **Configuration Variables (Optional)** +**Configuration Variables (Optional)** You can set configuration variables to have automatic speedtest on an schedule. Check out the [Environment Variables](../environment-variables.md#speedtest) section on how to set the variables. Also see the [FAQ](../../help/faqs.md#speedtest) for tips effectively scheduling tests. @@ -129,14 +138,18 @@ Complete overview of the Environment Variables for custom configuration can be f {% endstep %} {% step %} -#### **Start the Container** +**Start the Container** You can now start the container accordingly the platform you are on. {% endstep %} {% step %} -#### **First Login** +**First Login** During the start the container there is a default username and password created. Use the [default login](../../security/authentication.md#default-user-account) credentials to login to the application. You can [change the default user](../../security/authentication.md#change-account-details) after logging in. {% endstep %} {% endstepper %} + +[^1]: Generate with: `echo -n 'base64:'; openssl rand -base64 32` + +[^2]: The URL where you'll access the app (e.g., `http://localhost:8080`) diff --git a/getting-started/installation/using-qnap.md b/getting-started/installation/using-qnap.md index a63287c..4e1f36b 100644 --- a/getting-started/installation/using-qnap.md +++ b/getting-started/installation/using-qnap.md @@ -30,8 +30,8 @@ services: - 8080:80 - 8443:443 environment: - - PUID=1000 - - PGID=1000 + - PUID= + - PGID= - DB_CONNECTION=mariadb - DB_HOST=db - DB_PORT=3306 diff --git a/getting-started/installation/using-synology.md b/getting-started/installation/using-synology.md index 84dcbec..c08d71a 100644 --- a/getting-started/installation/using-synology.md +++ b/getting-started/installation/using-synology.md @@ -12,30 +12,55 @@ The following directions are for the old "Docker" application, if you're using " ### Install on a Synology NAS -Open the Docker interface of your Synology Device, search for `ajustesen/speedtest-tracker` in the Registry and download it. +{% hint style="warning" %} +This guide assumes you know how to use the old "Docker" application. +{% endhint %} + +{% stepper %} +{% step %} +#### Download Image + +Open the Docker interface of your Synology Device, search for `linuxserver/speedtest-tracker` in the Registry and download it. +{% endstep %} -![download\_image](https://user-images.githubusercontent.com/92191413/210480118-b15f83af-6617-4a0d-b631-760f419425b9.png) +{% step %} +#### Create Directory Create a local directory (i.e. `/volume1/docker/speedtest-tracker`) which later can be mapped to the docker container. +{% endstep %} + +{% step %} +#### Start Image Launch the image once the download is completed. +{% endstep %} -![launch\_image](https://user-images.githubusercontent.com/92191413/210480210-baa06b52-c3b0-41a4-b50e-ce7af82d683c.png) +{% step %} +#### Map Ports Map the ports to available ports. -![port\_mapping](https://user-images.githubusercontent.com/92191413/210481629-6fa76992-403a-415e-9967-af7b00c97d87.png) +| Local Port | Container Port | +| ---------- | -------------- | +| 8443 | 443 | +| 8080 | 80 | {% hint style="info" %} Make sure the ports you choose are not used by any other application or DSM service on your device and remember to adjust the Synology Firewall settings accordingly. {% endhint %} +{% endstep %} + +{% step %} +#### Map Directory Map the directory you created earlier to the mount path `/config`. +{% endstep %} -![volume\_mapping](https://user-images.githubusercontent.com/92191413/210480901-069703e3-c6ab-446c-b53b-8c5ef3c87085.png) +{% step %} +#### Finish Review your settings and click "done". -![summary](https://user-images.githubusercontent.com/92191413/210480977-3e24ba39-b23e-463f-acba-0a1aad1e57ec.png) - You can now access Speedtest-Tracker via `http://YOUR_IP_ADDRESS:8080` or `https://YOUR_IP_ADDRESS:8443`. +{% endstep %} +{% endstepper %} diff --git a/help/error-messages.md b/help/error-messages.md index 09d958e..c16f48d 100644 --- a/help/error-messages.md +++ b/help/error-messages.md @@ -1,18 +1,82 @@ # Error Messages -### Speedtest errors +### Troubleshooting + +For all below errors there will be more information provided in the container logs. You can check the logs for more details by checking the container logs by running `docker logs speedtest-tracker`. + +or any other equivalent command for your setup. + +
+ +Enable Debugging + +By default `APP_DEBUG` is set to `false` in production to prevent verbose error outputs. To debug the issue follow the steps below. + +1. Set `APP_DEBUG=true` as a environment variable +2. Restart the container +3. Reproduce the error by visiting the page or performing the action that caused the error +4. View the output in the UI or in the logs to help resolve the issue, if you can not resolve it open an issue in the [GitHub](https://github.com/alexjustesen/speedtest-tracker/issues) repository +5. In the output the line that starts with `[timestamp] production.ERROR:` is the error the server ran into +6. Once the issue is resolved you can remove the `APP_DEBUG` environment variable + +
+ +### Application + +
+ +I'm getting a 500 | SERVER ERROR error + +The `500 | SERVER ERROR` is caused by either a bug or a misconfiguration. You must e[nable debugging](error-messages.md#enable-debugging) to determine the exact cause of the error. + +
+ +
+ +Unsupported cipher or incorrect key length. Supported ciphers are: aes-128-cbc, aes-256-cbc, aes-128-gcm, aes-256-gcm. + +This error is shown when the `APP_KEY` is not set or not set correctly. Make suer you set the `APP_KEY` as described in the [installation steps](../getting-started/installation/using-docker-compose.md#install-with-docker-compose). + +
+ +### Speedtest Process + +
+ +Failed to connected to hostname + +When a speedtest is being [processed](../other/speedtest-process.md) Speedtest Tracker will make a ICMP ping to [icanhazip.com](http://icanhazip.com) to check if there is an internet connection before starting the Speedtest + +**Possible reasons**: + +* There is a docker network problem or no internet connection. +* Some DNS blocks lists will block this domain, if you're getting errors and your server has access to the internet you'll need to add this to your allow lists. +* _Most_ Docker setups can send ICMP requests without needed elevated privileges on the host or in the container. That being said if your Docker user doesn't run with elevated permissions or doesn't belong to the Docker group you can get a failure on this step. To allow the user to send ICMP requests you need to add the permission to the container. + +**Configuration options** + +* Use available [Environment Variables](../getting-started/environment-variables.md#speed-tests) to change the endpoint to your liking + +
-Tests are saying there is no internet while there is. +Failed to fetch external IP address -When a speedtest is being processed Speedtest Tracker will make a call to [http://icanhazip.com](http://icanhazip.com) to get your external IP address. This is done to determine if your server has access to the internet and to check if your external IP address (WAN IP) should be skipped. +When the `SPEEDTEST_SKIP_IPS` environment variable is Speedtest Tracker will make a call to [http://icanhazip.com](http://icanhazip.com/) to get your external IP address. This is done check if your external IP address (WAN IP) should be skipped. -Some DNS blocks lists will block this domain, if you're getting errors and your server has access to the internet you'll need to add this to your allow lists. +**Possible reasons**: + +* There is a docker network problem or no internet connection. +* Some DNS blocks lists will block this domain, if you're getting errors and your server has access to the internet you'll need to add this to your allow lists. + +**Configuration options** + +* Use available [Environment Variables](../getting-started/environment-variables.md#speed-tests) to change the endpoint to your liking. :warning: Whatever service you choose needs to only return an IP address in the body of the response for this to work.
-### Ookla errors +### Ookla Related
@@ -37,3 +101,29 @@ This usually means the defined server is no longer available. Remove it from you Not 100% sure what causes this exception yet but it's likely when the CLI can't locate a local server. You should specify a list of servers to see if that addresses the issue.
+ +
+ +Unable to retrieve Ookla servers, check internet connection and see logs. + +This errors is shown when we try to retrieve the Ookla server list when selecting an server wehn running an manual speedtest. We get the list from: [https://www.speedtest.net/api/js/servers](https://www.speedtest.net/api/js/servers). + +This error is useually caused by a docker network problem or no internet connection. You can check the [container logs](error-messages.md#troubleshooting) for more details. + +
+ +### InfluxDB + +
+ +Failed to write to InfluxDB + +When Speedtest Tracker fails to write data to InfluxDB this error is shown. The [container logs](error-messages.md#troubleshooting) will show more details on why it failed. + +**Possible reasons:** + +* Connectivity problem to influxdb +* Problem with authentication +* Specified bucket does not exist in InfluxDB + +
diff --git a/help/faqs.md b/help/faqs.md index 32aa0ea..91c3322 100644 --- a/help/faqs.md +++ b/help/faqs.md @@ -25,17 +25,16 @@ You need a `APP_KEY` for the encryption. See the [installation docs](../getting- -### Time zones -
-How do I set the display and schedule time zone? +I'm getting duplicate message via Apprise -1. Set `DISPLAY_TIMEZONE` environment variables to your local timezone. -2. Restart the container +By default when sending an notifications via Apprise we wait up to 30 seconds for Apprise to respond back with any message. Incase this 30 seconds is exceeded, we will retry 3 times. In case of any very slow Apprise processing this might cause duplicated notifications. Please check the [logs](error-messages.md#troubleshooting) to see the the timeout happend
+### Time zones +
My display timestamps or scheduled tests aren't correct. @@ -55,20 +54,3 @@ Once set restart the container. Starting your cron schedule at an off-peak minute can help reduce network congestion or avoid overloading a speed test server. This [comment](https://github.com/alexjustesen/speedtest-tracker/issues/552#issuecomment-2028532010) on this issue can help you get the formatting right.
- -### Other - -
- -I'm getting a 500 | SERVER ERROR error - -By default `APP_DEBUG` is set to `false` in production to prevent verbose error outputs. To debug the issue follow the steps below. - -1. Set `APP_DEBUG=true` as a environment variable -2. Restart the container -3. Reproduce the error by visiting the page or performing the action that caused the error -4. View the output in the UI or in the logs to help resolve the issue, if you can not resolve it open an issue in the [GitHub](https://github.com/alexjustesen/speedtest-tracker/issues) repository -5. In the output the line that starts with `[timestamp] production.ERROR:` is the error the server ran into -6. Once the issue is resolved you can remove the `APP_DEBUG` environment variable - -
diff --git a/other/caching.md b/other/caching.md deleted file mode 100644 index 9dcee43..0000000 --- a/other/caching.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -description: >- - Speedtest Tracker supports multiple cache drivers, use the docs below to setup - your preferred handler. ---- - -# Caching - -## Drivers - -You can change the default `database` cache by passing `CACHE_STORE` as an environment variable. Supported stores can be found in the [Laravel docs](https://laravel.com/docs/master/cache). diff --git a/other/commands.md b/other/commands.md index 7963490..6f01af5 100644 --- a/other/commands.md +++ b/other/commands.md @@ -20,13 +20,10 @@ Core commands exist at the framework level and might be extended to provide addi Application commands are built to extend Speedtest Tracker's functionality from the CLI. -
CommandDescription
app:installInstalls a fresh version of Speedtest Tracker. If you have an existing install this will delete all data.
app:ookla-list-serversGet a list of local Ookla speedtest servers.
app:user-change-roleChange the role for a user.
app:user-reset-passwordChange the password for a user.
+
CommandDescription
app:ookla-list-serversGet a list of local Ookla speedtest servers.
app:user-change-roleChange the role for a user.
app:user-reset-passwordChange the password for a user.
### Maintenance commands Maintenance commands help fix issues that might crop up over time.
CommandDescription
app:result-fix-statusesReviews the data payload of each result and corrects the status attribute.
- - - diff --git a/other/community-projects.md b/other/community-projects.md index 448fce1..a6f5745 100644 --- a/other/community-projects.md +++ b/other/community-projects.md @@ -11,3 +11,4 @@ description: >- * [SpeedtestTrackerBot](https://github.com/josephistired/SpeedtestTrackerBot) — SpeedtestTrackerBot is a lightweight Discord bot that integrates with the Speedtest Tracker API to provide real-time network performance data via slash commands like `/latest`, `/stats`, `/result`, and `/run`. It's easy to set up with Docker or systemd. * Stream Deck - Use the API to show the most recent result on your Stream Deck. Shoutout to [MartynKeigher](https://github.com/MartynKeigher) on GitHub for [providing](https://github.com/alexjustesen/speedtest-tracker/issues/1191) these instructions. +* [Speedtest Tracker App (iOS)](https://apps.apple.com/us/app/speedtest-tracker-app/id6755368150) - Speedtest Tracker App is a native iOS client for Speedtest Tracker, which integrates with its API to allow you to perform actions or see stats straight from your phone. diff --git a/other/proxies/cloudflare-tunnel-zero-trust.md b/other/proxies/cloudflare-tunnel-zero-trust.md index ddcd72f..b4d5aef 100644 --- a/other/proxies/cloudflare-tunnel-zero-trust.md +++ b/other/proxies/cloudflare-tunnel-zero-trust.md @@ -1,14 +1,15 @@ # Cloudflare Tunnel (Zero Trust) -[Cloudflare tunnel ](https://www.cloudflare.com/nl-nl/products/tunnel/)can be used as a Reverse Proxy in front of Speedtest Tracker when you want to expose the Dashboard publicly without exposing your IP Address and with a trusted certificate,You will need at add the `APP_URL` envoirment. +A [Cloudflare tunnel ](https://www.cloudflare.com/nl-nl/products/tunnel/)can be used as a reverse proxy in front of Speedtest Tracker when you want to expose the application publicly without exposing your IP address. ### Cloudflare Tunnel Configuration -* Go to the **Networks** -> **Tunnels** page. -* For the tunnel you want to add the Speedtest Tracker to. Click on **Edit** -* Go to **Public Hostname** -* Click on **Add a public hostname** -* Fill in the fields the following field +* Update your `APP_URL` to the public URL you are going to use and restart the service. +* In the Cloudflare panel go to **Zero Trust** -> **Networks** -> **Tunnels** page. +* For the tunnel you want to add the Speedtest Tracker to click on **Edit** or add a new tunnel. +* Go to **Public Hostname.** +* Click on **Add a public hostname.** +* Fill in the following fields. * **Subdomain:** The subdomain you want to access the Speedtest Tracker on. * **Domain:** The domain you want to access the Speedtest Tracker on. * **Type:** Connection type to the Speedtest Tracker (http/https) diff --git a/other/speedtest-process.md b/other/speedtest-process.md index ed20d23..dfa6d87 100644 --- a/other/speedtest-process.md +++ b/other/speedtest-process.md @@ -4,33 +4,31 @@ Speedtest Tracker uses the [Official Ookla CLI](https://www.speedtest.net/apps/c {% stepper %} {% step %} - -#### Waiting +**Waiting** The speedtest run request was created but has not been started. {% endstep %} {% step %} - -#### Started +**Started** The speedtest process has been started by a queue worker. {% endstep %} {% step %} -#### Checking +**Checking** -The application checks for an internet connection by calling `https://icanhazip.com` +The application checks for an internet connection by calling `https://icanhazip.com` . {% endstep %} {% step %} -#### Skipped \[Optional] +**Skipped \[Optional]** If you have the `SPEEDTEST_SKIP_IPS` the test will be marked as skipped as the IP returning during `Checking` matches your defined IP. {% endstep %} {% step %} -#### Running +**Running** The application runs the speedtest by simply running the speedtest command. This command runs the speedtest like another other speedtest and returns the result in json format so the application an easily process it. @@ -46,19 +44,19 @@ speedtest -accept-license --accept-gdpr --format=json --server-id=YOURSERVERID {% endstep %} {% step %} -#### Failed +**Failed** If for various reasons the Ookla CLI returns an error, because the defined server was offline for example the tests is marked as failed. As well when the `Checking` stage fails when there is no internet. {% endstep %} {% step %} -#### Benchmarking +**Benchmarking** When you have thresholds set this step will evaluate the results against the threshold to determine if the test was healthy or not. {% endstep %} {% step %} -#### Completed +**Completed** This is the end stage of the process when every step is completed the test is marked as such. {% endstep %} diff --git a/security/authentication.md b/security/authentication.md index c93b56e..27ef9a8 100644 --- a/security/authentication.md +++ b/security/authentication.md @@ -16,7 +16,7 @@ During the first start of the application a default admin account is created for #### Login Details -You can update the login details of your account through the profile page. Every user can update these details for there own account. +You can update the login details of your account through the profile page. Every user can update these details for their own account. * In the top right corner click on the user logo next to the bell icon. * Click on Profile diff --git a/security/authorization.md b/security/authorization.md index ecbde04..d92192a 100644 --- a/security/authorization.md +++ b/security/authorization.md @@ -23,7 +23,7 @@ ### Other -
UserAdmin
Trigger a manual Speedtestfalsetrue
+
UserAdmin
Manage API tokensfalsetrue
Trigger a manual Speedtesttruetrue
*** diff --git a/settings/data-platforms/influxdb2.md b/settings/data-platforms/influxdb2.md index a983172..5438054 100644 --- a/settings/data-platforms/influxdb2.md +++ b/settings/data-platforms/influxdb2.md @@ -14,7 +14,7 @@ If you have a history of results, you can use the `Export current results` featu ### Grafana Dashboard -You can use this community made Grafana Dashbaord to visualize your data. +You can use this community made Grafana Dashboard to visualize your data. {% embed url="https://github.com/masterwishx/Speedtest-Tracker-v2-InfluxDBv2" %} diff --git a/settings/data-platforms/prometheus.md b/settings/data-platforms/prometheus.md new file mode 100644 index 0000000..84be1cf --- /dev/null +++ b/settings/data-platforms/prometheus.md @@ -0,0 +1,35 @@ +# Prometheus + +After each test, Speedtest Tracker exposes the metrics for Prometheus to scrape. For long term storage or custom visualizations. + +### Allowed IPs + +You can configure the Prometheus endpoint so it’s only accessible from specific IP addresses or networks. This can include single IPs or entire CIDR ranges. + +
+ +### Grafana Dashboard + +You can use this community made Grafana Dashboard to visualize your data. + +{% embed url="https://github.com/CrazyWolf13/Speedtest-Tracker-Prometheus" %} + +### Data pattern + +Speedtest Tracker exports data in two categories: labels and metrics. Labels are used for filtering, while metrics are used for displaying data. + +
Name
app_namelabel
isplabel
server_idlabel
server_namelabel
server_countrylabel
server_locationlabel
healthylabel
statuslabel
scheduledlabel
download_bytesMetric
upload_bytesMetric
pingMetric
download_bitsMetric
upload_bitsMetric
download_jitterMetric
upload_jitterMetric
ping_jitterMetric
download_latency_avgMetric
download_latency_highMetric
download_latency_lowMetric
upload_latency_avgMetric
upload_latency_highMetric
upload_latency_lowMetric
packet_lossMetric
+ +### Prometheus Scrape Config + +Below is an example Prometheus scrape configuration: + +```yaml +scrape_configs: + - job_name: 'speedtest-tracker' + scrape_interval: 60s # Adjust to your set schedule + scrape_timeout: 10s + metrics_path: /prometheus + static_configs: + - targets: ['speedtest-tracker.local'] +``` diff --git a/settings/notifications/apprise.md b/settings/notifications/apprise.md index f5d7c98..5dfd401 100644 --- a/settings/notifications/apprise.md +++ b/settings/notifications/apprise.md @@ -1,22 +1,33 @@ ---- -hidden: true ---- - # Apprise -Speedtest Tracker uses [Apprise](https://github.com/caronc/apprise-api) to send notifications to a wide variety of messaging services with a simple, unified configuration. +Apprise provides a unified notification channel that lets you send alerts to numerous services—like Discord, Pushover, and Ntfy as well as many additional platforms + +### Why Apprise + +Apprise allows the application to sent notifications to a wide variety of services. It let us focus on features instead of maintaining X number of notification channels. Essentially helping us cut down on maintenance/feature requests. -Apprise allows you to easily deliver alerts to popular platforms such as Discord, Slack, Telegram and many more. +### Apprise Server -{% hint style="warning" %} -To use Apprise notifications, you must deploy the [Apprise API](https://github.com/caronc/apprise-api) service. This is out of scope of this documentation. +{% hint style="info" %} +We don't offer support on setting up Apprise, incase of any problems with the Apprise Container please reach out to the Apprise team. {% endhint %} -

Apprise Settings

+To use Apprise, you’ll need to set up your own Apprise instance. This container isn’t created automatically, so make sure to include it in your deployment. See the Apprise [Github Repo](https://github.com/caronc/apprise-api) for the setup instructions. On the notification page you will need to define the location of your Apprise instance. Make sure this instance is reachable for the Speedtest Tracker. -
NameDescription
URLThis is the URL of your running Apprise API instance
Service URLThis is the URL of the service that will receive the notification. You can find a full list of supported services and how to format their URLs in the Apprise notification services documentation.
+### Notification Channels -### Triggers +Notification channels are the formatted URLs used by Apprise to send notifications to various services. Refer to the [Apprise documentation](https://github.com/caronc/apprise?tab=readme-ov-file#supported-notifications) for a full list of supported channels and their required formats. You can add as many different channels as you wish. The notifications will be sent to all of them. + +### Tips and Tricks -
NameDescription
On completed speedtestOn each successful speedtest a notification will be send to the application.
On absolute threshold failureOn any absolute threshold failure a notification will be send to the application.
+#### Format + +By default the format used for message is `markdown` This allows us to do some formatting on the message like bold text etc. + +#### Preview Images + +By default Apprise does not allow preview images for URLs. This is an default setting on the Apprise instance. Depending on the service used you can override this settings in the notification channel URL. Check the Apprise documentation to see if your service support this and how to set it. + +### Triggers +
NameDescription
on every scheduled speedtest runOn each successful scheduled speedtest a notification will be send to the application.
on threshold failures for scheduled speedtestsOn any absolute threshold failure for scheduled speedtest a notification will be send to the application.
diff --git a/settings/notifications/database.md b/settings/notifications/database.md index a253512..e4f0348 100644 --- a/settings/notifications/database.md +++ b/settings/notifications/database.md @@ -6,4 +6,4 @@ Notifications sent to the database channel will show up under the 🔔 icon in t ### Triggers -
NameDescription
On completed speedtestOn each successful speedtest a notification will be send to the application.
On absolute threshold failureOn any absolute threshold failure a notification will be send to the application.
+
NameDescription
on every scheduled speedtest runOn each successful scheduled speedtest a notification will be send to the application.
on threshold failures for scheduled speedtestsOn any absolute threshold failure for scheduled speedtest a notification will be send to the application.
diff --git a/settings/notifications/mail.md b/settings/notifications/mail.md index 9258538..a8e1bbe 100644 --- a/settings/notifications/mail.md +++ b/settings/notifications/mail.md @@ -16,40 +16,42 @@ Make sure these are not set in both your `.env` file or your `docker-compose.yml ``` MAIL_MAILER=smtp -MAIL_HOST=mailhog -MAIL_PORT=1025 -MAIL_USERNAME=null -MAIL_PASSWORD=null -MAIL_FROM_ADDRESS="hello@example.com" -MAIL_FROM_NAME="Speedtest Tracker" -MAIL_SCHEME=null +MAIL_HOST= +MAIL_PORT= +MAIL_USERNAME= +MAIL_PASSWORD= +MAIL_FROM_ADDRESS= +MAIL_FROM_NAME= ``` -**GMAIL example:** +{% hint style="info" %} +`MAIL_SCHEME` is optional, only use it if you need to define `smtp` or `smtps` otherwise Laravel will determine the scheme based on the port provided. +{% endhint %} + +*** + +### Examples -Steps for creating an app password. +#### Gmail -* Go to your [Google Account](https://myaccount.google.com) . -* Select Security. -* Under "How you sign in to Google," choose 2-Step Verification. -* Click on App passwords. -* Enter a name and generate a password. -* Remember to copy the password before closing; otherwise, you'll need to create another one. +1. Go to [https://myaccount.google.com/](https://myaccount.google.com/) and click on the "Security" tab. +2. Under the "How you sign in to Google" section, click on "2-Step Verification". +3. Click on "App passwords". +4. Enter a name for your app password and click "Create". Use this password for the `MAIL_PASSWORD` env variable in the example configuration below. ``` MAIL_MAILER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=465 -MAIL_USERNAME=username@gmail.com +MAIL_USERNAME="username@gmail.com" MAIL_PASSWORD="password" MAIL_FROM_ADDRESS="username@gmail.com" MAIL_FROM_NAME="Speedtest Tracker" -MAIL_SCHEME=tls ``` ### Triggers -
NameDescription
On completed speedtestOn each successful speedtest a notification will be send to the application.
On absolute threshold failureOn any absolute threshold failure a notification will be send to the application.
+
NameDescription
on every scheduled speedtest runOn each successful scheduled speedtest a notification will be send to the application.
on threshold failures for scheduled speedtestsOn any absolute threshold failure for scheduled speedtest a notification will be send to the application.
### Recipients diff --git a/settings/notifications/webhook.md b/settings/notifications/webhook.md index 5de3f2a..a588d9a 100644 --- a/settings/notifications/webhook.md +++ b/settings/notifications/webhook.md @@ -10,16 +10,16 @@ Payload sent for a completed test ```json { - "result_id": 2, + "result_id": 1, "site_name": "Speedtest Tracker", "server_name": "Speedtest", - "server_id": 12345, - "isp": "Speedtest Communications", - "ping": 6.7, - "download": 93281280, - "upload": 28769728, + "server_id": 52365, + "isp": "Super Speed", + "ping": 2.782, + "download": 937874216, + "upload": 937797864, "packet_loss": 0, - "speedtest_url": "https://docs.speedtest-tracker.dev", + "speedtest_url": "https://www.speedtest.net/result/c/af8ddebf-7ef7-4b8d-b0c1-aaaaaaaaaaaa", "url": "http://localhost/admin/results" } ``` @@ -28,34 +28,37 @@ Payload sent for a threshold failure ```json { - "result_id": 8, + "result_id": 1, "site_name": "Speedtest Tracker", - "service": "Ookla", - "serverName": "Speedtest", - "serverId": 12345, - "isp": "Speedtest Communications", - "metrics": [ - { - "name": "Download", - "threshold": "1000 Mbps", - "value": "91.78 Mbps" + "isp": "Super Speed", + "benchmarks": { + "download": { + "bar": "min", + "passed": false, + "type": "absolute", + "value": 2000, + "unit": "mbps" }, - { - "name": "Upload", - "threshold": "1000 Mbps", - "value": "28.18 Mbps" + "upload": { + "bar": "min", + "passed": false, + "type": "absolute", + "value": 2000, + "unit": "mbps" }, - { - "name": "Ping", - "threshold": "2 ms", - "value": "6.41 ms" + "ping": { + "bar": "max", + "passed": false, + "type": "absolute", + "value": 1, + "unit": "ms" } - ], - "speedtest_url": "https://docs.speedtest-tracker.dev", + }, + "speedtest_url": "https://www.speedtest.net/result/c/af8ddebf-7ef7-4b8d-b0c1-aaaaaaaaa", "url": "http://localhost/admin/results" } ``` ### Triggers -
NameDescription
On completed speedtestOn each successful speedtest a notification will be send to the application.
On absolute threshold failureOn any absolute threshold failure a notification will be send to the application.
+
NameDescription
on every scheduled speedtest runOn each successful scheduled speedtest a notification will be send to the application.
on threshold failures for scheduled speedtestsOn any absolute threshold failure for scheduled speedtest a notification will be send to the application.