Building Custom New Relic Apps With Nerdpacks

Build exactly the view your team needs

Dashboards cover most needs. But sometimes you need a custom application inside New Relic — a team-specific uptime view, an interactive release report, or a tool that combines data and actions. Nerdpacks let you build these with React.

Tools

npm install -g nr1
nr1 profiles:add      # add your API key
nr1 create --type nerdpack --name uptime-board
cd uptime-board
nr1 nerdpack:serve    # local development

Querying Data

The SDK provides React components that run NRQL:

import { NrqlQuery, LineChart } from 'nr1';

export default function UptimeChart({ accountId }) {
  return (
    <NrqlQuery
      accountIds={[accountId]}
      query="SELECT percentage(count(*), WHERE result = 'SUCCESS') FROM SyntheticCheck FACET monitorName TIMESERIES"
    >
      {({ data }) => <LineChart data={data} fullWidth />}
    </NrqlQuery>
  );
}

Charts and UI components match New Relic's design system.

NerdStorage

Store app state (user preferences, saved views, notes) with NerdStorage — per user, per account, or per entity.

Publishing

nr1 nerdpack:publish
nr1 nerdpack:subscribe

Your app appears in your New Relic account's apps catalogue.

Ideas

  • Team uptime board combining synthetics and SLOs
  • Release health report comparing versions
  • Cost and ingest dashboard by team
  • Service ownership directory

Nerdpacks turn New Relic into a platform. When dashboards aren't enough, build the tool your team actually needs.

Arivanandhan Chitheshwaran