Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Docker image of Fastly to Insights service

License

Notifications You must be signed in to change notification settings

WW-Digital/fastly-to-insights

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fastly to Insights

This is the New Relic blessed way to get your Fastly metrics into Insights, packaged as a Docker container image for ease of use!

In order to use the Fastly to Insights Docker image, you will need an active New Relic account with Insights, an active Fastly account with Read access, a New Relic Insights Insert key and a Fastly API Key. The Docker image can be found here.

How to use this image

Before you get started, make sure that you have a Fastly API Key and a New Relic Insert Key.

The Fastly to Insights image is configured by environment variables. These are mandatory:

  • ACCOUNT_ID
  • FASTLY_KEY
  • INSERT_KEY
  • SERVICES

SERVICES needs to be a string with the ids of the Fastly services you want to see data for in Insights, separated by a space. I know that's not ideal. A limitation of Fastly is that you have to query one service at a time, so I chose to create an array of service ids and loop through them to query Fastly. A limitation of Docker is that you can't pass an array via the command line, so I chose to split a string on " ". If you have a better idea, I would love to hear it - please contribute!

Example

$ docker run \
  -e ACCOUNT_ID='yourNewRelicAccountId' \
  -e FASTLY_KEY='yourFastlyKey' \
  -e INSERT_KEY='yourNewRelicInsertKey' \
  -e SERVICES='list of services' \
  newrelic/fastly-to-insights

Contributing

You are welcome to send pull requests to us - however, by doing so you agree that you are granting New Relic a non-exclusive, non-revokable, no-cost license to use the code, algorithms, patents, and ideas in that code in our products if we so choose. You also agree the code is provided as-is and you provide no warranties as to its fitness or correctness for any purpose.

More Information

For more information on the Fastly Real-Time Analytics API, look here.

For more information on the New Relic Insights API, look here.

This project is provided AS-IS WITHOUT WARRANTY OR SUPPORT, although you can report issues and contribute to the project.

About

Docker image of Fastly to Insights service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 94.4%
  • Dockerfile 5.6%