Skip to content

r-ramsay/newrelic-marker-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

New Relic Change Marker Extension

This is an unpacked Chrome extension designed to streamline the process of creating deployment and change markers in New Relic. It adds a Send Change button directly to entity pages and provides a popup for manually sending markers to any entity.

Features

  • Context-Aware Button: Injects a "Send Change" button directly into the New Relic UI (next to the "Tags" and "Teams" buttons) on entity pages.
  • Auto-Filled GUID: The on-page modal automatically parses the Entity GUID from the URL, but still allows you to edit it.
  • Manual Send Popup: The extension's toolbar icon opens a popup that allows you to send a change marker to any entity by manually pasting its GUID.
  • Full API Support: The forms support all optional fields from the NerdGraph changeTrackingCreateDeployment mutation, including deploymentType, commit, changelog, deepLink, and groupId.
  • Secure Storage: Your New Relic API Key and email are stored securely using chrome.storage.local. They are never synced to your Google account and never exposed to the New Relic page itself.

Installation (for Development)

This extension is not yet packed. To install it locally:

  1. Clone or download this repository to a local folder (e.g., C:\Users\YourUser\dev\nr-marker-ext).
  2. Open Google Chrome and navigate to chrome://extensions.
  3. Ensure Developer mode is toggled on in the top-right corner.
  4. Click the Load unpacked button.
  5. Select the folder where you saved the extension (e.g., nr-marker-ext).
  6. The "New Relic Change Marker" extension will appear in your list.

Configuration (Required First Step)

Before the extension can work, you must save your New Relic API key and email.

  1. Click the new extension icon in your Chrome toolbar (it may be in the "puzzle piece" menu).
  2. The "New Relic Marker Settings" popup will appear.
  3. Paste your New Relic User API Key (it must start with NRAK-) into the first field.
  4. Enter the email address you want to associate with your changes.
  5. Click Save Settings. You will see a "Settings saved successfully!" message.

How to Use

You have two ways to send a change marker:

1. The On-Page Button (Recommended)

  1. Navigate to any entity page in New Relic (e.g., an APM service, a Synthetics monitor, a Browser app).
  2. Click the Send Change button that appears in the page header.
  3. A modal will appear. The "Entity GUID" field will be pre-filled.
  4. Fill in the Version (required) and any other optional fields.
  5. Click Submit Marker.
  6. You will receive a "Success!" or "Error:" message at the bottom of the modal.

2. The Manual Send Popup

  1. Click the extension icon in your Chrome toolbar.
  2. In the "Send Change" section, manually paste the Entity GUID you want to target.
  3. Fill in the Version (required) and any other optional fields.
  4. Click Send Change.
  5. You will receive a "Success!" or "Error:" message at the bottom of the popup.

Technical & Security Notes

  • Security: The extension is built with a manifest V3 service worker (background.js). The content.js (which runs on the New Relic page) never has access to your API key. It can only send a message to the background script, which securely retrieves the key from storage, makes the API call, and returns only the success/error message.
  • Logs: All debugging console.log statements have been removed from the background script to prevent your API key from ever being accidentally logged.
  • Validation: The deepLink field includes basic URL validation to prevent malformed API requests.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors