This repository contains a sample notebook and some required files to get you started with the New Relic GraphQL API.
- Clone this repository
git clone git@gitlab.com:softbutterfly/open-source/newrelic-playground.git
- Install the dependencies
pyenv install $(cat .python-version)
poetry env use $(cat .python-version)
poetry install
- Create a
.env
file with your New Relic API key and your New Relic account id
cp .env.example .env
- Run the Jupiter lab server
poetry run jupyter lab --ContentsManager.allow_hidden=True
- Open the
newrelic-playground.ipynb
notebook
On MyBinder yo can't see the .env
file, so you'll need to replace the NRAK-your-new-relic-user-key
with your own API key using sed
. The same with the your-new-relic-account-id
value.
cp .env.template .env
sed -i 's/NRAK-your-new-relic-user-key/YOUR-REAL-NEWRELIC-USER-KEY/g' .env
sed -i 's/your-new-relic-account-id/YOUR-REAL-NEWRELIC-USER-KEY/g' .env
This project is licensed under the terms of the MIT license.