For a comprehensive how-to guide, please see my website: https://www.david-merrick.com/2017/04/17/monitoring-your-internet-speed-with-resin-io-and-datadog/
NodeJS app that does an Internet speed test uploads the results to DataDog.
Wrote this to monitor my ISP's download and upload speeds. Designed to be run on a Raspberry Pi with Resin.io.
Runs continuously at an interval specified by the SPEED_TEST_INTERVAL_MIN environment variable (default is 5 min).
- Create an app on Resin.io.
- Add your git remote for your Resin.io app and push to it:
git remote add resin your-username@git.resin.io:your-username/app-name.git
git push resin
- Get a DataDog API key.
- In your Resin app, set the "DATADOG_API_KEY" environment variable to this key.
- Profit! You should start seeing metrics being uploaded to DataDog as soon as the app is up and running.