Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

A Python client to export a New Relic dashboard PDF or image programmatically.

Project description

dashboard-exporter

A Python client to export a New Relic dashboard PDF or image programmatically.

Installation

This is available on the Python Package Index (PyPI). You can install using pip.

virtualenv env
source env/bin/activate
pip install nrde

To install the development version, run:

pip install https://github.com/AnthonyBloomer/dashboard-exporter/archive/dev.zip

Usage

The first step is export your Personal API Key as an environment variable.

export NEW_RELIC_PERSONAL_API_KEY = "YOUR_API_KEY"

If you have an EU based account, you will also need to export the NEW_RELIC_REGION environment variable:

export NEW_RELIC_REGION = "EU"

Then pass the GUID of a given Dashboard to the exporter function to download a snapshot of your dashboard. You can get the GUID by pressing the info button in your dashboard.

from dashboard_exporter import exporter
output = exporter(guid="The New Relic dashboard GUID.", file_type="PDF",)
print(output)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for nrde, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size nrde-0.1.1-py2.py3-none-any.whl (2.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size nrde-0.1.1.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page