newrelic-experimental / nr1-command-center

Consolidated Violation Event View
Apache License 2.0
2 stars 4 forks source link
alerts nerdpack ops

New Relic Experimental header

New Relic One Violation Command Center (nr1-command-center)

CI GitHub release (latest SemVer including pre-releases) Snyk

A consolidated violation event view that provides details on opened critical or warning events triggered via New Relic Alerts.

DEPRECATED IN FAVOR OF V2 NERDPACK - PLEASE REFER TO https://github.com/newrelic-experimental/nr1-command-center-v2

Usage

Quickly see which accounts have open warning/critical violations or incidents and directly navigate to New Relic Alerts for a given tile.

Summary

Drill into a table view of all violations, add notes and links to external sources, and acknowledge incidents directly from the table.

Drilldown

Open source license

This project is distributed under the Apache 2 license.

What do you need to make this work?

{
  "accounts": [
    {
      "name": "Account_1", # Account Name
      "value": "39j545kmdksfm3-mk", # REST API Key
      "id": "123456" # Account ID
    },
    {
      "name": "Account_2",
      "value" "dfkm4-2349k459kmf",
      "id": "789123"
    }
  ]
}

Getting started

  1. Ensure that you have Git and NPM installed. If you're unsure whether you have one or both of them installed, run the following commands. (If you have them installed, these commands return a version number; if not, the commands won't be recognized.)
    git --version
    npm -v
  2. Install the NR1 CLI by going to this link and following the instructions (5 minutes or less) to install and set up your New Relic development environment.
  3. Execute the following commands to clone this repository and run the code locally against your New Relic data:
nr1 nerdpack:clone -r https://github.com/newrelic-experimental/nr1-command-center.git
cd nr1-command-center
nr1 nerdpack:serve

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

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 :sparkles:

Updating this Nerdpack

  1. Copy the current uuid - this can be obtained from the URL of the currently deployed nerdpack: UUID

  2. Modify the id field within nr1.json with this copied id.

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

    nr1 nerdpack:publish [--profile=your_profile_name]
    nr1 nerdpack:subscribe [-c [DEV|BETA|STABLE]] [--profile=your_profile_name]

    NOTE: Make sure your accountId configured in alarms.js matches the profile you are using to publish the new version.