Full Disclosure: This article is not sponsored (or promoted) by Fastly, New Relic, or any other organization. The sole purpose of this article is support the opensource community.
Fastly-Tempo is an opensource project that allows you to stream real-time aggregated metrics from Fastly into New Relic and other monitoring services.
This project is opensource and hosted on GitHub.
Getting Started 💻
Getting started and using the Fastly-to-Insights project is incredibly easy! In fact, it can be used by running a single command.
Then run the command below:
docker run \
-e ACCOUNT_ID='yourNewRelicAccountId' \
-e FASTLY_KEY='yourFastlyKey' \
-e INSERT_KEY='yourNewRelicInsertKey' \
-e SERVICES='ServiceId1 ServiceId2 ...' \
Grab the image from DockerHub 🐳
Boom! You should now have metrics from all your specified Fastly services streaming in real-time into New Relic.
The next step is to create some dashboards to visualize this data.
Dashboard Creation 🗺️
To start visualizing your data, you will need to create a dashboard.
Tip: Make sure to “find and replace”
“accountId”: 1234567in the JSON template to your own New Relic accountId. Also ensure to set your dashboard permissions appropriately.
- Save the JSON dashboard template available here
- “Find and Replace”
“accountId”: 1234567with your own New Relic accountId
- Import the dashboard to your account through the New Relic UI — docs
Congrats! You should now have some pretty slick dashboards to visualize your Fastly metrics in real-time.
Exported Values 🧮
There are over 100 values are are exported from the Fastly-to-Insights project for your to create dashboards on, visualize and set alerts for. Here is the complete list of usable values:
Writing Custom Queries (NRQL)🔎
You can use any of the values above with New Relic’s Query Language to create your own visualizations and reports.
Here are several examples using
NRQL to create a few sample visualizations:
Further Documentation 📚
For further documentation on how this project works, building your own images, and enabling more features, check out the GitHub repo!
If you like this project and want to support its development, you are free to do so! There are plans to expand Fastly Tempo to additional backends such as Graphite, Splunk, and Datadog.
CDN’s are generally Tier 0 services that need robust and continuous monitoring. Fastly provides great real-time metrics available via their API or consumption. Using Fastly-Tempo, you can build out a centralized dashboard for real-time alerts, monitoring and service visualization for Fastly using their API. If you followed along, you should now have a data pipeline to visualize all your Fastly services and monitor their performance. Enjoy! 🎉