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.
- 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
changeTrackingCreateDeploymentmutation, includingdeploymentType,commit,changelog,deepLink, andgroupId. - 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.
This extension is not yet packed. To install it locally:
- Clone or download this repository to a local folder (e.g.,
C:\Users\YourUser\dev\nr-marker-ext). - Open Google Chrome and navigate to
chrome://extensions. - Ensure Developer mode is toggled on in the top-right corner.
- Click the Load unpacked button.
- Select the folder where you saved the extension (e.g.,
nr-marker-ext). - The "New Relic Change Marker" extension will appear in your list.
Before the extension can work, you must save your New Relic API key and email.
- Click the new extension icon in your Chrome toolbar (it may be in the "puzzle piece" menu).
- The "New Relic Marker Settings" popup will appear.
- Paste your New Relic User API Key (it must start with
NRAK-) into the first field. - Enter the email address you want to associate with your changes.
- Click Save Settings. You will see a "Settings saved successfully!" message.
You have two ways to send a change marker:
- Navigate to any entity page in New Relic (e.g., an APM service, a Synthetics monitor, a Browser app).
- Click the Send Change button that appears in the page header.
- A modal will appear. The "Entity GUID" field will be pre-filled.
- Fill in the Version (required) and any other optional fields.
- Click Submit Marker.
- You will receive a "Success!" or "Error:" message at the bottom of the modal.
- Click the extension icon in your Chrome toolbar.
- In the "Send Change" section, manually paste the Entity GUID you want to target.
- Fill in the Version (required) and any other optional fields.
- Click Send Change.
- You will receive a "Success!" or "Error:" message at the bottom of the popup.
- Security: The extension is built with a manifest V3 service worker (
background.js). Thecontent.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.logstatements have been removed from the background script to prevent your API key from ever being accidentally logged. - Validation: The
deepLinkfield includes basic URL validation to prevent malformed API requests.