Git Product home page Git Product logo

data-apps's Introduction

New Relic One Data App Generator

Getting Started

In order to use this application, you will need to have the dashboards you wish to use for your application in JSOn format. If you own the dashboard and are logged in as a New Relic Admin, you can use the Export button at the bottom right-hand side of the dashboard itself. Otherwise, you will need to use the dashboard API:

https://docs.newrelic.com/docs/insights/insights-api/manage-dashboards/insights-dashboard-api

Pre-requesites

  • Nerdpack Manager privileges within the account you wish to deploy to
  • Dashboards in JSON format copied into: ./nerdlets/nr1-data-apps-nerdlet/components/insights-dashboard/dashboards/
  • The RPM ID for the account you wish to deploy this in

Installation

First, ensure that you have Git and NPM installed. If you're unsure whether you have one or both of them installed, run the following command(s) (If you have them installed these commands will return a version number, if not, the commands won't be recognized):

git --version
npm -v

Next, install the NR1 CLI by going to this link and following the instructions (5 minutes or less) to install and setup your New Relic development environment.

Next, to clone this repository and run the code locally against your New Relic data, execute the following commands(You will need to enter 'y' when prompted to create a new UUID for the application):

nr1 nerdpack:clone -r https://github.com/iamfuzz/data-apps
cd data-apps
npm update
nr1 nerdpack:uuid --generate

Create the dashboards directory:

mkdir nerdlets/nr1-data-apps-nerdlet/components/insights-dashboard/dashboards

You will now need to copy all of your JSON dashboards into the directory you just created above

Execute the following command which will generate a configuration file for your Data App:

python2.7 configure.py

Execute the following command to build your Data app:

python2.7 configure.py config.json

Once you have satisfied the configuration requirements above, run the following command to launch the application:

nr1 nerdpack:serve

Visit https://one.newrelic.com/?nerdpacks=local, navigate to the Nerdpack, and ✨

Deploying this Nerdpack

Open a command prompt in the nerdpack's directory and run the following commands.

# If you need to create a new uuid for the account to which you're deploying this Nerdpack, use the following
# nr1 nerdpack:uuid -g [--profile=your_profile_name]
# to see a list of APIkeys / profiles available in your development environment, run nr1 credentials:list
nr1 nerdpack:publish [--profile=your_profile_name]
nr1 nerdpack:deploy [-c [DEV|BETA|STABLE]] [--profile=your_profile_name]
nr1 nerdpack:subscribe [-c [DEV|BETA|STABLE]] [--profile=your_profile_name]

Visit https://one.newrelic.com, navigate to the Nerdpack, and ✨

Support

New Relic has open-sourced this project. This project is provided AS-IS WITHOUT WARRANTY OR SUPPORT, although you can report issues and contribute to the project here on GitHub.

Please do not report issues with this software to New Relic Global Technical Support.

data-apps's People

Contributors

iamfuzz avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.