Skip to main content

New Relic Dashboard Builder

Project description

New Relic Dashboard Builder

Build Status Coverage Status GitHub Code Style

New Relic Dashboard Builder is a command-line tool for configuring New Relic dashboards using simple, human-readable YAML files. With New Relic Dashboard Builder, definitions for New Relic dashboards can be kept in version control to support tracking change history for dashboards. Definitions for NRQL queries and widgets can be consolidated into a single canonical location to be shared across multiple dashboards, enabling easier maintenance of a large number of dashboards and widgets.

Quick Start

With New Relic Dashboard Builder, definitions for dashboards consist of five components:

  1. Conditions - Specify the conditions used in the WHERE clauses of NRQL queries (e.g. WHERE response.status = 200)
  2. Output Selections - Specify the fields and aggregations selected from NRQL queries (e.g. SELECT COUNT(*) or SELECT response.status)
  3. Displays - Specify how the data from NRQL queries are displayed by specifying any SINCE, UNTIL, WITH TIMEZONE, COMPARE WITH, or TIMESERIES clauses
  4. Queries - Specify full NRQL queries by tying together conditions, output selections, and displays.
  5. Dashboards - Specify which widgets using which queries go into which dashboards

Below is an example of a dashboard that displays information about transactions from a service

conditions:
  web-transactions-condition: transactionType = 'Web'


output-selections:
  total-count-output: COUNT(*)


displays:
  facet-response-status-display:
    nrql: FACET response.status
    visualization: facet_bar_chart


queries:
  web-transactions-by-response-status-query:
    event: Transaction
    condition: web-transactions-condition
    output: total-count-output
    display: facet-response-status-display
    title: Transactions by Response Status


dashboards:
  sample-dashboard:
    title: Sample Dashboard
    widgets:
      - widget:
        query: web-transactions-by-response-status-query
        row: 1
        column: 1
        width: 1
        height: 1

To create or update a dashboard in New Relic based on this YAML definition, simply run the New Relic Dashboard Builder tool

nrdash --api-key <Your-NewRelic-Admin-API-Key> --account-id <Your-NewRelic-Account-Id> dashboards.yml

Project details


Download files

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

Source Distribution

nrdash-0.0.1.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

nrdash-0.0.1-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file nrdash-0.0.1.tar.gz.

File metadata

  • Download URL: nrdash-0.0.1.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.0

File hashes

Hashes for nrdash-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ca211a8a6f5a1276a28335c56e8d9f5cb5473cbe55aceb0f609287ef59e089a5
MD5 445fa0c033ea5c395ccab1a541ac421e
BLAKE2b-256 2f1d9294b9949a06a70dd5da1d154ed2f9a413e0ff824ef00990afae933971da

See more details on using hashes here.

Provenance

File details

Details for the file nrdash-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: nrdash-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.0

File hashes

Hashes for nrdash-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 87501262e6a33c75aec1b676572de022ccc20a13c8a34b7ba068c1b0a135ccbf
MD5 41505a3f08e6fb793f90dcc6cfef0b46
BLAKE2b-256 f532bca367ca20235936eb7e2972e0f07ff643332960f76c98773ad595991ae8

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page