This tiny script retrieve your download bandwidth speed every 5 minutes and send the data point to a fastcom index on Elasticsearch.
- Get a Fast.com API token: How to
- Have an Elasticsearch deployment running (this code is for Elastic Cloud)
Add the following environment variables:
EC_ID(Elastic Cloud ID for your deployment)ES_USERNAME(Elasticsearch username)ES_PASSWORD(Elasticsearch password)FASTCOM_TOKEN(Fast.com API token)
npm install
node index.js to run the script.