diff --git a/src/data/related-pages.json b/src/data/related-pages.json index 8bfd7db8c..26f73a906 100644 --- a/src/data/related-pages.json +++ b/src/data/related-pages.json @@ -1,375 +1,5743 @@ { - "/explore-docs/intro-to-sdk": { - "q": "Intro to New Relic One API components", - "search_fields": { - "page": [ - "tags^10", - "body^5", - "title^1.5", - "*" - ] - }, - "engine_key": "Ad9HfGjDw4GRkcmJjUut", - "per_page": 5, - "filters": { - "page": { - "url": [ - "!https://developer.newrelic.com/explore-docs/intro-to-sdk/", - "!https://developer.newrelic.com/explore-docs/intro-to-sdk" - ] - } + "/explore-docs/newrelic-cli": [ + { + "body": "New Relic One CLI reference To build a New Relic One app, you must install the New Relic One CLI. The CLI helps you build, publish, and manage your New Relic app. We provide a variety of tools for building New Relic One apps, including the New Relic One CLI (command line interface). This page will explain how to use CLI commands to: Generate Nerdpack/Nerdlet templates Locally serve Nerdpacks (when developing) Publish and deploy Subscribe to Nerdpacks Add screenshots and metadata to the New Relic One Catalog Installing the New Relic One CLI From within New Relic, go to the Build your own application launcher and follow the instructions. This launcher will automatically generate an API key for the account you select, and give you the pre-populated commands to create a profile, generate your first \"Hello World\" app, and serve it locally. New Relic One CLI Commands This table provides descriptions for the New Relic One CLI commands. For more context, including usage and option details, click any individual command or the command category. For details on user permissions, see Authentication and permissions. For more on how to serve and publish your application, see our guide on Deploying your New Relic One app. Get started nr1 help Shows all nr1 commands or details about each command. nr1 update Updates to the latest version of the CLI. nr1 create Creates a new component from a template (Nerdpack, Nerdlet, launcher, or catalog). nr1 profiles Manages the profiles you use to run CLI commands. nr1 autocomplete Displays autocomplete installation instructions. nr1 nrql Fetches data from New Relic using NRQL (New Relic query language). Configure your CLI preferences nr1 config:set Sets a specific configuration value. nr1 config:get Shows a specific configuration. nr1 config:list Lists your configuration choices. nr1 config:delete Removes the value of a specific configuration. Set up your Nerdpacks nr1 nerdpack:clone Clones an open source Nerdpack from our GitHub repository. nr1 nerdpack:serve Serves your Nerdpack for testing and development purposes. nr1 nerdpack:uuid Shows or regenerates the UUID of a Nerdpack. nr1 nerdpack:publish Publishes your Nerdpack to New Relic. nr1 nerdpack:deploy Deploys a Nerdpack version to a specific channel. nr1 nerdpack:undeploy Undeploys a Nerdpack version from a specific channel. Manage your Nerdpack subscriptions nr1 subscription:set Subscribes your account to a Nerdpack and channel. nr1 subscription:list Lists all the Nerdpacks your account is subscribed to. nr1 subscription:unset Unsubscribes your account from a Nerdpack. Install and manage plugins nr1 plugins:install Installs a plugin into the CLI. nr1 plugins:link Links a plugin into the CLI for development. nr1 plugins:update Updates your installed plugins. nr1 plugins:uninstall Removes a plugin from the CLI. Manage catalog information nr1 catalog:info Shows the Nerdpack info stored in the catalog. nr1 catalog:submit Gathers and submits the catalog info on the current folder.", + "type": "developer", + "document_type": "page", + "info": "An overview of the CLI to help you build, deploy, and manage New Relic apps.", + "sections": [ + "New Relic One CLI reference", + "Installing the New Relic One CLI", + "New Relic One CLI Commands", + "Get started", + "Configure your CLI preferences", + "Set up your Nerdpacks", + "Manage your Nerdpack subscriptions", + "Install and manage plugins", + "Manage catalog information" + ], + "title": "New Relic One CLI reference", + "popularity": 1, + "tags": [ + "New Relic One app", + "nerdpack commands" + ], + "external_id": "858339a44ead21c83257778ce60b4c352cd30d3b", + "image": "https://developer.newrelic.com/static/2c6d337608b38a3312b4fc740afe6167/7272b/developercenter.png", + "url": "https://developer.newrelic.com/explore-docs/nr1-cli/", + "published_at": "2020-08-13T01:50:34Z", + "updated_at": "2020-08-04T01:41:46Z", + "_index": "520d1d5d14cc8a32e600034b", + "_type": "520d1d5d14cc8a32e600034c", + "_score": 0.41209942, + "_version": null, + "_explanation": null, + "sort": null, + "highlight": { + "title": "New Relic One CLI reference", + "sections": "New Relic One CLI reference", + "info": "An overview of the CLI to help you build, deploy, and manage New Relic apps.", + "tags": "New Relic One app", + "body": "New Relic One CLI reference To build a New Relic One app, you must install the New Relic One CLI. The CLI helps you build, publish, and manage your New Relic app. We provide a variety of tools for building New Relic One apps, including the New Relic One CLI (command line interface). This page" + }, + "id": "5efa989e28ccbc535a307dd0" + }, + { + "body": "Products Pricing Solutions Help Center About Search icon Search the blog Monitor New Relic from your phone or tablet Learn more or download using the links below. New Relic app for iOS or Android    New Relic Insights app for iOS or Android    Log In Sign Up Search icon Products New Relic One Platform Overview Telemetry Data Platform Full-Stack Observability Applied Intelligence Solutions By Topic DevOps Cloud Adoption Cloud Native Digital Customer Experience By Industry E-commerce and Retail Media By Technology Amazon Web Services Pivotal Cloud Foundry Microsoft Azure Google Cloud Platform Kubernetes Help Center Learn Docs Build on New Relic Explore Open Source Projects Training Get Help Community Forum Global Technical Support Expert Services About Our CustomersOver 15,000 customers love New Relic, from Fortune 500 enterprises to small businesses around the globe. Our BlogThe latest news, tips, and insights from the world of New Relic and digital intelligence. Our Company About New Relic Leadership Meetups and Events Resources Investor Relations Newsroom Partner Program Contact New Relic New Relic Blog Blog Home News and Products Software Engineering Technology Industry Culture 8 times in a row, New Relic named a Gartner APM Magic Quadrant leader. Take a closer look Automate Your New Relic Tasks With the New Relic CLI From IBM By Adilson Somensari • Nov. 16th, 2018 • Software Engineering automation, IBM Cloud, New Relic Alerts, New Relic Synthetics, open source Tweet Share Share Editor’s note: The New Relic CLI tool was developed by IBM. It is open sourced under the Apache License 2.0. Helping our customers go faster with confidence is a key tenet of the New Relic ethos. We provide visibility into vital data, statistics, and key performance indicators (KPIs) to help teams increase their deployment speed and cadence. But modern software teams also see automation and continuous integration and continuous delivery (CI/CD) processes as must-haves to support their Agile practices and DevOps teams. Teams want to apply the same automation concepts and tools to operate New Relic as they do other parts of their pipeline. However, writing all the standard boilerplate code to work with New Relic’s REST API (read configuration files, connect to endpoints, send payloads, receive responses, and parse them) can be a toilsome burden and a needless distraction. Fortunately, the IBM Cloud Monitoring team, a New Relic partner, noticed that multiple internal teams were spending too much time managing boilerplate code to automate their New Relic workflows, so they created a solution to solve that problem—a New Relic CLI (command line interface) tool. Manage New Relic tasks and resources from the CLI New Relic CLI, open sourced and available on GitHub from IBM, is a command line tool you can use to manage New Relic resources, such as New Relic Synthetics monitors, New Relic Alerts policies and conditions, and user accounts. You can also use the CLI to backup your New Relic configuration data and restore it as needed. Currently, you can use the New Relic CLI to manage these resources: New Relic resource Management action New Relic Synthetics Create, edit, and delete Synthetics monitors Back up and restore Synthetics monitors New Relic Alerts Create, edit, and delete alert conditions Create, edit, and delete alert policies Create, edit, and delete notification channels Back up and restore alert policies and conditions New Relic Insights dashboards Get dashboards Back up and restore dashboards Users List users Example use case 1: Create a Synthetics monitor This example shows you how to use the New Relic CLI to create a Synthetics monitor: Set the New Relic admin API key (NEW_RELIC_APIKEY) for your environment. This will vary depending on your operating system, but in Linux, you’d use the export command:Export NEW_RELIC_APIKEY=xxxx-xxxxxxx-xxxxx-xxxxxx Tip: Refer to the New Relic docs for instructions on locating your admin API key. Create a basic definition of the monitor in JSON format (for example test.json). { \"name\": \"Test monitorURI\", \"type\": \"SIMPLE\" \"frequency\": 5, \"uri\": \"monitorURI\", \"locations\": [ \"AWS_AP_SOUTH_1\", \"AWS_EU_WEST_3\", \"AWS_US_WEST_1\" ], \"status\": \"ENABLED\", \"slaThreshold\": 3, \"options\": { } Tip: See the documentation for a full list of public minion locations. Run a text substitution to replace the monitorURI with the actual URL you want to test, and generate a new file (in this example, result.json). .awk '{gsub(/monitorURI/,\"\")}1' test.json > result.json To create the new monitor, run ./nr-cli create monitor -f result.json. From this point, you can start working with the new monitor as needed. Example use case 2: Daily backup of a Synthetics monitor You can also use the NewRelic CLI to create daily backups of your Synthetics monitors. Using a simple shell script and a cron job, you can quickly set up a process to back up all your monitors in a safe repository. These four steps describe how to use the New Relic CLI to set up a daily backup job that will back up all monitors into a separate folder every day: Download the shell scripts file for backup monitors (backup_monitors.sh) from the New Relic CLI repo. Add a proper path to the script, and set it as an executable: $ chmod a+x backup_monitors.sh. Create a new cron job in your OS to schedule the shell script you just created. Use crontab -e to add new schedule job. 0 0 */1 * * \" //backup-monitors.sh NOTE: Replace xxx-xxxx-xxx with your own NewRelic admin API key. (Optional) If you don’t want to set the NR API key in your cron job’s configuration, you can set the key inbackup_monitors.sh. Comment out the Export NEW_RELIC_APIKEY=\"xxx-xxxx-xxx\" entry, replace the value with your API key. The cron job should now run and back up on your monitors based on the schedule you created. A great addition for your New Relic toolbox The New Relic CLI also lets you easily save New Relic settings to source-control tools like Github or BitBucket; and share central configuration and settings across multiple teams and projects. For example, if your target machine can’t connect to New Relic directly, you can configure the CLI tool to use a proxy. You can also configure retries to cope with timeouts. The CLI also includes return codes, which can be very useful for CI/CD automation. For more details on developing for the New Relic CLI, see the repo on Github. automation, IBM Cloud, New Relic Alerts, New Relic Synthetics, open source Adilson Somensari is a senior solutions architect on the New Relic Expert Services team. An experienced APM professional, with multiple certifications in the APM industry, he has a passion for helping customers succeed with modern monitoring architectures. Adilson started his career as a Java developer, delivering distributed applications to a diverse set of industries (Auto, Banking, Telecom, Transportation) in multiple countries (United States, Canada, Portugal, Brazil), and pivoted to APM after learning that there is more to life than reading logs and stack traces. View posts by Adilson Somensari. The views expressed on this blog are those of the author and do not necessarily reflect the views of New Relic. Any solutions offered by the author are environment-specific and not part of the commercial solutions or support offered by New Relic. Please join us exclusively at the Explorer’s Hub (discuss.newrelic.com) for questions and support related to this blog post. This blog may contain links to content on third-party sites. By providing such links, New Relic does not adopt, guarantee, approve or endorse the information, views or products available on such sites. Interested in writing for New Relic Blog? Send us a pitch! Related Posts FutureStack18: A Look Inside the New Relic Developer Program By Mark Weitzel • Sep. 11th, 2018 • New Relic News and Products FutureStack, New Relic developer program 10 Essential European Events for Software Developers By B.J. Hinshaw • Aug. 15th, 2017 • Technology Industry developers, Europe, events, hackathon, software development, Velocity Conference 10 Habits of Highly Successful Software Developers By Kevin Casey • Apr. 5th, 2017 • Culture careers, coding tips, developers, jobs, programming, software development Company Careers and Culture Partner Program Investor Relations NewRelic.org Suppliers Portal Connect Contact Us Request Demo Events international newrelic.co.jp (Japanese) newrelic.fr (French) newrelic.de (German) Terms of Service DMCA Policy Privacy Policy Cookie Policy UK Slavery Act of 2015 ©2008-20 New Relic, Inc. All rights reserved", + "type": "blog", + "info": "", + "sections": [ + "Automate Your New Relic Tasks With the New Relic CLI From IBM", + "Manage New Relic tasks and resources from the CLI", + "Example use case 1: Create a Synthetics monitor", + "Example use case 2: Daily backup of a Synthetics monitor", + "A great addition for your New Relic toolbox", + "Related Posts", + "FutureStack18: A Look Inside the New Relic Developer Program", + "10 Essential European Events for Software Developers", + "10 Habits of Highly Successful Software Developers", + "Company", + "Connect", + "international" + ], + "title": "Automate New Relic Tasks With the New Relic CLI From IBM", + "popularity": 1, + "external_id": "340a65fe9063ecf6c9b38dde1ff0603fded3c0f1", + "image": "https://newrelic-wpengine.netdna-ssl.com/wp-content/uploads/mdw-headshot-small.jpg", + "url": "https://blog.newrelic.com/engineering/new-relic-cli-ibm/", + "published_at": "2020-08-10T18:04:49Z", + "updated_at": "2020-07-30T08:22:04Z", + "_index": "520d1d5d14cc8a32e600034b", + "_type": "520d1d5d14cc8a32e600034c", + "_score": 0.3968317, + "_version": null, + "_explanation": null, + "sort": null, + "highlight": { + "title": "Automate New Relic Tasks With the New Relic CLI From IBM", + "sections": "Automate Your New Relic Tasks With the New Relic CLI From IBM", + "body": " 8 times in a row, New Relic named a Gartner APM Magic Quadrant leader. Take a closer look Automate Your New Relic Tasks With the New Relic CLI From IBM By Adilson Somensari • Nov. 16th, 2018 • Software Engineering automation, IBM Cloud, New Relic Alerts, New Relic Synthetics, open source Tweet Share" + }, + "id": "5bf0c4fae621f464613832ad" + }, + { + "body": "New Relic One CLI common commands Here is a list of common commands to get you started with the New Relic One CLI. You can click any command to see its usage options and additional details about the command. Command Description nr1 help Shows all nr1 commands or details about each command. nr1 update Updates to the latest version of the CLI. nr1 create Creates a new component from a template (Nerdpack, Nerdlet, launcher, or catalog). nr1 profiles Manages the profiles you use to run CLI commands. nr1 autocomplete Displays autocomplete installation instructions. nr1 nrql Fetches data from New Relic using NRQL (New Relic query language). See our other New Relic One CLI docs for commands specific to Nerdpack set-up, Nerdpack subscriptions, CLI configuration, plugins, or catalogs. Command details nr1 help See commands and get details Shows all nr1 commands by default. To get details about a specific command, run nr1 help COMMAND_NAME. Usage $ nr1 help Arguments COMMAND_NAME The name of a particular command. Examples $ nr1 help $ nr1 help nerdpack $ nr1 help nerdpack:deploy nr1 update Update your CLI Updates to latest version of the CLI. You can specify which channel to update if you'd like. Usage $ nr1 update Arguments CHANNEL The name of a particular channel. Examples $ nr1 update $ nr1 update somechannel nr1 create Create a new component Creates a new component from our template (either a Nerdpack, Nerdlet, launcher, or catalog). The CLI will walk you through this process. To learn more about Nerdpacks and their file structure, see Nerdpack file structure. For more on how to set up your Nerdpacks, see our Nerdpack CLI commands. Usage $ nr1 create Options -f, --force If present, overrides existing files without asking. -n, --name=NAME Names the component. -t, --type=TYPE Specifies the component type. --path=PATH The route to the component. --profile=PROFILE The authentication profile you want to use. --verbose Adds extra information to the output. nr1 profiles Manage your profiles keychain Displays a list of commands you can use to manage your profiles. Run nr1 help profiles:COMMAND for more on their specific usages. You can have more than one profile, which is helpful for executing commands on multiple New Relic accounts. To learn more about setting up profiles, see our Github workshop. Usage $ nr1 profiles:COMMAND Commands profiles:add Adds a new profile to your profiles keychain. profiles:default Chooses which profile should be default. profiles:list Lists the profiles on your keychain. profiles:remove Removes a profile from your keychain. nr1 autocomplete See autocomplete installation instructions Displays the autocomplete installation instructions. By default, the command displays the autocomplete instructions for zsh. If you want instructions for bash, run nr1 autocomplete bash. Usage $ nr1 autocomplete Arguments SHELL The shell type you want instructions for. Options -r, --refresh-cache Refreshes cache (ignores displaying instructions). Examples $ nr1 autocomplete $ nr1 autocomplete zsh $ nr1 autocomplete bash $ nr1 autocomplete --refresh-cache nr1 nrql Query using NRQL Fetches data from New Relic databases using a NRQL (New Relic query language) query. To learn more about NRQL and how to use it, see our NRQL docs. Usage $ nr1 nrql OPTION ... Options -a, --account=ACCOUNT The user account ID. required -q, --query=QUERY The NRQL query to run. required -u, --ugly Displays the content without tabs or spaces. --profile=PROFILE The authentication profile you want to use. --verbose Adds extra information to the output.", + "type": "developer", + "document_type": "page", + "info": "An overview of common commands you can use with the New Relic One CLI.", + "sections": [ + "New Relic One CLI common commands", + "Command details", + "nr1 help", + "See commands and get details", + "Usage", + "Arguments", + "Examples", + "nr1 update", + "Update your CLI", + "nr1 create", + "Create a new component", + "Options", + "nr1 profiles", + "Manage your profiles keychain", + "Commands", + "nr1 autocomplete", + "See autocomplete installation instructions", + "nr1 nrql", + "Query using NRQL" + ], + "title": "New Relic One CLI common commands", + "popularity": 1, + "external_id": "503e515e1095418f8d19329517344ab209d143a4", + "image": "", + "url": "https://developer.newrelic.com/explore-docs/nr1-common/", + "published_at": "2020-08-13T01:49:30Z", + "updated_at": "2020-08-04T01:44:10Z", + "_index": "520d1d5d14cc8a32e600034b", + "_type": "520d1d5d14cc8a32e600034c", + "_score": 0.3112933, + "_version": null, + "_explanation": null, + "sort": null, + "highlight": { + "title": "New Relic One CLI common commands", + "sections": "New Relic One CLI common commands", + "info": "An overview of common commands you can use with the New Relic One CLI.", + "body": "New Relic One CLI common commands Here is a list of common commands to get you started with the New Relic One CLI. You can click any command to see its usage options and additional details about the command. Command Description nr1 help Shows all nr1 commands or details about each command. nr1" + }, + "id": "5f28bd6ae7b9d267996ade94" + }, + { + "body": "Products & Pricing Solutions Help Center About LEARN Docs Build on New Relic Explore open source projects Training GET HELP Community forum Global technical support Expert services The Platform New Relic One Capabilities Programmability Infinite Tracing Integrations Security Alerts New Relic for Android and iOS Insights Manage Complex Systems Logs Metrics and Traces Applied Intelligence Serverless Improve Client-side Experiences Browser Mobile Synthetics Build and Run Better Software APM Infrastructure BY TOPIC DevOps Cloud Adoption Native Digital Customer Experience BY INDUSTRY E-Commerce and Retail Media Public Sector BY TECHNOLOGY Amazon Web Services Pivotal Cloud Foundry Microsoft Azure Google Cloud Platform Kubernetes Our Customers Over 17,000 customers love New Relic, from Fortune 500 enterprises to small businesses around the globe. Our Blog The latest news, tips, and insights from the world of New Relic and digital intelligence. Our Company About Us Leadership Meetups and Events Resources Investor Relations Newsroom Partner Program Contact Us New Relic CLI - 0.12.0 Build on New Relic Developer Toolkit developertoolkit ctrombley July 25, 2020, 12:49am #1 New Relic CLI 0.12.0 has been released, with support for posting JUnit test results to NRDB. v0.12.0 - 2020-07-24 Features reporting: add junit reporting Docker images docker pull newrelic/cli:v0.12.0 docker pull newrelic/cli:v0.12 docker pull newrelic/cli:latest Home Categories FAQ/Guidelines Terms of Service Privacy Policy Powered by Discourse, best viewed with JavaScript enabled", + "type": "forum", + "info": "", + "sections": [ + "New Relic CLI - 0.12.0", + "v0.12.0 - 2020-07-24", + "Features", + "Docker images" + ], + "title": "New Relic CLI - 0.12.0 - Developer Toolkit - New Relic Explorers Hub", + "popularity": 1, + "external_id": "517e91b673bc13d1c05c230f47bc66f397b7e1b5", + "image": "https://nr-production-discourse.s3.amazonaws.com/original/2X/f/f6107441676f77294613ec559377aa90da19dd52.png", + "url": "https://discuss.newrelic.com/t/new-relic-cli-0-12-0/109550", + "published_at": "2020-08-11T21:42:26Z", + "updated_at": "2020-07-26T15:15:40Z", + "_index": "520d1d5d14cc8a32e600034b", + "_type": "520d1d5d14cc8a32e600034c", + "_score": 0.30600315, + "_version": null, + "_explanation": null, + "sort": null, + "highlight": { + "title": "New Relic CLI - 0.12.0 - Developer Toolkit - New Relic Explorers Hub", + "sections": "New Relic CLI - 0.12.0", + "body": " from the world of New Relic and digital intelligence. Our Company About Us Leadership Meetups and Events Resources Investor Relations Newsroom Partner Program Contact Us New Relic CLI - 0.12.0 Build on New Relic Developer Toolkit developertoolkit ctrombley July 25, 2020, 12:49am #1 New Relic CLI" + }, + "id": "5f1d9e1c196a67677eb6aea8" + }, + { + "body": "Products & Pricing Solutions Help Center About LEARN Docs Build on New Relic Explore open source projects Training GET HELP Community forum Global technical support Expert services The Platform New Relic One Capabilities Programmability Infinite Tracing Integrations Security Alerts New Relic for Android and iOS Insights Manage Complex Systems Logs Metrics and Traces Applied Intelligence Serverless Improve Client-side Experiences Browser Mobile Synthetics Build and Run Better Software APM Infrastructure BY TOPIC DevOps Cloud Adoption Native Digital Customer Experience BY INDUSTRY E-Commerce and Retail Media Public Sector BY TECHNOLOGY Amazon Web Services Pivotal Cloud Foundry Microsoft Azure Google Cloud Platform Kubernetes Our Customers Over 17,000 customers love New Relic, from Fortune 500 enterprises to small businesses around the globe. Our Blog The latest news, tips, and insights from the world of New Relic and digital intelligence. Our Company About Us Leadership Meetups and Events Resources Investor Relations Newsroom Partner Program Contact Us New Relic CLI - 0.11.0 Build on New Relic Developer Toolkit developertoolkit ctrombley July 25, 2020, 12:48am #1 New Relic CLI 0.11.0 has been released, with support for Infinite Tracing and posting custom events to NRDB. v0.11.0 - 2020-07-24 Features release edge command add a command for posting custom events Docker images docker pull newrelic/cli:v0.11.0 docker pull newrelic/cli:v0.11 docker pull newrelic/cli:latest Home Categories FAQ/Guidelines Terms of Service Privacy Policy Powered by Discourse, best viewed with JavaScript enabled", + "type": "forum", + "info": "", + "sections": [ + "New Relic CLI - 0.11.0", + "v0.11.0 - 2020-07-24", + "Features", + "Docker images" + ], + "title": "New Relic CLI - 0.11.0 - Developer Toolkit - New Relic Explorers Hub", + "popularity": 1, + "external_id": "6cda5cdb6a4af01c9514e6b143baeefb93739c4f", + "image": "https://nr-production-discourse.s3.amazonaws.com/original/2X/f/f6107441676f77294613ec559377aa90da19dd52.png", + "url": "https://discuss.newrelic.com/t/new-relic-cli-0-11-0/109549", + "published_at": "2020-08-11T21:42:26Z", + "updated_at": "2020-07-26T15:14:44Z", + "_index": "520d1d5d14cc8a32e600034b", + "_type": "520d1d5d14cc8a32e600034c", + "_score": 0.30600002, + "_version": null, + "_explanation": null, + "sort": null, + "highlight": { + "title": "New Relic CLI - 0.11.0 - Developer Toolkit - New Relic Explorers Hub", + "sections": "New Relic CLI - 0.11.0", + "body": " from the world of New Relic and digital intelligence. Our Company About Us Leadership Meetups and Events Resources Investor Relations Newsroom Partner Program Contact Us New Relic CLI - 0.11.0 Build on New Relic Developer Toolkit developertoolkit ctrombley July 25, 2020, 12:48am #1 New Relic CLI" + }, + "id": "5f1d9de528ccbc6aa66cd3e1" } - }, - "/explore-docs/nr1-subscription": [ + ], + "/collect-data/query-data-nrql": [ + { + "body": "Products & Pricing Solutions Help Center About LEARN Docs Build on New Relic Explore open source projects Training GET HELP Community forum Global technical support Expert services The Platform New Relic One Capabilities Programmability Infinite Tracing Integrations Security Alerts New Relic for Android and iOS Insights Manage Complex Systems Logs Metrics and Traces Applied Intelligence Serverless Improve Client-side Experiences Browser Mobile Synthetics Build and Run Better Software APM Infrastructure BY TOPIC DevOps Cloud Adoption Native Digital Customer Experience BY INDUSTRY E-Commerce and Retail Media Public Sector BY TECHNOLOGY Amazon Web Services Pivotal Cloud Foundry Microsoft Azure Google Cloud Platform Kubernetes Our Customers Over 17,000 customers love New Relic, from Fortune 500 enterprises to small businesses around the globe. Our Blog The latest news, tips, and insights from the world of New Relic and digital intelligence. Our Company About Us Leadership Meetups and Events Resources Investor Relations Newsroom Partner Program Contact Us Unable to query prod data with NRQL queries Support: Telemetry Data Platform (TDP) Dashboards insights api SNeti February 25, 2020, 10:20am #1 Hi we are unable to query prod data using nrql. X-Query-Key is generated as per the process: insights.newrelic.com > Manage data > API keys. detailed error: {u’error’: u’Invalid query key.’} abloomer January 18, 2020, 5:02pm #2 Hello @SNeti, have you followed the steps outlined here: https://docs.newrelic.com/docs/insights/insights-api/get-data/query-insights-event-data-api#register I would double check the key you are using is a query API key. If you are still having issues, could you please provide us with an example of how you are calling the Insights query API? SNeti February 20, 2020, 1:45pm #3 @abloomer Yes we are still having issue , we have followed the process as provided in the document , do you want me to send the query key , please provide your email id so that i can send it RyanVeitch February 20, 2020, 2:09pm #4 @SNeti - You can send Anthony (or anyone in the community) a direct message by clicking on their name, a pop up modal will show a Message button: image.png1782×460 56.7 KB SNeti February 20, 2020, 3:44pm #5 @abloomer {‘X-Query-Key’: u’redacted by admin’, ‘Content-Type’: ‘application/json’} RyanVeitch February 24, 2020, 10:16am #6 Hey @SNeti - I tried out that query key with a simple: SELECT count(*) FROM Transaction This is working fine for me. Could you retry & confirm the full API call you are making in a DM to me (including the query key) Here’s mine: curl -H \"Accept: application/json\" -H \"X-Query-Key: your_query_key\" \"https://insights-api.newrelic.com/v1/accounts/2249219/query?nrql=SELECT%20count(*)%20FROM%20Transaction\" SNeti February 24, 2020, 11:05am #7 @RyanVeitch In the development machine from my local i am able to query but from the deployed PCF environment(s) i am getting invalid query key error. https://insights-api.newrelic.com/v1/accounts/2249219/query?nrql=SELECT%20count(*)%20FROM%20%20SystemSample%20WHERE%20apmApplicationIds%20%3D’|536575367|’ The above works(query prod data) from my local but doesn’t work in any of the deployed environments philweber February 24, 2020, 11:09am #8 Hi, @SNeti: I don’t think Infrastructure supports PCF. PCF abstracts the underlying host, so the Infrastructure agent cannot access it. SNeti February 24, 2020, 11:21am #9 @philweber what should be solution for this to access from deployed PCF environments philweber February 24, 2020, 11:22am #10 I don’t think there is a solution. I don’t think Infrastructure is supported on PCF. 1 Like SNeti February 24, 2020, 11:23am #11 @philweber ok thank you 1 Like RyanVeitch February 27, 2020, 9:37am #12 Do let us know if there is anything else we can help with SNeti March 9, 2020, 8:07am #13 @RyanVeitch What could be the reason for below error requests.exceptions.ProxyError: HTTPSConnectionPool(host=‘insights-api.newrelic.com’, port=443): Max retries exceeded with url: /v1/accounts/1367065/query?nrql=SELECT%20count(*)%20FROM%20%20Transaction%20%20WHERE%20%20%20appId%3D536575367 (Caused by ProxyError(‘Cannot connect to proxy.’, OSError(‘Tunnel connection failed: 502 Parent proxy unreacheable’))) RyanVeitch March 9, 2020, 1:01pm #14 @SNeti - I haven’t seen this error before - so I’m not 100% sure on the cause. But in reading the error message it sounds like there is something going wrong in your proxy connections. Can you take a look into the network you are connecting through to make sure it can get a clear path to insights-api.newrelic.com ? Home Categories FAQ/Guidelines Terms of Service Privacy Policy Powered by Discourse, best viewed with JavaScript enabled", + "type": "forum", + "info": "", + "sections": [ + "Unable to query prod data with NRQL queries" + ], + "title": "Unable to query prod data with NRQL queries - Dashboards - New Relic Explorers Hub", + "popularity": 1, + "external_id": "e051ecd38197af61b4603d36037c5ef991a26d03", + "image": "https://nr-production-discourse.s3.amazonaws.com/original/2X/f/f6107441676f77294613ec559377aa90da19dd52.png", + "url": "https://discuss.newrelic.com/t/unable-to-query-prod-data-with-nrql-queries/92126", + "published_at": "2020-08-11T19:48:19Z", + "updated_at": "2020-07-30T06:07:16Z", + "_index": "520d1d5d14cc8a32e600034b", + "_type": "520d1d5d14cc8a32e600034c", + "_score": 0.27842808, + "_version": null, + "_explanation": null, + "sort": null, + "highlight": { + "title": "Unable to query prod data with NRQL queries - Dashboards - New Relic Explorers Hub", + "sections": "Unable to query prod data with NRQL queries", + "body": " from the world of New Relic and digital intelligence. Our Company About Us Leadership Meetups and Events Resources Investor Relations Newsroom Partner Program Contact Us Unable to query prod data with NRQL queries Support: Telemetry Data Platform (TDP) Dashboards insights api SNeti February 25, 2020" + }, + "id": "5e246b7c28ccbc2549c6a154" + }, + { + "body": "Products & Pricing Solutions Help Center About LEARN Docs Build on New Relic Explore open source projects Training GET HELP Community forum Global technical support Expert services The Platform New Relic One Capabilities Programmability Infinite Tracing Integrations Security Alerts New Relic for Android and iOS Insights Manage Complex Systems Logs Metrics and Traces Applied Intelligence Serverless Improve Client-side Experiences Browser Mobile Synthetics Build and Run Better Software APM Infrastructure BY TOPIC DevOps Cloud Adoption Native Digital Customer Experience BY INDUSTRY E-Commerce and Retail Media Public Sector BY TECHNOLOGY Amazon Web Services Pivotal Cloud Foundry Microsoft Azure Google Cloud Platform Kubernetes Our Customers Over 17,000 customers love New Relic, from Fortune 500 enterprises to small businesses around the globe. Our Blog The latest news, tips, and insights from the world of New Relic and digital intelligence. Our Company About Us Leadership Meetups and Events Resources Investor Relations Newsroom Partner Program Contact Us How to pull JVM, MSSQL, Solar other data by NRQL query Build on New Relic Data Queries perra March 1, 2019, 3:36pm #1 Hi All, I am looking for help here I’m trying to automate a report with the help of new relic and I am looking for the below-mentioned values image.png755×394 32.2 KB as a static number just like below Please help me with the above highlighted JVM, MSSQL, Solr, Web external. values with an NRQL Query. Your help highly appreciated. Much Thanks! NaderM March 1, 2019, 10:13pm #2 @perra I am not sure about a way that you can automate this and that might be a cool feature request to file. (I will let other community members weigh in on this and if there is no feature like this, we will create a poll for this feature.) While this is not a direct workaround, I would highly recommend you using the metric explorer in Insights. You can create a lot of dashboards using the same metrics that create these charts and have static number be shown as a dashboard. Check out the public document below for more details: https://docs.newrelic.com/docs/insights/use-insights-ui/explore-data/metric-explorer-search-chart-metrics-sent-new-relic-agents You can then download the output of these charts as a .csv file or monitor them as a part of a bigger dashboard. I hope this helps. 1 Like perra March 4, 2019, 11:30pm #3 Hi @NaderM I tried the same metrics dashboard but that is not helping my requirement. Let me rephrase my previous request – For example i have 4 applications to monitor them every time (24/7) and need to send reports if necessary to the business heads and higher authorities. Below Steps i follow every time while sending the report or validating the apps I will open the rpm and on the top left drop down i will select the App After the selection, the data will be displayed like below By looking at the dashboards i will fill up my report data manually by looking at the values like i will select only JVM and deselect the Mssql, solar, webexternal, response time and it will be displayed like below What i am looking now Instead of opening rpm and checking the values by selecting and deselecting - I am looking for the same value to be numbered in a static value with the help of NRQL query. If i have a query i can direct run it, in the insights query section and pull the average number like below. If i get the number like above for JVM, MSSQL, SOLR, WEB External. This would be a great help for me to send the report in a single click. Because i will add this query to a dashboard and trigger the value from that dashboard when ever i need the values. Else i would have manually scroll through the graph and see the static number all by my self and have to add it in the report. Please come up with a solution/ idea for my requirement. This is so important and it will reduce maximum time for a individual. Looking forward for a positive solution at the earliest. Thank you Pavan. philweber March 5, 2019, 5:19am #4 Hi, @perra: NRQL can only query event data. The data you wish to summarize is metric data, so you will not be able to use NRQL to query it. You may, however, use the REST API to summarize metric data. The following request retrieves the average response time of an application’s web transactions for the past 30 minutes (the data which corresponds to the Java portion of APM’s web transaction response time chart): curl -X GET 'https://api.newrelic.com/v2/applications/{your-application-i}/metrics/data.json' \\ -H 'X-Api-Key: {your-api-key}' -i \\ -G -d 'names[]=WebTransactionTotalTime&values[]=average_response_time&summarize=true&raw=false'` Response: HTTP/1.1 200 OK cache-control: max-age=0, private, must-revalidate content-type: application/json etag: \"76e0d47458c9a9fa4a270598c02651e6\" { \"metric_data\": { \"from\": \"2019-03-05T04:38:46+00:00\", \"to\": \"2019-03-05T05:08:46+00:00\", \"metrics_not_found\": [], \"metrics_found\": [ \"WebTransactionTotalTime\" ], \"metrics\": [ { \"name\": \"WebTransactionTotalTime\", \"timeslices\": [ { \"from\": \"2019-03-05T04:35:00+00:00\", \"to\": \"2019-03-05T05:05:00+00:00\", \"values\": { \"average_response_time\": 86.3 } } ] } ] } } You may use the Metric Explorer to identify the metric names which correspond to the other portions of the web transaction response time chart you wish to summarize. 2 Likes hross closed July 15, 2020, 9:02pm #5 Home Categories FAQ/Guidelines Terms of Service Privacy Policy Powered by Discourse, best viewed with JavaScript enabled", + "type": "forum", + "info": "", + "sections": [ + "How to pull JVM, MSSQL, Solar other data by NRQL query" + ], + "title": "How to pull JVM, MSSQL, Solar other data by NRQL query - Data Queries - New Relic Explorers Hub", + "popularity": 1, + "external_id": "8e46e7a2f76fca3b93db6944a33eb9158648c78b", + "image": "https://nr-production-discourse.s3.dualstack.us-east-1.amazonaws.com/optimized/3X/c/1/c1f38914bd214053d9f80fc48af41d228f3084e1_2_690x360.png", + "url": "https://discuss.newrelic.com/t/how-to-pull-jvm-mssql-solar-other-data-by-nrql-query/69244", + "published_at": "2020-08-11T12:46:40Z", + "updated_at": "2020-07-30T23:36:00Z", + "_index": "520d1d5d14cc8a32e600034b", + "_type": "520d1d5d14cc8a32e600034c", + "_score": 0.21351488, + "_version": null, + "_explanation": null, + "sort": null, + "highlight": { + "title": "How to pull JVM, MSSQL, Solar other data by NRQL query - Data Queries - New Relic Explorers Hub", + "sections": "How to pull JVM, MSSQL, Solar other data by NRQL query", + "body": " from the world of New Relic and digital intelligence. Our Company About Us Leadership Meetups and Events Resources Investor Relations Newsroom Partner Program Contact Us How to pull JVM, MSSQL, Solar other data by NRQL query Build on New Relic Data Queries perra March 1, 2019, 3:36pm #1 Hi All, I am" + }, + "id": "5c7b1e1d0cc37f10d89573d3" + }, { - "q": "New Relic One CLI subscription commands", - "search_fields": { - "page": [ - "tags^10", - "body^5", - "title^1.5", - "*" - ] - }, - "filters": { - "page": { - "url": [ - "!https://developer.newrelic.com/explore-docs/nr1-subscription/", - "!https://developer.newrelic.com/explore-docs/nr1-subscription" - ], - "document_type": [ - "!views_page_menu", - "!term_page_api_menu", - "!term_page_landing_page" - ] - } - }, - "engine_key": "Ad9HfGjDw4GRkcmJjUut", - "per_page": 5 + "body": "Products & Pricing Solutions Help Center About LEARN Docs Build on New Relic Explore open source projects Training GET HELP Community forum Global technical support Expert services The Platform New Relic One Capabilities Programmability Infinite Tracing Integrations Security Alerts New Relic for Android and iOS Insights Manage Complex Systems Logs Metrics and Traces Applied Intelligence Serverless Improve Client-side Experiences Browser Mobile Synthetics Build and Run Better Software APM Infrastructure BY TOPIC DevOps Cloud Adoption Native Digital Customer Experience BY INDUSTRY E-Commerce and Retail Media Public Sector BY TECHNOLOGY Amazon Web Services Pivotal Cloud Foundry Microsoft Azure Google Cloud Platform Kubernetes Our Customers Over 17,000 customers love New Relic, from Fortune 500 enterprises to small businesses around the globe. Our Blog The latest news, tips, and insights from the world of New Relic and digital intelligence. Our Company About Us Leadership Meetups and Events Resources Investor Relations Newsroom Partner Program Contact Us Error Rate NRQL Query Build on New Relic Data Queries nrql insights abhishek.singh6 July 21, 2020, 4:03pm #1 What is the nrql query for getting error rate of the application? I tried few like SELECT percentage(count(*), WHERE error IS true) AS 'Error rate' FROM Transaction WHERE appName LIKE 'appName%' SINCE 1 month ago but i am not getting the equal value as showing on APM overview page. philweber July 21, 2020, 4:19pm #2 Hi, @abhishek.singh6: Can you post a link to the application whose Overview page does not agree with that query? Only New Relic personnel will be able to access the link. Thank you! 1 Like Home Categories FAQ/Guidelines Terms of Service Privacy Policy Powered by Discourse, best viewed with JavaScript enabled", + "type": "forum", + "info": "", + "sections": [ + "Error Rate NRQL Query" + ], + "title": "Error Rate NRQL Query - Data Queries - New Relic Explorers Hub", + "popularity": 1, + "external_id": "2be30011bb9af6f12062f265708132cd891a1958", + "image": "https://nr-production-discourse.s3.amazonaws.com/original/2X/f/f6107441676f77294613ec559377aa90da19dd52.png", + "url": "https://discuss.newrelic.com/t/error-rate-nrql-query/109128", + "published_at": "2020-08-11T12:02:03Z", + "updated_at": "2020-07-31T14:52:34Z", + "_index": "520d1d5d14cc8a32e600034b", + "_type": "520d1d5d14cc8a32e600034c", + "_score": 0.20932148, + "_version": null, + "_explanation": null, + "sort": null, + "highlight": { + "title": "Error Rate NRQL Query - Data Queries - New Relic Explorers Hub", + "sections": "Error Rate NRQL Query", + "body": " from the world of New Relic and digital intelligence. Our Company About Us Leadership Meetups and Events Resources Investor Relations Newsroom Partner Program Contact Us Error Rate NRQL Query Build on New Relic Data Queries nrql insights abhishek.singh6 July 21, 2020, 4:03pm #1 What is the nrql query" + }, + "id": "5f17ae4be7b9d2b4b0e5084c" + }, + { + "body": "Products & Pricing Solutions Help Center About LEARN Docs Build on New Relic Explore open source projects Training GET HELP Community forum Global technical support Expert services The Platform New Relic One Capabilities Programmability Infinite Tracing Integrations Security Alerts New Relic for Android and iOS Insights Manage Complex Systems Logs Metrics and Traces Applied Intelligence Serverless Improve Client-side Experiences Browser Mobile Synthetics Build and Run Better Software APM Infrastructure BY TOPIC DevOps Cloud Adoption Native Digital Customer Experience BY INDUSTRY E-Commerce and Retail Media Public Sector BY TECHNOLOGY Amazon Web Services Pivotal Cloud Foundry Microsoft Azure Google Cloud Platform Kubernetes Our Customers Over 17,000 customers love New Relic, from Fortune 500 enterprises to small businesses around the globe. Our Blog The latest news, tips, and insights from the world of New Relic and digital intelligence. Our Company About Us Leadership Meetups and Events Resources Investor Relations Newsroom Partner Program Contact Us Using POST for a NRQL query Build on New Relic Data Queries nrql httperrors Brian_Telus November 15, 2018, 4:33pm #1 I was building a really big query. I got 414 http error. Is it possible to do a SELECT via curl -H \"Accept: application/json\" -H \"X-Query-Key: YOUR_KEY_HERE\" \"https://insights-api.newrelic.com/v1/accounts/648105/query?nrql=SELECT%20average%28duration%29%20FROM%20PageView\" to send the nrql as POST instead of GET? stefan_garnham June 10, 2016, 8:59am #2 Hi @Brian_Telus: POST is used to update data, GET to retrieve data when used via REST calls. A 414 error specifies that the request is too long but your request looks fine and I have just run a longer query, more attributes, which has executed with no errors. Brian_Telus June 10, 2016, 1:40pm #3 @stefan_garnham, Oh believe me the request I am making is super big. Thats why I want to use a POST stefan_garnham June 13, 2016, 7:51am #4 If the query you are making is very long, or the data set that you are requesting is very big, then you may be hitting some limits within the API. Have you looked into the documentation to see if you are hitting any defined limits? Otherwise, I suggest raising a support ticket. Brian_Telus June 15, 2016, 12:35pm #5 @stefan_garnham The query is really long because I’m trying to query page URLs that are a pattern; so I have to build long queries rather than a regular expression so you can imagine how big that could get I am hitting 414 limits; my queries are over 8,500 characters long (encoded) stefan_garnham June 15, 2016, 2:31pm #6 Could you not perform multiple queries, one for each pattern, and merge the results? alexis June 15, 2016, 5:06pm #7 Could you maybe give us an example of a couple of patterns? There is an ability to use LIKE in NRQL, but without an example I’m unsure if that would meet your needs. Brian_Telus June 17, 2016, 5:40pm #8 @alexis Hey sorry I’ve already moved onto another approach. But basically I was trying to mimic regular expression it looked kinda like WHERE (pageUrl LIKE '%://domain.com/%' OR pageUrl LIKE '%://www.domain.com/%') AND (pageURL LIKE '%/en/desired_uri/%/other_uri/%' OR pageURL LIKE '%/fr/desired_uri/%/other_uri/%') And so on and so on for other languages & regions 1 Like 6/17/2016 Post of the Week! Insights, Synthetics, Linux and Feature Requests! alexis June 17, 2016, 5:32pm #9 Hey @Brian_Telus - if you’re happy with your new approach, then no worries. I’m thinking maybe there are some ways to get this to work in Insights, perhaps using a series of queries that vary pageUrl or browserTransactionName, but it may be a bit complex. Let us know if you want to explore further or not. Brian_Telus June 17, 2016, 5:57pm #10 @alexis I think I just want to add to the feature request to be able to query by regular expression or to allow queries to be sent via POST. I have a good idea how to get around this issue but I think others would appreciate this sort of feature. jkaron May 3, 2017, 11:49pm #11 Hi all, I wanted to chime in and let you know that we do now support passing longer NRQL to queries via POST. The trick is to use the application/x-www-form-urlencoded content type and pass your url-escaped query as the value of the nrql param. For example. using curl… curl -X POST -H “Accept: application/json” -H “X-Query-Key: YOU_QUERY_API_KEY” -d “nrql=SELECT+count%28*%29+FROM+Transaction” “https://insights-api.newrelic.com/v1/accounts/YOUR_ACCOUNT_ID/query” Hope that helps future visitors. 2 Likes alex.rojo July 9, 2018, 5:02pm #12 Hi, i’ve just tried to use the POST example you provided and I get this error message: {“error”:“NRQL Syntax Error: Error at line 1 position 7, unexpected ‘+’”} 1 Like john.way September 20, 2018, 6:21pm #13 @alex.rojo It looks like Jonathan’s code sample is incorrect. I got the following to work (basically do NOT url encode): curl -X POST -H “Accept: application/json” -H “X-Query-Key: YOU_QUERY_API_KEY” -d “nrql=SELECT count (*) FROM Transaction” “https://insights-api.newrelic.com/v1/accounts/YOUR_ACCOUNT_ID/query” 6MM September 20, 2018, 9:38pm #14 For what it’s worth the API key page in the account will format the CURL command for you using string nrql. hross closed July 15, 2020, 9:20pm #15 Home Categories FAQ/Guidelines Terms of Service Privacy Policy Powered by Discourse, best viewed with JavaScript enabled", + "type": "forum", + "info": "", + "sections": [ + "Using POST for a NRQL query" + ], + "title": "Using POST for a NRQL query - Data Queries - New Relic Explorers Hub", + "popularity": 1, + "external_id": "9754847a270b0b3f58dd247e7c656a810e5104fa", + "image": "https://nr-production-discourse.s3.amazonaws.com/original/2X/f/f6107441676f77294613ec559377aa90da19dd52.png", + "url": "https://discuss.newrelic.com/t/using-post-for-a-nrql-query/38168", + "published_at": "2020-08-11T05:40:02Z", + "updated_at": "2020-07-30T15:13:13Z", + "_index": "520d1d5d14cc8a32e600034b", + "_type": "520d1d5d14cc8a32e600034c", + "_score": 0.19566345, + "_version": null, + "_explanation": null, + "sort": null, + "highlight": { + "title": "Using POST for a NRQL query - Data Queries - New Relic Explorers Hub", + "sections": "Using POST for a NRQL query", + "body": " from the world of New Relic and digital intelligence. Our Company About Us Leadership Meetups and Events Resources Investor Relations Newsroom Partner Program Contact Us Using POST for a NRQL query Build on New Relic Data Queries nrql httperrors Brian_Telus November 15, 2018, 4:33pm #1 I was building" + }, + "id": "57a14af4e621f406dc5a74ad" + }, + { + "body": "Products & Pricing Solutions Help Center About LEARN Docs Build on New Relic Explore open source projects Training GET HELP Community forum Global technical support Expert services The Platform New Relic One Capabilities Programmability Infinite Tracing Integrations Security Alerts New Relic for Android and iOS Insights Manage Complex Systems Logs Metrics and Traces Applied Intelligence Serverless Improve Client-side Experiences Browser Mobile Synthetics Build and Run Better Software APM Infrastructure BY TOPIC DevOps Cloud Adoption Native Digital Customer Experience BY INDUSTRY E-Commerce and Retail Media Public Sector BY TECHNOLOGY Amazon Web Services Pivotal Cloud Foundry Microsoft Azure Google Cloud Platform Kubernetes Our Customers Over 17,000 customers love New Relic, from Fortune 500 enterprises to small businesses around the globe. Our Blog The latest news, tips, and insights from the world of New Relic and digital intelligence. Our Company About Us Leadership Meetups and Events Resources Investor Relations Newsroom Partner Program Contact Us NRQL query | Alerts Build on New Relic Data Queries nrql welcome nrqlalerts kubernetes Madhu_Sharma1 July 23, 2020, 8:19am #1 Hello, How can i get CPU utalization % using K8NodeSample? Could you kindly correct my query below… FROM K8sNodeSample SELECT latest(cpuUsedCores) - (How to get total core)/100 WHERE clusterName=‘mycluster’ FACET nodeName Or if there is any other query that i can use to sent up hight CPU utilization alert for pods? Thankyou! RyanVeitch July 23, 2020, 2:09pm #2 Hey @Madhu_Sharma1 Does the coreCount attribute work for you? then for percentage used you can try: SELECT ((latest(numeric(cpuUsedCores)) / latest(numeric(coreCount))) * 100) AS 'CPU Used %%' FROM K8sNodeSample WHERE cpuUsedCores is NOT NULL AND coreCount IS NOT NULL SINCE 3 HOURS AGO TIMESERIES AUTO Here’s what that looks like on some demo data over 3hrs: image.png2812×1004 195 KB 1 Like Madhu_Sharma1 July 23, 2020, 1:56pm #3 @RyanVeitch You rock!! Thankyou 1 Like RyanVeitch July 23, 2020, 2:08pm #4 No worries! Glad to help Madhu_Sharma1 July 23, 2020, 3:44pm #5 @RyanVeitch If you could also help me verify two other queries that would be great…How do i get memory used % and Disk used % of nodes in cluster: i dont see any parameter for total memory bytes here https://docs.newrelic.com/docs/integrations/kubernetes-integration/understand-use-data/understand-use-data#node-data SELECT (latest(numeric(memoryUsedBytes)) / latest(What will go here) AS ‘Memory Used %%’ FROM K8sNodeSample WHERE clusterName=‘MyclusterName’ FACET nodeName TIMESERIES Also below is the one that i am using for Disk used % . Please correct if the query looks wrong: SELECT (latest(numeric(fsAvailableBytes)) / latest(numeric(fsCapacityBytes)) *100) AS ‘Disk/storage Used %%’ FROM K8sNodeSample WHERE clusterName=‘MyClusterName’ FACET nodeName TIMESERIES Thankyou! RyanVeitch July 24, 2020, 1:18pm #6 Hey @Madhu_Sharma1 I don’t see a attribute that maps to total memory bytes either, but, I think this is workable: SELECT (latest(memoryUsedBytes) / latest(memoryAvailableBytes + memoryUsedBytes)) * 100 AS 'Memory Used %%' FROM K8sNodeSample WHERE clusterName = 'MyClusterName' FACET nodeName TIMESERIES Here we are adding the memoryAvailableBytes to the memoryUsedBytes to synthetically create our own memoryTotalBytes. 1 Like RyanVeitch July 24, 2020, 1:18pm #7 Also - your disk used query looks fine to me 1 Like Madhu_Sharma1 July 24, 2020, 2:44pm #8 @RyanVeitch if i compare Node resource utilization graph from cluster explorer and the graph that i get from above 3 queries that we discussed ( CPU,DIsk and Memory) i get different results. For instance, cluster explorer says node1 disk usage is 20% but my NRQL query shows 80% RyanVeitch July 24, 2020, 2:44pm #9 So these queries are looking at the latest reported value. It’s possible the chart you are looking at is average. You can change that in your queries from latest() to average() to see if that helps bring these into alignment. Madhu_Sharma1 July 24, 2020, 4:12pm #10 @RyanVeitch i think i got the answer for Disk. My query is just looking into sda1 drive. How can i monitor other drives that i have? also, CPU graph looks fine too… but i still don’t know why Disk graph is mismatched. Here is my alert policy link https://alerts.newrelic.com/accounts/1737703/policies/957407 and cluster explorer https://one.newrelic.com/launcher/k8s-cluster-explorer-nerdlet.cluster-explorer-launcher?pane=eyJuZXJkbGV0SWQiOiJrOHMtY2x1c3Rlci1leHBsb3Jlci1uZXJkbGV0Lms4cy1jbHVzdGVyLWV4cGxvcmVyIiwiZW50aXR5SWQiOiJNVGN6Tnpjd00zeEpUa1pTUVh4T1FYd3pOak0wTVRnMk9UUTJNamMyTnpFek9EYzUifQ==&platform[timeRange][duration]=1800000 Alos what is the difference between storage graph and disk used % Screen Shot 2020-07-24 at 11.57.59 AM.png730×1108 42.4 KB Sorry for too many questions… Madhu_Sharma1 July 27, 2020, 2:31pm #11 @RyanVeitch Should i open a new ticket if this is closed? RyanVeitch July 27, 2020, 2:47pm #12 Hi @Madhu_Sharma1 - no here is ok! Sorry, I didn’t see your reply earlier… Can you clarify the exact disk charts you are hoping to see matched to the query we built? As for the difference between Storage Used % and Disk Usage, below are the queries showing each of these: Storage Usage % SELECT average(diskUsedPercent) as 'Storage used %' FROM StorageSample WHERE `entityGuid` = 'anEntityGuid' TIMESERIES auto Disk Usage SELECT latest(diskUsedPercent) as 'Used %' FROM StorageSample FACET device WHERE entityId = 'anEntityId' LIMIT 4 So the differences primarily are that they are looking at different aggregations. Disk Usage is looking at the latest report, and Storage Usage is looking at an average over the timeframe selected. Both of these are looking at the Infrastructure agents default StorageSample event type, not a K8s specific event type, which may also show up some differences between these charts and those in your queries which are looking at the K8sNodeSample event type. Madhu_Sharma1 July 27, 2020, 4:22pm #13 @RyanVeitch its okey thanks for your response. so, for my node a see memory utilization in cluster explorer 21% and for the same node using out query i see 44% . why there is difference? Screen Shot 2020-07-27 at 12.21.35 PM.jpg1514×1146 208 KB RyanVeitch July 28, 2020, 8:40am #14 Hi @Madhu_Sharma1 The queries here are different, so the results set are expected to be different too. The Memory Usage you see in your K8s Cluster Explorer is using the query: SELECT average(memoryUsedBytes/memoryTotalBytes*100) AS 'Memory used %' FROM SystemSample WHERE `entityGuid` = 'myEntityGuid' TIMESERIES auto The query you are running for alerts is looking at latest memory data from the K8s event type, rather than the query above looking at averages of the SystemSample event type, not a K8s specific event. You can absolutely use this query for alerts if your goal is to match the Memory Usage chart in the cluster explorer: SELECT average(memoryUsedBytes/memoryTotalBytes*100) AS 'Memory used %' FROM SystemSample WHERE `entityGuid` = 'myEntityGuid' TIMESERIES auto Madhu_Sharma1 July 29, 2020, 3:30pm #15 @RyanVeitch But we don’t get SystemSample in kubernetes integration. RyanVeitch July 30, 2020, 6:47am #16 No - that’s an infrastructure metric. This is what the Cluster Explorer is using to chart these metrics though. Do you have the Infra agent installed? If not, you may be able to get close with the k8s Events, but not exactly match the charts that are built on Infrastructure agent data. Home Categories FAQ/Guidelines Terms of Service Privacy Policy Powered by Discourse, best viewed with JavaScript enabled", + "type": "forum", + "info": "", + "sections": [ + "NRQL query | Alerts" + ], + "title": "NRQL query | Alerts - Data Queries - New Relic Explorers Hub", + "popularity": 1, + "external_id": "6523b9a735a2b2c2a63e9d64abea88d355c275ed", + "image": "https://nr-production-discourse.s3.dualstack.us-east-1.amazonaws.com/optimized/3X/8/3/838b103298375edaa23114713c7db5b0abe0b552_2_660x500.jpeg", + "url": "https://discuss.newrelic.com/t/nrql-query-alerts/109324", + "published_at": "2020-08-11T17:19:15Z", + "updated_at": "2020-07-30T18:43:30Z", + "_index": "520d1d5d14cc8a32e600034b", + "_type": "520d1d5d14cc8a32e600034c", + "_score": 0.17157394, + "_version": null, + "_explanation": null, + "sort": null, + "highlight": { + "title": "NRQL query | Alerts - Data Queries - New Relic Explorers Hub", + "sections": "NRQL query | Alerts", + "body": " from the world of New Relic and digital intelligence. Our Company About Us Leadership Meetups and Events Resources Investor Relations Newsroom Partner Program Contact Us NRQL query | Alerts Build on New Relic Data Queries nrql welcome nrqlalerts kubernetes Madhu_Sharma1 July 23, 2020, 8:19am #1 Hello" + }, + "id": "5f19b46c196a67ce85b6ae82" } ], - "/automate-workflows/get-started-kubernetes": [ + "/build-apps/add-query-mutate-data-nerdstorage": [ + { + "body": "Build apps You know better than anyone what information is crucial to your business, and how best to visualize it. Sometimes, this means going beyond dashboards to creating your own app. With React and GraphQL, you can create custom views tailored to your business. These guides are designed to help you start building apps, and dive into our library of components. We also have a growing number of open source apps that you can use to get started. The rest is up to you. Guides to build apps 15 min Create a \"Hello, World!\" application Build a \"Hello, World!\" app and publish it to New Relic One 20 min Set up your development environment Prepare to build apps and contribute to this site 20 min Publish and deploy apps Start sharing the New Relic apps you build 45 min Add, query, and mutate data using NerdStorage NerdStorage is a document database accessible within New Relic One. It allows you to modify, save, and retrieve documents from one session to the next. 20 minutes Add the NerdGraphQuery component to an application The NerdGraphQuery component allows you to query data from your account and add it to a dropdown menu in an application 20 min Add a time picker to your app Add a time picker to a sample application 30 min Add a table to your app Add a table to your New Relic One app 30 min Create a custom map view Build an app to show page view data on a map", + "type": "developer", + "document_type": "page", + "info": "", + "sections": [ + "Build apps", + "Guides to build apps", + "Create a \"Hello, World!\" application", + "Set up your development environment", + "Publish and deploy apps", + "Add, query, and mutate data using NerdStorage", + "Add the NerdGraphQuery component to an application", + "Add a time picker to your app", + "Add a table to your app", + "Create a custom map view" + ], + "title": "Build apps", + "popularity": 1, + "external_id": "abafbb8457d02084a1ca06f3bc68f7ca823edf1d", + "image": "", + "url": "https://developer.newrelic.com/build-apps/", + "published_at": "2020-08-13T01:45:07Z", + "updated_at": "2020-08-12T01:57:08Z", + "_index": "520d1d5d14cc8a32e600034b", + "_type": "520d1d5d14cc8a32e600034c", + "_score": 0.9979694, + "_version": null, + "_explanation": null, + "sort": null, + "highlight": { + "sections": "Add, query, and mutate data using NerdStorage", + "body": " min Set up your development environment Prepare to build apps and contribute to this site 20 min Publish and deploy apps Start sharing the New Relic apps you build 45 min Add, query, and mutate data using NerdStorage NerdStorage is a document database accessible within New Relic One. It allows you" + }, + "id": "5efa999d64441fc0f75f7e21" + }, { - "q": "Set up New Relic using the Kubernetes operator", - "search_fields": { - "page": [ - "tags^10", - "body^5", - "title^1.5", - "*" - ] - }, - "filters": { - "page": { - "url": [ - "!https://developer.newrelic.com/automate-workflows/get-started-kubernetes/", - "!https://developer.newrelic.com/automate-workflows/get-started-kubernetes", - "!https://github.com/newrelic/newrelic-kubernetes-operator/", - "!https://github.com/newrelic/newrelic-kubernetes-operator", - "!https://docs.newrelic.com/", - "!https://docs.newrelic.com", - "!https://kubernetes.io/docs/home/", - "!https://kubernetes.io/docs/home" - ], - "document_type": [ - "!views_page_menu", - "!term_page_api_menu", - "!term_page_landing_page" - ] - } - }, - "engine_key": "Ad9HfGjDw4GRkcmJjUut", - "per_page": 5 + "body": "Products & Pricing Solutions Help Center About LEARN Docs Build on New Relic Explore open source projects Training GET HELP Community forum Global technical support Expert services The Platform New Relic One Capabilities Programmability Infinite Tracing Integrations Security Alerts New Relic for Android and iOS Insights Manage Complex Systems Logs Metrics and Traces Applied Intelligence Serverless Improve Client-side Experiences Browser Mobile Synthetics Build and Run Better Software APM Infrastructure BY TOPIC DevOps Cloud Adoption Native Digital Customer Experience BY INDUSTRY E-Commerce and Retail Media Public Sector BY TECHNOLOGY Amazon Web Services Pivotal Cloud Foundry Microsoft Azure Google Cloud Platform Kubernetes Our Customers Over 17,000 customers love New Relic, from Fortune 500 enterprises to small businesses around the globe. Our Blog The latest news, tips, and insights from the world of New Relic and digital intelligence. Our Company About Us Leadership Meetups and Events Resources Investor Relations Newsroom Partner Program Contact Us How To: Use NerdStorage Build on New Relic Nerdpacks nerdpack nerdstorage jsius July 21, 2020, 10:04pm #1 How to use NerdStorage Difficulty Level: Intermediate Products: N/A Getting Started In this how-to example, you will add NerdStorage to a New Relic One application teaching you how to store and configure data within your applications. To get started, we will clone the example applications from our how-to GitHub repo. Next, we will use the NR1 CLI to update the application UUID and run our application locally. In the terminal, let’s change into the /nr1-howto/use-nerdstorage directory. cd /nr1-howto/use-nerdstorage Now, we want to update the UUID and serve our application. nr1 nerdpack:uuid -gf nr1 nerdpack:serve Once our app is successfully served, in your terminal, you’ll be provided with a URL to access New Relic One and see your running application. New Relic link: https://one.newrelic.com/?nerdpacks=local Now on the New Relic homepage, you should have a new launcher to the how-to example. launcher.png3156×1074 519 KB After launching the ‘Use NerdStorage’ application, you will see the running New Relic app that should look similar to the image below: nerdstorage-app.png3154×750 94.6 KB What is NerdStorage? NerdStorage is a document database that is accessible within the New Relic One interface. Allowing for use and retrieval of data the next time we enter this Nerdlet Using NerdStorage, you will be able to create documents of up to 64kb of data, different collections of documents, and store your data on an Entity, Account, or User level. To find out more about NerdStorage, please read the docs on the New Relic developer website. Add data to NerdStorage Now that you have a better understanding of what is NerdStorage, you will be adding it to the example application currently running on your local machine. Go to the New Relic One homepage and click the launcher for How To Use NerdStorage. You will find an application that looks similar to below: no-nerdstorage.png3296×1650 262 KB Type something to add to NerdStorage and click the check button. Nothing happens… but why? In the app, we want to display data saved to NerdStorage and allow the user to quickly update and delete that data. Currently, the red error message shows, there is no data stored. To add data into this application, we will store data to the user level, using the UserStorageMutation component in the NR1 library. Open the application’s ‘./nerdlets/use-nerdstorage-nerdlet/index.js’ file in the text editor of your choice and find the code for the TextField and Button used to enter data. The Button onClick prop makes a call to a helper method called _addToNerdStorage This helper method needs to be updated to add the UserStorageMutation. The UserStorage NerdStorage components require a collection and documentId to be provided. If you look at the constructor in the application’s index.js file, you can see the variables being provided to the components. Your constructor should be similar to below: constructor(props) { super(props) this.collectionId = 'mycollection'; this.documentId = 'learning-nerdstorage'; this.state = { isOpen: true, storage: [], text: '', }; this._addToNerdStorage = this._addToNerdStorage.bind(this); this._removeFromNerdStorage = this._removeFromNerdStorage.bind(this); this._deleteDocument = this._deleteDocument.bind(this); } Replace the current _addToNerdStorage method with the code below: Import the UserStorageMutation by adding it to your import statement at the top of the index.js file. import {UserStorageMutation } from 'nr1'; then update the helper with the code below: _addToNerdStorage(){ const { text, storage } = this.state; storage.push(text); this.setState({storage}, () => { UserStorageMutation.mutate({ actionType: UserStorageMutation.ACTION_TYPE.WRITE_DOCUMENT, collection: this.collectionId, documentId: this.documentId, document: { storage }, }) .then((res) => { this.setState({text: ''}); Toast.showToast({ title: \"NerdStorage Update.\", type: Toast.TYPE.NORMAL }); }) .catch((err) => console.log(err)); }); } Now, enter text into the TextField and click the check button. From the code added into the UserStorageMutation the text inserted into the TextField will be stored into the application state and then saved to NerdStorage. After NerdStroage is updated, a Toast notification displays, and you can see your data displayed in a table similar to below. data-added.png3272×1248 219 KB Query data from NerdStorage After the last section, the application can now store data to NerdStorage, but if you were to exit the application, back to the New Relic One homepage and re-enter, you’d see that the red warning message is back. The application isn’t reading the data from NerdStorage and loads with an empty state. The UserStorageQuery component will be used to query data from NerdStorage and render the table when after the app mounts. Import the UserStorageQuery by adding it to the import statement. import {UserStorageMutation, UserStorageQuery } from 'nr1'; Add the following componentDidMount method to your application. componentDidMount(){ UserStorageQuery.query({ collection: this.collectionId, documentId: this.documentId, }) .then(({ data }) => { if(data !== null) { this.setState({storage: data.storage}); } }) .catch(err => console.log(err)); } Insert a few more entries into NerdStorage using the TextField, exit the application, and re-enter by clicking it’s launcher on the homepage. Your application will load, showing the data queried from NerdStorage. Your app should look similar to below: data-query.png3296×1638 288 KB Mutate data in NerdStorage Each NerdStorage entry displayed in the table has a trashcan button that can be used to update a specific entry. The trash Button is making a call to the _removeFromNerdStorage helper method. Update the code in the _removeFromNerdStorage to match the code below: _removeFromNerdStorage(index, data){ const { storage } = this.state; storage.pop(data); this.setState({storage}, () => { UserStorageMutation.mutate({ actionType: UserStorageMutation.ACTION_TYPE.WRITE_DOCUMENT, collection: this.collectionId, documentId: this.documentId, document: { storage }, }) .then((res) => { Toast.showToast({ title: \"NerdStorage Update.\", type: Toast.TYPE.NORMAL }); }) .catch((err) => console.log(err)); }); } Now, if you click one of the buttons, that item will be removed, and NerdStorage will be updated to reflect that change. Delete collection from NerdStorage Once the _removeFromNerdStorage method is added, a user can go through their list of entries and delete unwanted data. But, in large collections of data, this would be a viable option. In the next steps, we’ll add another button to the application that will allow the deletion of the entire NerdStorage document at one time. Add a new GridItem to the application just before the closing Grid tag. In the new GridItem, the following code will be added to display a new button. The delete document button is making a call to the _deleteDocument helper method. Update the helper method with the code below. _deleteDocument(){ this.setState({storage: []}); UserStorageMutation.mutate({ actionType: UserStorageMutation.ACTION_TYPE.DELETE_DOCUMENT, collection: this.collectionId, documentId: this.documentId, }); Toast.showToast({ title: \"NerdStorage Update.\", type: Toast.TYPE.CRITICAL }); } Your application should look similar to below: with-delete.png3292×1582 260 KB If you click the delete document button, your entire list will be permanently deleted from NerdStorage, and your application will return back to the empty message. This deletion is triggered by using the UserStorageMutation component, passing it an action type of UserStorageMutation.ACTION_TYPE.DELETE_DOCUMENT, and the collection and document id. How to use NerdStorage recap Wrapping up this how-to example, you’ve successfully implemented NerdStorage into a New Relic One application. By using the UserStorageQuery and UserStorageMutation components, the application stores and mutates data connect to your user. For more information on the various NerdStorage components, please visit the New Relic developer website’s API documentation. To continue your learning, take a look at our self-paced workshop on Github. 4 Likes Home Categories FAQ/Guidelines Terms of Service Privacy Policy Powered by Discourse, best viewed with JavaScript enabled", + "type": "forum", + "info": "", + "sections": [ + "How To: Use NerdStorage", + "How to use NerdStorage", + "Getting Started", + "What is NerdStorage?", + "Add data to NerdStorage", + "Query data from NerdStorage", + "Mutate data in NerdStorage", + "Delete collection from NerdStorage", + "How to use NerdStorage recap" + ], + "title": "How To: Use NerdStorage - Nerdpacks - New Relic Explorers Hub", + "popularity": 1, + "external_id": "3280570cdb2757ee13dfa211590ebce93bda47f2", + "image": "https://nr-production-discourse.s3.dualstack.us-east-1.amazonaws.com/optimized/3X/3/b/3bf77cde5a92f01ae4f8dd5b00d1e054f40c638e_2_690x345.png", + "url": "https://discuss.newrelic.com/t/how-to-use-nerdstorage/99918", + "published_at": "2020-08-11T19:04:04Z", + "updated_at": "2020-08-06T10:13:01Z", + "_index": "520d1d5d14cc8a32e600034b", + "_type": "520d1d5d14cc8a32e600034c", + "_score": 0.012734173, + "_version": null, + "_explanation": null, + "sort": null, + "highlight": { + "title": "How To: Use NerdStorage - Nerdpacks - New Relic Explorers Hub", + "sections": "Mutate data in NerdStorage", + "body": " for use and retrieval of data the next time we enter this Nerdlet Using NerdStorage, you will be able to create documents of up to 64kb of data, different collections of documents, and store your data on an Entity, Account, or User level. To find out more about NerdStorage, please read the docs" + }, + "id": "5e9b197464441f798f38fe97" + }, + { + "body": "Intro to NerdStorage 30 min To help you build a New Relic One application, we provide you with the New Relic One SDK. On this page, you’ll learn how to use NerdStorage SDK components. Use NerdStorage in your apps NerdStorage is used to store and retrieve simple sets of data, including users's configuration settings and preferences (like favorites), or any other small data sets. This storage is unique per Nerdpack, and can't be shared with any other Nerdpack. NerdStorage can be classified into three categories: User storage: Data that is attached to a particular user. If you’re authenticated as the user the data is attached to, you can read it and write it. Account storage: Data that is attached to a particular account. If you’re authenticated and can access the account, you can read and write to account scoped NerdStorage. Visibility of account data is also determined by master/subaccount rules: If a user has access to the master account, then they also have access to data in all subaccounts. Entity storage: Data that is attached to a particular entity. If you can see the corresponding entity, you can read and write data on that entity. Data model You can imagine NerdStorage as a nested key-value map. Data is inside documents, which are nested inside collections: { 'YourNerdpackUuid': { 'collection-1': { 'document-1-of-collection-1': '{\"lastNumber\": 42, \"another\": [1]}', 'document-2-of-collection-1': '\"userToken\"', // ... }, 'another-collection': { 'fruits': '[\"pear\", \"apple\"]', // ... }, // ... }, } Copy Each NerdStorage level has different properties and purpose: Collections: From a Nerdpack, you can create multiple collections by naming each of them. Inside a collection you can put one or more documents. Think of a collection as key-value storage, where each document is a key-value pair. Documents: A document is formed by an identifier (documentId) and a set of data associated with it. Data associated with a document: NerdStorage accepts any sort of data associated to a documentId. Query and mutation components that are provided work by serializing and deserializing JSON. Limits A Nerdpack can hold up to 1,000 collections and 10,000 documents, plus storage type. A collection can hold up to 1,000 documents, plus storage type. Each document can have a maximum length of 64 KiB when serialized. Data access To access NerdStorage, you can run NerdGraph queries, or use the provided storage queries. Depending on which storage you want to access, you can use a different set of SDK components: User access: UserStorageQuery and UserStorageMutation Account access: AccountStorageQuery and AccountStorageMutation Entity access: EntityStorageQuery and EntityStorageMutation Each of these components can operate declaratively (for example, as part of your React rendering methods) or imperatively (by using the static methods for query and mutation). For more information on this, see Data querying and mutations. Permissions for working with NerdStorage In order to persist changes on NerdStorage, such as creating, updating, and deleting account and entity storage, you must have one of the following roles: admin owner user all_product_admin standard_user", + "type": "developer", + "document_type": "page", + "info": "Intro to NerdStorage on New Relic One", + "sections": [ + "Intro to NerdStorage", + "Use NerdStorage in your apps", + "Data model", + "Limits", + "Data access", + "Permissions for working with NerdStorage" + ], + "title": "Intro to NerdStorage", + "popularity": 1, + "external_id": "709e06c25376d98b2191ca369b4d139e5084bd62", + "image": "", + "url": "https://developer.newrelic.com/explore-docs/nerdstorage/", + "published_at": "2020-08-13T01:49:29Z", + "updated_at": "2020-08-01T01:42:02Z", + "_index": "520d1d5d14cc8a32e600034b", + "_type": "520d1d5d14cc8a32e600034c", + "_score": 0.006380546, + "_version": null, + "_explanation": null, + "sort": null, + "highlight": { + "title": "Intro to NerdStorage", + "sections": "Use NerdStorage in your apps", + "info": "Intro to NerdStorage on New Relic One", + "body": " and EntityStorageMutation Each of these components can operate declaratively (for example, as part of your React rendering methods) or imperatively (by using the static methods for query and mutation). For more information on this, see Data querying and mutations. Permissions for working with NerdStorage In order" + }, + "id": "5efa989ee7b9d2048e7bab92" + }, + { + "body": "Products & Pricing Solutions Help Center About LEARN Docs Build on New Relic Explore open source projects Training GET HELP Community forum Global technical support Expert services The Platform New Relic One Capabilities Programmability Infinite Tracing Integrations Security Alerts New Relic for Android and iOS Insights Manage Complex Systems Logs Metrics and Traces Applied Intelligence Serverless Improve Client-side Experiences Browser Mobile Synthetics Build and Run Better Software APM Infrastructure BY TOPIC DevOps Cloud Adoption Native Digital Customer Experience BY INDUSTRY E-Commerce and Retail Media Public Sector BY TECHNOLOGY Amazon Web Services Pivotal Cloud Foundry Microsoft Azure Google Cloud Platform Kubernetes Our Customers Over 17,000 customers love New Relic, from Fortune 500 enterprises to small businesses around the globe. Our Blog The latest news, tips, and insights from the world of New Relic and digital intelligence. Our Company About Us Leadership Meetups and Events Resources Investor Relations Newsroom Partner Program Contact Us NerdStorage Access Outside of Nerdlet Build on New Relic Nerdpacks rfb graphql nerdlet nerdpack cgilling November 18, 2019, 11:47am #1 I’m thinking through various possible uses of Nerdlets, and one of them involves being able to have some configuration that would be generated and modified when we deploy our services. I was hoping that there would be a way for our CICD pipeline to modify the nerdlet config that could be stored in the NerdStorage. It seems like this might be doable through the graphql API, since it does show up as something that is queryable. But when I try to query it I run into the the following error: { actor { account(id: ....) { nerdStorage { collection(collection: \"\") { id } } } } } { \"data\": { \"actor\": { \"account\": { \"nerdStorage\": null } } }, \"errors\": [ { \"locations\": [ { \"column\": 0, \"line\": 5 } ], \"message\": \"No External Package ID found. This field only functions in the context of an External Package.\", \"path\": [ \"actor\", \"account\", \"nerdStorage\" ] } ] } Is there a way that I can set the External Package ID? I’m assuming thats just the nerdlet UUID? 1 Like mweitzel October 27, 2019, 12:44pm #2 @cgilling – this is definitely on the roadmap, for the exact reasons that you outline above. i don’t have a definitive time yet, but we are looking/exploring how we might accomplish this. 1 Like cgilling October 29, 2019, 6:55pm #3 Thanks, good to hear it’s something you want to do. Look forward to being able to use it 1 Like mweitzel May 14, 2020, 9:51pm #4 @cgilling – Check out the Developer Toolkit and the newrelic cli – We’ve added support for this!! New Relic CLI - 0.6.0 Developer Toolkit newrelic-cli v0.6.0 has been released with support for NerdStorage, a document store for New Recic One Nerdpacks. Read more about Nerdstorage here: https://developer.newrelic.com/build-tools/new-relic-one-applications/nerdstorage [v0.6.0] - 2020-04-02 Features nerdstorage: add command for managing nerdstorage documents cgilling May 15, 2020, 4:16pm #5 great, thanks, I’ll check it out soon! Home Categories FAQ/Guidelines Terms of Service Privacy Policy Powered by Discourse, best viewed with JavaScript enabled", + "type": "forum", + "info": "", + "sections": [ + "NerdStorage Access Outside of Nerdlet" + ], + "title": "NerdStorage Access Outside of Nerdlet - Nerdpacks - New Relic Explorers Hub", + "popularity": 1, + "external_id": "237602ae1152ad43cd00005bb9c1702424c94849", + "image": "https://nr-production-discourse.s3.amazonaws.com/original/2X/f/f6107441676f77294613ec559377aa90da19dd52.png", + "url": "https://discuss.newrelic.com/t/nerdstorage-access-outside-of-nerdlet/86223", + "published_at": "2020-08-10T20:59:24Z", + "updated_at": "2020-07-22T11:20:54Z", + "_index": "520d1d5d14cc8a32e600034b", + "_type": "520d1d5d14cc8a32e600034c", + "_score": 0.0040534856, + "_version": null, + "_explanation": null, + "sort": null, + "highlight": { + "title": "NerdStorage Access Outside of Nerdlet - Nerdpacks - New Relic Explorers Hub", + "sections": "NerdStorage Access Outside of Nerdlet", + "body": " in the NerdStorage. It seems like this might be doable through the graphql API, since it does show up as something that is queryable. But when I try to query it I run into the the following error: { actor { account(id: ....) { nerdStorage { collection(collection: "") { id } } } } } { "data": { "actor" + }, + "id": "5db407f4e7b9d2e4ea23ed15" + }, + { + "body": "Query and store data 10 min To help you build a New Relic One application, we provide you with the New Relic One SDK. Here you can learn how to use the SDK query components, which allow you to make queries and mutations via NerdGraph, our GraphQL endpoint. Query-related React components can be identified by the Query suffix. Mutation-related components can be identified by the Mutation prefix. Components overview Our data components are based on React Apollo. The most basic component is NerdGraphQuery, which accepts any GraphQL (or GraphQL AST generated by the graphql-tag library as the query parameter, and a set of query variables passed as variables. Over this query, we have created an additional set of queries, which can be divided into four groups: User queries: These allow you to query the current user and its associated accounts. Components in this category: UserStorageQuery and AccountsQuery. Entities queries: Because New Relic One is entity-centric, we use queries to make access to your entities easier. You can count, search, list, query, and favorite them. Components in this category: EntityCountQuery, EntitySearchQuery, EntitiesByDomainTypeQuery, EntitiesByGuidsQuery, EntityByGuidQuery, EntityByNameQuery. Storage queries: New Relic One provides a simple storage mechanism that we call NerdStorage. This can be used by Nerdpack creators to store application configuration setting data, user-specific data, and other small pieces of data. Components in this category: UserStorageQuery, AccountStorageQuery, EntityStorageQuery, UserStorageMutation, AccountStorageMutation, and EntityStorageMutation. For details, see NerdStorage. NRQL queries: To be able to query your New Relic data via NRQL (New Relic Query Language), we provide a NrqlQuery component. This component can return data in different formats, so that you can use it for charting and not only for querying. Query components All query components accept a function as a children prop where the different statuses can be passed. This callback receives an object with the following properties: loading: Boolean that is set to true when data fetching is happening. Our components use the cache-and-network strategy, meaning that after the data has loaded, subsequent data reloads might be triggered first with stale data, then refreshed when the most recent data has arrived. data: Root property where the data requested is retrieved. The structure matches a root structure based on the NerdGraph schema. This is true even for highly nested data structures, which means you’ll have to traverse down to find the desired data. error: Contains an Error instance when the query fails. Set to undefined when data is loading or the fetch was successful. fetchMore: Callback function that can be called when the query is being loaded in chunks. The function will only be present when it’s feasible to do so, more data is available, and no fetchMore has already been triggered. Data is loaded in batches of 200 by default. Other components provided by the platform (like the Dropdown or the List) are capable of accepting fetchMore, meaning you can combine them easily. Mutation components Mutation components also accept a children as a function, like the query ones. The mutation can be preconfigured at the component level, and a function is passed back that you can use in your component. This is the standard React Apollo approach for performing mutations, but you might find it easier to use our static mutation method added to the component. More on this topic below. Static methods All of the described components also expose a static method so that they can be used imperatively rather than declaratively. All Query components have a static Query method, and all Mutation components have a mutation method. These static methods accept the same props as their query component, but passed as an object. For example: // Declarative way (using components). function renderAccountList() { return (
    ({data, error}) => { if (error) { return
  • Failed to retrieve list: {error.message}
  • ; } return data.map((account) => {
  • {account.name}
  • }); }}
); } // Imperative way (using promises). async function getAccountList() { let data = {}; try { data = await AccountsQuery.query(); } catch (error) { console.log('Failed to retrieve list: ' + error.message); return; } return data.actor.accounts.map((account) => { return account.name; }); } Copy Similarly, a mutation can happen either way; either declaratively or imperatively. NrqlQuery NrqlQuery deserves additional explanation, because there are multiple formats in which you can return data from it. To provide maximum functionality, all three are exposed through a formatType property. You can find its different values under NrqlQuery.formatType: NERD_GRAPH: Returns the format in which it arrives from NerdGraph. RAW: The format exposed by default in Insights and dashboards when being plotted as JSON. This format is useful if you have a pre-existing script in this format that you're willing to migrate to or incorporate with. CHART: The format used by the charting engine that we also expose. You can find a more detailed explanation of how to manipulate this format in the guide to chart components, and some examples. If you are willing to push data, we currently do not expose NrqlMutation. To do that, see the Event API for how to add custom events.", + "type": "developer", + "document_type": "page", + "info": "Reference guide for SDK query components using NerdGraph", + "sections": [ + "Query and store data", + "Components overview", + "Query components", + "Mutation components", + "Static methods", + "NrqlQuery" + ], + "title": "Query and store data", + "popularity": 1, + "external_id": "cbbf363393edeefbc4c08f9754b43d38fd911026", + "image": "", + "url": "https://developer.newrelic.com/explore-docs/query-and-store-data/", + "published_at": "2020-08-13T01:50:34Z", + "updated_at": "2020-08-01T01:42:02Z", + "_index": "520d1d5d14cc8a32e600034b", + "_type": "520d1d5d14cc8a32e600034c", + "_score": 0.002621669, + "_version": null, + "_explanation": null, + "sort": null, + "highlight": { + "title": "Query and store data", + "sections": "Query and store data", + "info": "Reference guide for SDK query components using NerdGraph", + "body": ", EntityByGuidQuery, EntityByNameQuery. Storage queries: New Relic One provides a simple storage mechanism that we call NerdStorage. This can be used by Nerdpack creators to store application configuration setting data, user-specific data, and other small pieces of data. Components in this category" + }, + "id": "5efa989e28ccbc2f15307deb" } ], - "/terms": [ + "/automate-workflows/get-started-terraform": [ + { + "body": "In order to provide a unified experience, we're deprecating Synthetics monitor alert notifications and alert conditions violations, and replacing these pages with a new synthetic monitor overview experience in New Relic One. This new experience provides visibility into a monitor's open violations and alert conditions with the monitor results in a single view, removing the need to open multiple tabs to view violations or alert conditions. For more information, check the EoL Announcements page. If you want to receive alert notifications when a synthetic monitor fails, you can configure the alert notification either while creating a monitor or after you have created one. You can configure your monitor's alert policy directly from the Synthetics UI or via the Alerts UI for existing monitors. To identify which monitors do not have policies assigned to them, review their color-coded health status. Add a synthetic monitor to alert policies A monitor can be included in multiple alert policies. You can view the alert policies and conditions for the selected monitor from the Synthetics UI or from the Alerts UI. To add an existing monitor to an alert policy: Go to one.newrelic.com > Alerts & AI > Policies. From the list of existing alert policies, use the search box or scroll the list to locate one or more alert policies where the monitor has not already been added. Open the policy, then click Add a condition. Click Synthetics and then select the monitor. Fill out the remaining settings and click Create condition. Existing monitor: Remove from alert policy To remove an existing monitor from an existing alert policy: Go to one.newrelic.com > Alerts & AI > Policies. From the list of existing alert policies, use the search box or scroll the list to locate one or more alert policies where the monitor has not already been added. Select the trash can (delete) icon on the monitor's row. Receive alert notifications on a three-strike basis Synthetic alert notifications operate on a three-strike basis, sending an alert after three monitor attempts from a single location return an error. Your alert policy configuration and notification channel settings will determine when you receive alerts for specific monitors and locations. If you monitor a non-public app and add your selected public minion IPs to your allow list, you may very infrequently receive a false downtime alert. When a synthetic monitoring data center goes down, New Relic may decide to temporarily use an alternate host, which results in the temporary server's IP being blocked by your app. Mute (disable) monitor's alert notifications To temporarily disable alerting for a monitor, mute it: Go to one.newrelic.com > Synthetics > Monitors > (select a monitor). Click General under the Settings menu in the left menu sidebar. Click the Notifications button to Off. For more help If you need more help, check out these support and learning resources: Browse the Explorers Hub to get help from the community and join in discussions. Find answers on our sites and learn how to use our support portal. Run New Relic Diagnostics, our troubleshooting tool for Linux, Windows, and macOS. Review New Relic's data security and licenses documentation.", + "type": "docs", + "document_type": "page", + "breadcrumb": "Contents / Synthetic monitoring / Synthetic monitoring / Using monitors", + "info": "New Relic can use alerts to notify you about synthetic monitors's failures.", + "nodeid": 6371, + "sections": [ + "Synthetic monitoring", + "Getting started", + "Guides", + "Using monitors", + "Monitor scripting", + "Administration", + "Private locations", + "UI pages", + "Synthetics API", + "Troubleshooting", + "Alerts for synthetic monitoring", + "Add a synthetic monitor to alert policies", + "Existing monitor: Remove from alert policy", + "Receive alert notifications on a three-strike basis", + "Mute (disable) monitor's alert notifications", + "For more help" + ], + "title": "Alerts for synthetic monitoring", + "translation_ja_url": "https://docs.newrelic.co.jp/docs/synthetics/synthetic-monitoring/using-monitors/alerts-synthetic-monitoring", + "popularity": 1, + "external_id": "b69353439d3cc180ca46c64bef5e8470cdda1636", + "category_1": "Synthetic monitoring", + "category_2": "Using monitors", + "image": "", + "url": "https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/using-monitors/alerts-synthetic-monitoring", + "published_at": "2020-08-10T21:03:10Z", + "updated_at": "2020-08-10T21:03:10Z", + "category_0": "Synthetic monitoring", + "_index": "520d1d5d14cc8a32e600034b", + "_type": "520d1d5d14cc8a32e600034c", + "_score": 0.64609873, + "_version": null, + "_explanation": null, + "sort": null, + "highlight": { + "title": "Alerts for synthetic monitoring", + "sections": "Mute (disable) monitor's alert notifications", + "info": "New Relic can use alerts to notify you about synthetic monitors's failures.", + "category_0": "Synthetic monitoring", + "category_1": "Synthetic monitoring", + "category_2": "Using monitors", + "translation_ja_url": "https://docs.newrelic.co.jp/docs/synthetics/synthetic-monitoring/using-monitors/alerts-synthetic-monitoring", + "body": " the alert notification either while creating a monitor or after you have created one. You can configure your monitor's alert policy directly from the Synthetics UI or via the Alerts UI for existing monitors. To identify which monitors do not have policies assigned to them, review their color-coded health", + "breadcrumb": "Contents / Synthetic monitoring / Synthetic monitoring / Using monitors" + }, + "id": "5f31b60e196a6742d2fbd6c8" + }, + { + "body": "Depending on the selected channel type, different values appear. Reference for updating channels Here's a quick reference for updating channels which also includes links to more detailed information and procedures. Add or remove policies assigned to a channel To add or remove policies assigned to a notification channel: Go to one.newrelic.com, in the top nav click Alerts & AI, click Notification channels. Choose a channel, and then click Alert policies. From the selected policy, use the windows to select, remove, or clear all notification channels. Assign a channel to policies To add a notification channel to one or more policies: Go to one.newrelic.com, in the top nav click Alerts & AI, click Policies. Choose a policy, click Notification channels, and then click Add notification channels. Choose a channel, and then click Update policy. Change a channel's name To rename an existing notification channel: Go to one.newrelic.com, in the top nav click Alerts & AI, click Notification channels, then choose a channel. From the Channel details, change the name (maximum 64 characters) based on the channel type if applicable, and then save. Check for policies assigned to a user To check whether an account user has any policies assigned: Go to one.newrelic.com, in the top nav click Alerts & AI, click Notification channels. Optional: Search by \"user\" to browse users or a specific username or email. Choose the user, then click Alert policies. Check how many policies are assigned to a channel To check whether a notification channel has any policies assigned: Go to one.newrelic.com, in the top nav click Alerts & AI, click Notification channels. The Policy subscriptions column lists how many policies are assigned to the channel. Create more channels To create a new notification channel: Go to one.newrelic.com, in the top nav click Alerts & AI, click Notification channels. Click New notification channel. Delete a channel To delete a notification channel: Go to one.newrelic.com, in the top nav click Alerts & AI, click Notification channels. In the list, click the Delete icon. Test a saved channelView assigned alert policies To view the policies assigned to a notification channel: Go to one.newrelic.com, in the top nav click Alerts & AI, click Notification channels, choose a channel, and then click Alert policies. OR To view the notification channels assigned to a policy: Go to one.newrelic.com, in the top nav click Alerts & AI, click Policies, choose a policy, then click Notification channels. Basic process Go to one.newrelic.com, in the top nav click Alerts & AI, click Notification channels, then choose a channel. From the Channel details page, make any necessary changes, and then save. The user interface shows a Last modified time stamp for any changes to policies, including their conditions and notification channels. For more help If you need more help, check out these support and learning resources: Browse the Explorers Hub to get help from the community and join in discussions. Find answers on our sites and learn how to use our support portal. Run New Relic Diagnostics, our troubleshooting tool for Linux, Windows, and macOS. Review New Relic's data security and licenses documentation.", + "type": "docs", + "document_type": "page", + "breadcrumb": "Contents / Alerts and Applied intelligence / New Relic Alerts / Alert notifications", + "info": "Read about how to update alerts notification channels. ", + "nodeid": 6481, + "sections": [ + "New Relic Alerts", + "Get started", + "Alert policies", + "Alert conditions", + "Alert violations", + "Alert Incidents", + "Alert notifications", + "Troubleshooting", + "Rules, limits, and glossary", + "Alerts and Nerdgraph", + "REST API alerts", + "Update alert notification channels", + "Reference for updating channels", + "Basic process", + "For more help" + ], + "title": "Update alert notification channels", + "popularity": 1, + "external_id": "ee8bce401d0623e8b85d84a6a20bd8a72b9764ef", + "category_1": "New Relic Alerts", + "category_2": "Alert notifications", + "image": "", + "url": "https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-notifications/update-alert-notification-channels", + "published_at": "2020-08-11T06:42:27Z", + "updated_at": "2020-08-11T06:42:27Z", + "category_0": "Alerts and Applied intelligence", + "_index": "520d1d5d14cc8a32e600034b", + "_type": "520d1d5d14cc8a32e600034c", + "_score": 0.61570364, + "_version": null, + "_explanation": null, + "sort": null, + "highlight": { + "title": "Update alert notification channels", + "sections": "Update alert notification channels", + "info": "Read about how to update alerts notification channels. ", + "category_2": "Alert notifications", + "body": " to a notification channel: Go to one.newrelic.com, in the top nav click Alerts & AI, click Notification channels. Choose a channel, and then click Alert policies. From the selected policy, use the windows to select, remove, or clear all notification channels. Assign a channel to policies To add" + }, + "id": "5f2dbad928ccbcb8ca88dfed" + }, + { + "body": "If you delete a channel, you cannot restore it. If you want to keep the notification channel, you can remove it from any associated policy. Delete a channel To delete a channel permanently: Go to alerts.newrelic.com > Notification channels. Go to one.newrelic.com, in the top nav click Alerts & AI, then click Notification channels. Optional: To find the notification channel easily, search the Notification channels index. From the Notification channels index, select the channel's delete icon, and then select the confirmation prompt to cancel or continue. When you delete (or remove) a channel, any policies associated with it will still remain. You must delete policies separately. For more help If you need more help, check out these support and learning resources: Browse the Explorers Hub to get help from the community and join in discussions. Find answers on our sites and learn how to use our support portal. Run New Relic Diagnostics, our troubleshooting tool for Linux, Windows, and macOS. Review New Relic's data security and licenses documentation.", + "type": "docs", + "document_type": "page", + "breadcrumb": "Contents / Alerts and Applied intelligence / New Relic Alerts / Alert notifications", + "info": "You can delete alerts notification channels permanently or you can keep channels but remove them from associated policies.", + "nodeid": 6471, + "sections": [ + "New Relic Alerts", + "Get started", + "Alert policies", + "Alert conditions", + "Alert violations", + "Alert Incidents", + "Alert notifications", + "Troubleshooting", + "Rules, limits, and glossary", + "Alerts and Nerdgraph", + "REST API alerts", + "Delete alert notification channels", + "Delete a channel", + "For more help" + ], + "title": "Delete alert notification channels", + "popularity": 1, + "external_id": "dcea3b60f23ddeb74a7a0a0f44a5130cd9e2885d", + "category_1": "New Relic Alerts", + "category_2": "Alert notifications", + "image": "", + "url": "https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-notifications/delete-alert-notification-channels", + "published_at": "2020-08-11T04:16:54Z", + "updated_at": "2020-08-11T04:16:54Z", + "category_0": "Alerts and Applied intelligence", + "_index": "520d1d5d14cc8a32e600034b", + "_type": "520d1d5d14cc8a32e600034c", + "_score": 0.611537, + "_version": null, + "_explanation": null, + "sort": null, + "highlight": { + "title": "Delete alert notification channels", + "sections": "Delete alert notification channels", + "info": "You can delete alerts notification channels permanently or you can keep channels but remove them from associated policies.", + "category_2": "Alert notifications", + "body": "If you delete a channel, you cannot restore it. If you want to keep the notification channel, you can remove it from any associated policy. Delete a channel To delete a channel permanently: Go to alerts.newrelic.com > Notification channels. Go to one.newrelic.com, in the top nav click Alerts & AI" + }, + "id": "5f2dbb3628ccbc65c788dfcb" + }, + { + "body": "You must save a new notification channel or any changes to an existing notification channel before testing it. Alerts will then send a test message to your chosen destination. Request the test To test a notification channel: Go to one.newrelic.com, in the top nav click Alerts & AI, then click Notification channels. Follow standard procedures to add a new notification channel or to update an existing notification channel, and save it. Select a notification channel, and then click Envelope Message Icon Send a test notification. Review the test confirmation message, and then click Got it. Troubleshoot the test results A confirmation message will automatically show up in the user interface that indicates where the test was sent (for example, email) and whether it was successful. Also, the test notification message itself includes detailed information, including: The person who requested the test Links to policies for the channel Links to all notification channels and policies for the account When troubleshooting problems, review the test notification message, and verify the setup requirements for the type of notification channel you selected. If necessary, make additional changes to your notification channel, and test it again as needed. For more help If you need more help, check out these support and learning resources: Browse the Explorers Hub to get help from the community and join in discussions. Find answers on our sites and learn how to use our support portal. Run New Relic Diagnostics, our troubleshooting tool for Linux, Windows, and macOS. Review New Relic's data security and licenses documentation.", + "type": "docs", + "document_type": "page", + "breadcrumb": "Contents / Alerts and Applied intelligence / New Relic Alerts / Alert notifications", + "info": "Be sure to save your alerts notification channels before testing them to make sure they're working properly.", + "nodeid": 6491, + "sections": [ + "New Relic Alerts", + "Get started", + "Alert policies", + "Alert conditions", + "Alert violations", + "Alert Incidents", + "Alert notifications", + "Troubleshooting", + "Rules, limits, and glossary", + "Alerts and Nerdgraph", + "REST API alerts", + "Test alert notification channels", + "Request the test", + "Troubleshoot the test results", + "For more help" + ], + "title": "Test alert notification channels", + "popularity": 1, + "external_id": "fcea4cf920f099fa1fcf7fab3760d57bdf2e02b7", + "category_1": "New Relic Alerts", + "category_2": "Alert notifications", + "image": "", + "url": "https://docs.newrelic.com/docs/alerts-applied-intelligence/new-relic-alerts/alert-notifications/test-alert-notification-channels", + "published_at": "2020-08-11T04:16:54Z", + "updated_at": "2020-08-11T04:16:54Z", + "category_0": "Alerts and Applied intelligence", + "_index": "520d1d5d14cc8a32e600034b", + "_type": "520d1d5d14cc8a32e600034c", + "_score": 0.611537, + "_version": null, + "_explanation": null, + "sort": null, + "highlight": { + "title": "Test alert notification channels", + "sections": "Test alert notification channels", + "info": "Be sure to save your alerts notification channels before testing them to make sure they're working properly.", + "category_2": "Alert notifications", + "body": "You must save a new notification channel or any changes to an existing notification channel before testing it. Alerts will then send a test message to your chosen destination. Request the test To test a notification channel: Go to one.newrelic.com, in the top nav click Alerts & AI, then click" + }, + "id": "5f2dbb3664441fd3a556a97c" + }, + { + "body": "Products & Pricing Solutions Help Center About LEARN Docs Build on New Relic Explore open source projects Training GET HELP Community forum Global technical support Expert services The Platform New Relic One Capabilities Programmability Infinite Tracing Integrations Security Alerts New Relic for Android and iOS Insights Manage Complex Systems Logs Metrics and Traces Applied Intelligence Serverless Improve Client-side Experiences Browser Mobile Synthetics Build and Run Better Software APM Infrastructure BY TOPIC DevOps Cloud Adoption Native Digital Customer Experience BY INDUSTRY E-Commerce and Retail Media Public Sector BY TECHNOLOGY Amazon Web Services Pivotal Cloud Foundry Microsoft Azure Google Cloud Platform Kubernetes Our Customers Over 17,000 customers love New Relic, from Fortune 500 enterprises to small businesses around the globe. Our Blog The latest news, tips, and insights from the world of New Relic and digital intelligence. Our Company About Us Leadership Meetups and Events Resources Investor Relations Newsroom Partner Program Contact Us Feature Idea: How to get notification channel information for a Synthetic monitor with REST API? Support: Full-Stack Observability (FSO) Synthetic restapi featureidea synthetic Alan_Tsui December 31, 2019, 10:36am #1 Hi all, Specifically, how can I get a list of notification channel email addresses of each Synthetic monitor with REST API? Regards, Alan New Relic Edit I want this too I have more info to share (reply below) I have a solution for this 0 voters We take feature ideas seriously and our product managers review every one when plotting their roadmaps. However, there is no guarantee this feature will be implemented. This post ensures the idea is put on the table and discussed though. So please vote and share your extra details with our team. philweber December 30, 2019, 2:34pm #2 Hi, @Alan_Tsui: I think you will have to: Get a list of all alert policies For each alert policy, check if it includes Synthetic monitors Get a list of all alert channels Compare the channels[links][policy_ids] list of each alert channel with the list of Synthetics-containing alert policies from Step 2 1 Like stefan_garnham December 30, 2019, 4:25pm #3 That is really painful. I hear a feature request being warmed up Alan_Tsui December 31, 2019, 12:55am #4 Thank you @philweber for your confirmation. And yes @stefan_garnham, it’s very painful… May I know which feature request did you refer to? stefan_garnham December 31, 2019, 8:32am #5 I meant that your original enquiry would make a great feature request. An API method to get the notification channels for a synthetic would be a great new feature. RyanVeitch December 31, 2019, 10:34am #6 Hey @Alan_Tsui - @stefan_garnham is right, a clean solution for this doesn’t currently exist. I have created a feature idea for you, and I have converted your post into a feature idea poll 1 Like Alan_Tsui December 31, 2019, 1:46pm #7 Hi @RyanVeitch, Please loop me in. Happy new year~ 1 Like RyanVeitch December 31, 2019, 2:20pm #8 Thanks Alan, Happy New Year to you too. We’ll try to keep this thread up to date as we hear more on the feature idea! @Alan_Tsui -Ryan. anon85944545 December 31, 2019, 9:22pm #9 I agree that the nested queries via API can be a bit troublesome; but just in case you need a solution faster than the FR can be implemented; you can try this out: note: this is based on a few of the functions I keep in my public Github repo results: image.png932×222 52.5 KB PowerShell script: #region Top of Script #requires -version 2 <# .SYNOPSIS Queries the New Relic API to audit alert policies and their associated Synthetics alert conditions and notification channels .DESCRIPTION Requires the Account API Key for the target account .NOTES Version: 1.0 Author: Zack Mutchler Creation Date: 12/31/2019 Purpose/Change: Initial script development. #> #endregion #####-----------------------------------------------------------------------------------------##### #region Script Parameters Param( [ Parameter( Mandatory = $true ) ] [ValidateNotNullOrEmpty() ] [ string ] $AccountAPIKey ) #endregion Script Parameters #####-----------------------------------------------------------------------------------------##### #region Functions # Create a function to enumerate all Alert Policies for an account Function Get-NRAlertPolicies { Param ( [ Parameter (Mandatory = $true ) ] [ string ] $AccountAPIKey, [ Parameter (Mandatory = $false ) ] [ string ] $FilterName, [ Parameter (Mandatory = $false ) ] [ ValidateSet( 'true', 'false' ) ] [ string ] $ExactMatch = 'false' ) # Set the target URI if no FilterName is provided If ( ( !$FilterName ) ) { $getPoliciesUri = \"https://api.newrelic.com/v2/alerts_policies.json\" } # Set the target URI with provided filter Else { $getPoliciesUri = \"https://api.newrelic.com/v2/alerts_policies.json/?filter[name]=\" + $FilterName + '&filter[exact_match]=' + $ExactMatch } # Set the headers to pass $headers = @{ 'X-Api-Key' = $AccountAPIKey; 'Content-Type' = 'application/json' } # Query the API $results = ( Invoke-RestMethod -Method Get -Uri $getPoliciesUri -Headers $headers ).policies RETURN $results } # Create a function to enumerate all Synthetics Alert Conditions for an account Function Get-NRSyntheticsConditions { Param ( [ Parameter (Mandatory = $true ) ] [ string ] $AccountAPIKey, [ Parameter (Mandatory = $true ) ] [ string ] $PolicyID ) # Set the target URI with query string $getSyntheticsConditionsUri = \"https://api.newrelic.com/v2/alerts_synthetics_conditions.json?policy_id=\" + $PolicyID # Set the headers to pass $headers = @{ 'X-Api-Key' = $AccountAPIKey; 'Content-Type' = 'application/json' } # Query the API $results = ( Invoke-RestMethod -Method Get -Uri $getSyntheticsConditionsUri -Headers $headers ).synthetics_conditions RETURN $results } # Create a function to enumerate all Notification Channels for an account Function Get-NRNotificationChannels { Param( [ Parameter ( Mandatory = $true ) ] [ string ] $AccountAPIKey ) # Set the target URI $uri = 'https://api.newrelic.com/v2/alerts_channels.json' # Set the headers to pass $headers = @{ 'X-Api-Key' = $AccountAPIKey } # Query the API $results = ( Invoke-RestMethod -Method Get -Uri $uri -Headers $headers -ContentType 'application/json' ).channels RETURN $results } #endregion Functions #####-----------------------------------------------------------------------------------------##### #region Execution # Get a list of all Alert Policies $policies = Get-NRAlertPolicies -AccountAPIKey $AccountAPIKey # Get a list of all Notification Channels $channels = Get-NRNotificationChannels -AccountAPIKey $AccountAPIKey # Build an empty array to hold our Alert Policy IDs that have Synthetics Alert Conditions $syntheticsPolicies = @() # Iterate through each policy and isolate the ones with Synthetics Alert Conditions foreach ( $p in $policies ) { $query = Get-SyntheticsConditions -AccountAPIKey $AccountAPIKey -PolicyID $p.id foreach ( $q in $query ) { Write-Host \"Synthetics Conditions found in Alert Policy: $( $p.name )\" -ForegroundColor Cyan $syntheticsPolicies += $p.id } } # Build an empty array to hold our results $results = @() # Iterate through the Notification Channels to see if any are assigned to a Policy with Synthetics Alert Conditions foreach ( $c in $channels ) { foreach( $l in $c.links.policy_ids ) { # Build a PSObject to add to our results $item = New-Object -TypeName psobject if( $l -in $syntheticsPolicies ) { # Grab the alert policy name for readability in the results $pName = ( $policies | Where-Object { $_.id -eq $l } ).name Write-Host \"Notification Channel \"$( $c.name )\" is assigned to Alert Policy: $( $pName )\" -ForegroundColor Yellow # Fill the PSObject $item | Add-Member -MemberType NoteProperty -Name 'AlertPolicyID' -Value $l $item | Add-Member -MemberType NoteProperty -Name 'AlertPolicyName' -Value $pName $item | Add-Member -MemberType NoteProperty -Name 'ChannelID' -Value $c.id $item | Add-Member -MemberType NoteProperty -Name 'ChannelName' -Value $c.name $item | Add-Member -MemberType NoteProperty -Name 'ChannelType' -Value $c.type # Add the PSObject to our results array $results += $item } } } #endregion Execution # Play that beautiful bean footage... $results | Format-Table -AutoSize 4 Likes Alan_Tsui January 1, 2020, 3:42pm #10 Thank you @anon85944545. I programmed a Python script for this too, please free feel to comment on my public GitHub repo. Sample output result_df.png2032×1169 478 KB 2 Likes RyanVeitch January 2, 2020, 10:09am #11 This is great! Thanks both of you for sharing those scripts! @anon85944545 @Alan_Tsui Home Categories FAQ/Guidelines Terms of Service Privacy Policy Powered by Discourse, best viewed with JavaScript enabled", + "type": "forum", + "info": "", + "sections": [ + "Feature Idea: How to get notification channel information for a Synthetic monitor with REST API?" + ], + "title": "Feature Idea: How to get notification channel information for a Synthetic monitor with REST API? - Synthetic - New Relic Explorers Hub", + "popularity": 1, + "external_id": "bdbb045c3d65f768754131aee97c0199d48ede1d", + "image": "https://nr-production-discourse.s3.dualstack.us-east-1.amazonaws.com/optimized/3X/5/1/51a1bab08a8e6e700fa097c886d462adb65b3e27_2_690x396.png", + "url": "https://discuss.newrelic.com/t/feature-idea-how-to-get-notification-channel-information-for-a-synthetic-monitor-with-rest-api/90820", + "published_at": "2020-08-11T02:23:24Z", + "updated_at": "2020-07-30T21:07:50Z", + "_index": "520d1d5d14cc8a32e600034b", + "_type": "520d1d5d14cc8a32e600034c", + "_score": 0.5424356, + "_version": null, + "_explanation": null, + "sort": null, + "highlight": { + "title": "Feature Idea: How to get notification channel information for a Synthetic monitor with REST API? - Synthetic - New Relic Explorers Hub", + "sections": "Feature Idea: How to get notification channel information for a Synthetic monitor with REST API?", + "body": " from the world of New Relic and digital intelligence. Our Company About Us Leadership Meetups and Events Resources Investor Relations Newsroom Partner Program Contact Us Feature Idea: How to get notification channel information for a Synthetic monitor with REST API? Support: Full-Stack Observability" + }, + "id": "5e0b6ce064441fabd8392627" + } + ], + "/build-apps/add-nerdgraphquery-guide": [ + { + "body": "Build apps You know better than anyone what information is crucial to your business, and how best to visualize it. Sometimes, this means going beyond dashboards to creating your own app. With React and GraphQL, you can create custom views tailored to your business. These guides are designed to help you start building apps, and dive into our library of components. We also have a growing number of open source apps that you can use to get started. The rest is up to you. Guides to build apps 15 min Create a \"Hello, World!\" application Build a \"Hello, World!\" app and publish it to New Relic One 20 min Set up your development environment Prepare to build apps and contribute to this site 20 min Publish and deploy apps Start sharing the New Relic apps you build 45 min Add, query, and mutate data using NerdStorage NerdStorage is a document database accessible within New Relic One. It allows you to modify, save, and retrieve documents from one session to the next. 20 minutes Add the NerdGraphQuery component to an application The NerdGraphQuery component allows you to query data from your account and add it to a dropdown menu in an application 20 min Add a time picker to your app Add a time picker to a sample application 30 min Add a table to your app Add a table to your New Relic One app 30 min Create a custom map view Build an app to show page view data on a map", + "type": "developer", + "document_type": "page", + "info": "", + "sections": [ + "Build apps", + "Guides to build apps", + "Create a \"Hello, World!\" application", + "Set up your development environment", + "Publish and deploy apps", + "Add, query, and mutate data using NerdStorage", + "Add the NerdGraphQuery component to an application", + "Add a time picker to your app", + "Add a table to your app", + "Create a custom map view" + ], + "title": "Build apps", + "popularity": 1, + "external_id": "abafbb8457d02084a1ca06f3bc68f7ca823edf1d", + "image": "", + "url": "https://developer.newrelic.com/build-apps/", + "published_at": "2020-08-13T01:45:07Z", + "updated_at": "2020-08-12T01:57:08Z", + "_index": "520d1d5d14cc8a32e600034b", + "_type": "520d1d5d14cc8a32e600034c", + "_score": 1.1805475, + "_version": null, + "_explanation": null, + "sort": null, + "highlight": { + "sections": "Add the NerdGraphQuery component to an application", + "body": " to modify, save, and retrieve documents from one session to the next. 20 minutes Add the NerdGraphQuery component to an application The NerdGraphQuery component allows you to query data from your account and add it to a dropdown menu in an application 20 min Add a time picker to your app Add a time" + }, + "id": "5efa999d64441fc0f75f7e21" + }, + { + "body": "NerdGraphQuery Usage Copy Props There are no props for this component.", + "type": "developer", + "document_type": "page", + "info": "A NerdGraphQuery component!", + "sections": [ + "NerdGraphQuery", + "Usage", + "Props" + ], + "title": "NerdGraphQuery", + "popularity": 1, + "external_id": "1ada6e056e031c141b2bb989e4ec200b3a7ce988", + "image": "", + "url": "https://developer.newrelic.com/components/nerd-graph-query/", + "published_at": "2020-08-13T01:47:34Z", + "updated_at": "2020-08-01T01:48:20Z", + "_index": "520d1d5d14cc8a32e600034b", + "_type": "520d1d5d14cc8a32e600034c", + "_score": 0.026767705, + "_version": null, + "_explanation": null, + "sort": null, + "highlight": { + "title": "NerdGraphQuery", + "sections": "NerdGraphQuery", + "info": "A NerdGraphQuery component!", + "body": "NerdGraphQuery Usage Copy Props There are no props for this component." + }, + "id": "5efa999d28ccbc6bfd307ddb" + }, + { + "body": "Products & Pricing Solutions Help Center About LEARN Docs Build on New Relic Explore open source projects Training GET HELP Community forum Global technical support Expert services The Platform New Relic One Capabilities Programmability Infinite Tracing Integrations Security Alerts New Relic for Android and iOS Insights Manage Complex Systems Logs Metrics and Traces Applied Intelligence Serverless Improve Client-side Experiences Browser Mobile Synthetics Build and Run Better Software APM Infrastructure BY TOPIC DevOps Cloud Adoption Native Digital Customer Experience BY INDUSTRY E-Commerce and Retail Media Public Sector BY TECHNOLOGY Amazon Web Services Pivotal Cloud Foundry Microsoft Azure Google Cloud Platform Kubernetes Our Customers Over 17,000 customers love New Relic, from Fortune 500 enterprises to small businesses around the globe. Our Blog The latest news, tips, and insights from the world of New Relic and digital intelligence. Our Company About Us Leadership Meetups and Events Resources Investor Relations Newsroom Partner Program Contact Us How To: Use the NerdGraphQuery component Build on New Relic Nerdpacks nerdpack nrnerdpack jsius April 12, 2020, 1:13pm #1 Use the NerdGraphQuery component Difficulty Level: Intermediate Products: APM Getting Started For this how-to example, we will be adding the NerdGraph component to our transaction overview application to query data from our account and add it to a dropdown menu. NerdGraph is New Relic’s GraphQl implementation. GraphQL has some key differences when compared to REST. For example, it’s the client, not the server, that determines what data will be returned. Also, it becomes easy to collect data from multiple sources. In the case of New Relic, we’ll see you can get account information, data about infrastructure, and issue an NRQL request, all in one GraphQL query. Explore NerdGraph To get started, we will clone the example applications from our how-to GitHub repo: Next, we will use the NR1 CLI to update the application UUID and run our application locally. In the terminal, let’s change into the /nr1-howto/use-nerdgraph directory. cd /nr1-howto/use-nerdgraph Before moving forward, let’s make sure we are getting data from the right New Relic account. If you open the sample code in your preferred text editor, open the /use-nerdgraphd/nerdlets/use-nerdgraph-nerdlet/index.js. In your text editor, you want to update the line below to include your account id. this.accountId = ; Note: Your account id is viewable in the profile selection menu of the developer center, where you downloaded in the nr1 CLI. Now, we want to update the UUID and serve our application. nr1 nerdpack:uuid -gf nr1 nerdpack:serve Once our app is successfully served, in your terminal, you’ll be provided with a URL to access New Relic One and see your running application. New Relic link: https://one.newrelic.com/?nerdpacks=local Now on the New Relic homepage, you should have a new launcher to the how-to example. use-nerdgraph-launcher.png3178×1098 497 KB After launching the 'Use NerdGraph application, you will see a dashboard that gives an overview of the transactions in your New Relic account. no-name.png3174×1494 417 KB Adding the NerdGraphQuery component In this application, you will see an overview of the Transaction data that is your account. By following the instructions in this how-to, you will add the NerdGraphQuery component to access to build a dropdown menu to change the account the application is viewing. The first step is to import the NerdGraphQuery Component. We can find the component and details on how to import it on the APIs and components page on https://developer.newrelic.com/client-side-sdk/index.html#data-fetching/NerdGraphQuery. Please take a moment to get caught up on the NerdGraphQuery component, then import the component into our application’s index.js file. Add the NerdGraphQuery component into the first StackItem inside of the return in the index.js file. {({loading, error, data}) => { console.log({loading, error, data}) if (loading) { return ; } if (error) { return 'Error!'; } return null; }} The NerdGraphQuery component takes an an query object that states the what source you’d like to access and the data you want to have returned. Add the following code to your index.js file in the render method. const query = ` query($id: Int!) { actor { account(id: $id) { name } } } `; If you take a look at your browser console, you should see something similar to below: console-screenshot.png3176×548 113 KB You can see the data from your query returned in an object following the same structure of the object provided in the initial query. Now, you want to take the data returned by the NerdGraph query and display it in the application. Replace the return null in the current NerdGraphQuery component with the return statement below. return {data.actor.account.name} Apps:; If you go back to the browser and view your application, you will see a new headline showing the name of your account returned from NerdGraph. with-name.png3174×1612 443 KB Using the NerdGraphQuery.query We have implemented the NerdGraphQuery component with the application’s render method and displayed the return data within the transaction overview application. Now, we want to be able to query NerdGraph outside of the render method and save the returned data for later usage throughout the NR1 app. To do this, we will use the NerdGraphQuery.query method within the componentDidMount react lifecycle method. Add the following code into the index.js just under the constructor. componentDidMount(){ const accountId = this.state; const gql = `{ actor { accounts { id name } } }`; const accounts = NerdGraphQuery.query({query: gql}) accounts.then(results => { console.log('Nerdgraph Response:', results); const accounts = results.data.actor.accounts.map(account => { return account; }); const account = accounts.length > 0 && accounts[0]; this.setState({ selectedAccount: account, accounts }); }).catch((error) => { console.log('Nerdgraph Error:', error); }) } In the code, we just added to the transaction app a few things would happen after the HTML in the render method is successfully rendered, and the componentDidMount lifecycle method has been called. The NerdGraphQuery.query method called with the query object to get your account data will be stored into a variable called accounts. Once the response has come back from NerdGraph, the results will be logged to the browser console for your viewing, processed, and stored into the application state. After the data is stored into state, we want to use it to display and account selection for users to change accounts and update the application quickly. Add the following code into the second StackItem in the index.js return statement. {accounts && } If you look at the application in your browser, you will see a dropdown menu that displays the data returned from the NerdGraphQuery.query and allows the user to select an account. Once a new account is selected, the application will render showing data from the new selection. complete.png3172×1432 441 KB The final index.js file should have code similar to the code below. This completed sample code is in your nerdlet final.js. import React from 'react'; import { PlatformStateContext, NerdGraphQuery, Spinner, HeadingText, Grid, GridItem, Stack, StackItem, Select, SelectItem, AreaChart, TableChart, PieChart } from 'nr1' import { timeRangeToNrql } from '@newrelic/nr1-community'; // https://docs.newrelic.com/docs/new-relic-programmable-platform-introduction export default class UseNerdgraphNerdletNerdlet extends React.Component { constructor(props){ super(props) this.state = { accountId: , accounts: null, selectedAccount: null, } } componentDidMount(){ const accountId = this.state; const gql = `{ actor { accounts { id name } } }`; const accounts = NerdGraphQuery.query({query: gql}) accounts.then(results => { console.log('Nerdgraph Response:', results); const accounts = results.data.actor.accounts.map(account => { return account; }); const account = accounts.length > 0 && accounts[0]; this.setState({ selectedAccount: account, accounts }); }).catch((error) => { console.log('Nerdgraph Error:', error); }) } selectAccount(option) { this.setState({ accountId: option.id,selectedAccount: option }); } render() { const { accountId, accounts, selectedAccount } = this.state; console.log({accountId, accounts, selectedAccount}); const query = ` query($id: Int!) { actor { account(id: $id) { name } } } `; const variables = { id: accountId, }; const avgResTime = `SELECT average(duration) FROM Transaction FACET appName TIMESERIES AUTO `; const trxOverview = `FROM Transaction SELECT count(*) as 'Transactions', apdex(duration) as 'apdex', percentile(duration, 99, 95) FACET appName `; const errCount = `FROM TransactionError SELECT count(*) as 'Transaction Errors' FACET error.message `; const responseCodes = `SELECT count(*) as 'Response Code' FROM Transaction FACET httpResponseCode `; return ( {({loading, error, data}) => { if (loading) { return ; } if (error) { return 'Error!'; } return {data.actor.account.name} Apps:; }} {accounts && }
{(PlatformState) => { /* Taking a peek at the PlatformState */ const since = timeRangeToNrql(PlatformState); return ( <>
Transaction Overview
Average Response Time
Response Code
Transaction Errors
); }}
) } } How to use the NerdGraph component recap Wrapping up this how-to example, you’ve successfully queried data from your account using the NerdGraphQuery component. Using the NerdGraphQuery.query method allows the separation of querying data and visualization. For more experience querying your data with NerdGraph, use New Relic’s GraphQL tool to explore what’s possible. To continue your learning, take a look at our self-paced workshop on Github. 2 Likes Home Categories FAQ/Guidelines Terms of Service Privacy Policy Powered by Discourse, best viewed with JavaScript enabled", + "type": "forum", + "info": "", + "sections": [ + "How To: Use the NerdGraphQuery component", + "Use the NerdGraphQuery component", + "Getting Started", + "Adding the NerdGraphQuery component", + "Using the NerdGraphQuery.query", + "How to use the NerdGraph component recap" + ], + "title": "How To: Use the NerdGraphQuery component - Nerdpacks - New Relic Explorers Hub", + "popularity": 1, + "external_id": "54afe87c7dc00daab3cab31d9fc01b774391d3d3", + "image": "https://nr-production-discourse.s3.dualstack.us-east-1.amazonaws.com/optimized/3X/a/4/a43c1bd30420ce0a39563ad803a05c512a681ab7_2_690x238.png", + "url": "https://discuss.newrelic.com/t/how-to-use-the-nerdgraphquery-component/96289", + "published_at": "2020-08-12T04:52:18Z", + "updated_at": "2020-07-22T05:47:01Z", + "_index": "520d1d5d14cc8a32e600034b", + "_type": "520d1d5d14cc8a32e600034c", + "_score": 0.017421223, + "_version": null, + "_explanation": null, + "sort": null, + "highlight": { + "title": "How To: Use the NerdGraphQuery component - Nerdpacks - New Relic Explorers Hub", + "sections": "How To: Use the NerdGraphQuery component", + "body": " the NerdGraphQuery component Difficulty Level: Intermediate Products: APM Getting Started For this how-to example, we will be adding the NerdGraph component to our transaction overview application to query data from our account and add it to a dropdown menu. NerdGraph is New Relic’s GraphQl implementation" + }, + "id": "5e61d6b9196a67486b7ed48e" + }, + { + "body": "Create a \"Hello, World!\" application 15 min Here's how you can quickly build a \"Hello, World!\" application in New Relic One. In these steps, we'll show you how to create a local version of the New Relic One site where you can prototype your application. Then, when you're ready to share the application with others, you can publish it to New Relic One. We also have a 5-minute video that covers the steps below. Before you begin To get started, make sure you have accounts in GitHub and New Relic. To develop projects, you need our New Relic One CLI (command line interface). If you haven't already installed it, do the following: Install Node.js. Complete all the steps in our CLI wizard. For additional details about setting up your environment, see Set up your development environment. Create a local version of the \"Hello, World!\" application The CLI allows you to run a local version of New Relic One. You can develop your application locally before you publish it in New Relic One. If you followed all the steps in the CLI wizard, you now have files under a new directory named after your nerdpack project. Here's how you edit those files to create a \"Hello, World!\" project: Step 1 of 9 Open a code editor and point it to the new directory named after your nerdpack project (for example, my-awesome-nerdpack). Your code editor displays two artifacts: launchers containing the homepage tile nerdlets containing your application code Step 2 of 9 Expand nerdlets in your code editor, and open index.js. Step 3 of 9 Change the default return message to \"Hello, World!\": import React from 'react'; // https://docs.newrelic.com/docs/new-relic-programmable-platform-introduction export default class MyAwesomeNerdpackNerdletNerdlet extends React.Component { render() { return

\"Hello, World!\"

; } } Copy Step 4 of 9 As an optional step, you can add a custom launcher icon using any image file named icon.png. Replace the default icon.png file under launcher by dragging in your new image file: Step 5 of 9 To change the name of the launcher to something meaningful, in your code editor under launchers, open nr1.json. Step 6 of 9 Change the value for displayName to anything you want as the launcher label, and save the file: { \"schemaType\": \"LAUNCHER\", \"id\": \"my-awesome-nerdpack-launcher\", \"description\": \"Describe me\", \"displayName\": \"INSERT_YOUR_TILE_LABEL_HERE\", \"rootNerdletId\": \"my-awesome-nerdpack-nerdlet\" } Copy Step 7 of 9 To see your new changes locally, start the Node server with this command in your terminal: npm start Copy Step 8 of 9 Open a browser and go to https://one.newrelic.com/?nerdpacks=local (this url is also shown in the terminal). Step 9 of 9 When the browser opens, click the new launcher for your application. Here's an example where we inserted a leaf icon: After you click the new launcher, your \"Hello, World!\" appears: Publish your application to New Relic Your colleagues can't see your local application, so when you are ready to share it, publish it to the New Relic One catalog. The catalog is where you can find any pre-existing custom applications, as well as any applications you create in your own organization. Step 1 of 4 Execute the following in your terminal: nr1 nerdpack:publish Copy Step 2 of 4 Close your local New Relic One development tab, and open New Relic One. Step 3 of 4 Click the New Relic One Catalog launcher. Step 4 of 4 Under Your company applications, click the launcher for your new application. When your new application opens, notice that it doesn't display any helpful descriptive information. The next section shows you how to add descriptive metadata. Add details to describe your project Now that your new application is in the New Relic One catalog, you can add details that help users understand what your application does and how to use it. Step 1 of 5 Go to your project in the terminal and execute the following: nr1 create Copy Step 2 of 5 Select catalog, which creates a stub in your project under the catalog directory. Here's how the results might look in your code editor: Step 3 of 5 In the catalog directory of your project, add screenshots or various types of metadata to describe your project. For details about what you can add, see Add catalog metadata and screenshots. Step 4 of 5 After you add the screenshots and descriptions you want, execute the following to save your metadata to the catalog: nr1 catalog:submit Copy Step 5 of 5 Return to the catalog and refresh the page to see your new screenshots and metadata describing your project. Subscribe accounts to your application To make sure other users see your application on the New Relic One homepage, you need to subscribe accounts to the application. Any user with the NerdPack Manager role can subscribe accounts to an application. Step 1 of 3 If you're not already displaying your application's description page in the browser, click the launcher for the application in the catalog under Your company applications. Step 2 of 3 On your application's description page, click Add this app. Step 3 of 3 Select the accounts you want to subscribe to the application, and then click Update access to save your selections. When you return to the New Relic One homepage, you'll see the launcher for your new application. Summary Now that you've completed the steps in this example, you learned the basic steps to create a custom application: Create a local application. Publish the application to the New Relic One catalog so you can share it with your colleagues. Add details to the project in the catalog so users understand how to use it. Subscribe accounts to your application so other users can see it directly on their homepage.", + "type": "developer", + "document_type": "page", + "info": "Build a \"Hello, World!\" app and publish it to New Relic One", + "sections": [ + "Create a \"Hello, World!\" application", + "Before you begin", + "Create a local version of the \"Hello, World!\" application", + "Publish your application to New Relic", + "Add details to describe your project", + "Subscribe accounts to your application", + "Summary" + ], + "title": "Create a \"Hello, World!\" application", + "popularity": 1, + "tags": [ + "nr1 cli", + "Nerdpack file structure", + "NR One Catalog", + "Subscribe applications" + ], + "external_id": "aa427030169067481fb69a3560798265b6b52b7c", + "image": "https://developer.newrelic.com/static/cb65a35ad6fa52f5245359ecd24158ff/9466d/hello-world-output-local.png", + "url": "https://developer.newrelic.com/build-apps/build-hello-world-app/", + "published_at": "2020-08-13T01:45:06Z", + "updated_at": "2020-08-08T01:41:47Z", + "_index": "520d1d5d14cc8a32e600034b", + "_type": "520d1d5d14cc8a32e600034c", + "_score": 0.0044204337, + "_version": null, + "_explanation": null, + "sort": null, + "highlight": { + "title": "Create a "Hello, World!" application", + "sections": "Create a local version of the "Hello, World!" application", + "info": "Build a "Hello, World!" app and publish it to New Relic One", + "tags": "Subscribe applications", + "body": " how to add descriptive metadata. Add details to describe your project Now that your new application is in the New Relic One catalog, you can add details that help users understand what your application does and how to use it. Step 1 of 5 Go to your project in the terminal and execute the following" + }, + "id": "5efa9973196a67d16d76645c" + }, { - "url": "https://developer.newrelic.com/terms", - "title": "The title!", - "q": "Terms and conditions", - "search_fields": { - "page": [ - "tags^10", - "body^5", - "title^1.5", - "*" - ] - }, - "filters": { - "page": { - "url": [ - "!https://developer.newrelic.com/terms/", - "!https://developer.newrelic.com/terms" - ], - "document_type": [ - "!views_page_menu", - "!term_page_api_menu", - "!term_page_landing_page" - ] - } - }, - "engine_key": "Ad9HfGjDw4GRkcmJjUut", - "per_page": 5 + "body": "Products & Pricing Solutions Help Center About LEARN Docs Build on New Relic Explore open source projects Training GET HELP Community forum Global technical support Expert services The Platform New Relic One Capabilities Programmability Infinite Tracing Integrations Security Alerts New Relic for Android and iOS Insights Manage Complex Systems Logs Metrics and Traces Applied Intelligence Serverless Improve Client-side Experiences Browser Mobile Synthetics Build and Run Better Software APM Infrastructure BY TOPIC DevOps Cloud Adoption Native Digital Customer Experience BY INDUSTRY E-Commerce and Retail Media Public Sector BY TECHNOLOGY Amazon Web Services Pivotal Cloud Foundry Microsoft Azure Google Cloud Platform Kubernetes Our Customers Over 17,000 customers love New Relic, from Fortune 500 enterprises to small businesses around the globe. Our Blog The latest news, tips, and insights from the world of New Relic and digital intelligence. Our Company About Us Leadership Meetups and Events Resources Investor Relations Newsroom Partner Program Contact Us Use NrqlQuery component to execute query and store result in nerdlets Build on New Relic Nerdpacks nrql nerdpack sikharam May 6, 2020, 1:07am #1 Is it possible to use the NrqlQuery component to execute a query and store the result of it? sikharam May 5, 2020, 11:20pm #2 I’m trying to get the results of one query, and then use the results in other queries/operations… RyanVeitch May 6, 2020, 8:50am #3 Hey @sikharam that should absolutely be possible! There is an example of similar happening here: Is it possible to query the Insights API from a Nerdpack? Nerdpacks I can’t diagnose the invariant violation in this setting, but I can verify that the following code works, using the NerdGraphQuery static method and models the idea of using an initial query to feed a secondary query in the render. Maybe this is helpful. import React from 'react'; import { Spinner, NerdGraphQuery } from 'nr1'; import { NerdGraphError } from '@newrelic/nr1-community'; import gql from \"graphql-tag\"; import get from 'lodash.get'; import camelCase from 'lodash.camelcase'; // http… I see that this is using NerdGraphQuery rather than NrqlQuery, but, this NerdGraph Query is querying NRQL data, and the same result chaining should be possible in the NRQL query component. 1 Like sikharam May 6, 2020, 6:19pm #4 That works! Thank you! 1 Like RyanVeitch May 7, 2020, 6:56am #5 Awesome! Thanks for confirming Home Categories FAQ/Guidelines Terms of Service Privacy Policy Powered by Discourse, best viewed with JavaScript enabled", + "type": "forum", + "info": "", + "sections": [ + "Use NrqlQuery component to execute query and store result in nerdlets" + ], + "title": "Use NrqlQuery component to execute query and store result in nerdlets - Nerdpacks - New Relic Explorers Hub", + "popularity": 1, + "external_id": "8bf23a29e60f7ef15ebd24d982166ad7540e98d4", + "image": "https://nr-production-discourse.s3.amazonaws.com/original/2X/f/f6107441676f77294613ec559377aa90da19dd52.png", + "url": "https://discuss.newrelic.com/t/use-nrqlquery-component-to-execute-query-and-store-result-in-nerdlets/101450", + "published_at": "2020-08-11T17:17:45Z", + "updated_at": "2020-07-23T02:43:53Z", + "_index": "520d1d5d14cc8a32e600034b", + "_type": "520d1d5d14cc8a32e600034c", + "_score": 0.004134622, + "_version": null, + "_explanation": null, + "sort": null, + "highlight": { + "title": "Use NrqlQuery component to execute query and store result in nerdlets - Nerdpacks - New Relic Explorers Hub", + "sections": "Use NrqlQuery component to execute query and store result in nerdlets", + "body": " from 'lodash.camelcase'; // http… I see that this is using NerdGraphQuery rather than NrqlQuery, but, this NerdGraph Query is querying NRQL data, and the same result chaining should be possible in the NRQL query component. 1 Like sikharam May 6, 2020, 6:19pm #4 That works! Thank you! 1 Like" + }, + "id": "5eb2c51c28ccbcd7f7c213ce" } ], - "/explore-docs/query-and-store-data": [ + "/collect-data/custom-events": [ + { + "body": "New Relic CLI Reference The New Relic CLI enables integration of New Relic into your existing workflows. Be it fetching data from your laptop while troubleshooting an issue, or adding New Relic into your CI/CD pipeline. New Relic CLI commands Find details for the New Relic CLI command docs in GitHub. Options --format string output text format [YAML, JSON, Text] (default \"JSON\") -h, --help help for newrelic --plain output compact text Copy Commands newrelic apm - Interact with New Relic APM newrelic completion - Generates shell completion functions newrelic config - Manage the configuration of the New Relic CLI newrelic documentation - Generate CLI documentation newrelic entity - Interact with New Relic entities newrelic nerdgraph - Execute GraphQL requests to the NerdGraph API newrelic nerdstorage - Read, write, and delete NerdStorage documents and collections. newrelic nrql - Commands for interacting with the New Relic Database newrelic profile - Manage the authentication profiles for this tool newrelic version - Show the version of the New Relic CLI newrelic workload - Interact with New Relic One workloads", + "type": "developer", + "document_type": "page", + "info": "The command line tools for performing tasks against New Relic APIs", + "sections": [ + "New Relic CLI Reference", + "New Relic CLI commands", + "Options", + "Commands" + ], + "title": "New Relic CLI Reference", + "popularity": 1, + "tags": "new relic cli", + "external_id": "471ed214caaf80c70e14903ec71411e2a1c03888", + "image": "", + "url": "https://developer.newrelic.com/explore-docs/newrelic-cli/", + "published_at": "2020-08-13T01:49:30Z", + "updated_at": "2020-08-08T01:40:44Z", + "_index": "520d1d5d14cc8a32e600034b", + "_type": "520d1d5d14cc8a32e600034c", + "_score": 0.13377646, + "_version": null, + "_explanation": null, + "sort": null, + "highlight": { + "title": "New Relic CLI Reference", + "sections": "New Relic CLI Reference", + "info": "The command line tools for performing tasks against New Relic APIs", + "tags": "new relic cli", + "body": "New Relic CLI Reference The New Relic CLI enables integration of New Relic into your existing workflows. Be it fetching data from your laptop while troubleshooting an issue, or adding New Relic into your CI/CD pipeline. New Relic CLI commands Find details for the New Relic CLI command docs" + }, + "id": "5efa989ee7b9d2024b7bab97" + }, + { + "body": "Get started with the New Relic CLI 20 min Access the New Relic platform from the comfort of your terminal: you can use the New Relic CLI to manage entity tags, define workloads, record deployment markers, and much more. Our CLI has been designed for automating common tasks in your DevOps workflow. This guide walks you through the essentials of New Relic CLI, from install and configuration to basic usage. Before you begin For this guide you just need: Your New Relic personal API Key, which you can create from the Account settings of your New Relic account An instrumented application in your New Relic account Step 1 of 10 Install the New Relic CLI The New Relic CLI can be downloaded via Homebrew (macOS), Scoop (Windows), and Snapcraft (Linux). You can also download pre-built binaries for all platforms, including .deb and .rpm packages, and our Windows x64 .msi installer. Linux With Snapcraft installed, run: sudo snap install newrelic-cli macOS With Homebrew installed, run: brew install newrelic-cli Windows With Scoop installed, run: scoop bucket add newrelic-cli https://github.com/newrelic/newrelic-cli.git scoop install newrelic-cli Step 2 of 10 Create your New Relic CLI profile Now that you've installed the New Relic CLI, it's time to create your first profile. Profiles contain credentials and settings that you can apply to any CLI command, which is useful when switching between accounts. To create your first CLI profile, run the profiles add command. Note that you need to set the region of your New Relic account: use -r to set either us or eu (this is required). # Create the tutorial account for the US region newrelic profiles add -n tutorial --apiKey YOUR_NEW_RELIC_API_KEY -r YOUR_REGION # Set the profile as defaults newrelic profiles default -n tutorial Copy Step 3 of 10 Get your application details In this example, you are going to add tags to the application you've instrumented with New Relic. Tags are key-value pairs that can help you organize and filter your entities. An entity (for example, an application) can have a maximum of 100 key-value pairs tied to it. Before searching for your application using the New Relic CLI, write down or copy your Account ID and the name of your application in New Relic - you need both to find applications in the New Relic platform. Step 4 of 10 The New Relic CLI can retrieve your application details as a JSON object. To search for your APM application use the apm application search command. If you get an error, check that the account ID and application name you provided are correct. newrelic apm application search --accountId YOUR_ACCOUNT_ID --name NAME_OF_YOUR_APP Copy Step 5 of 10 If the account ID is valid, and the application name exists in your account, apm application search yields data similar to this example. When you've successfully searched for your application, look for the guid value. It's a unique identifier for your application. You should copy it or write it down. [ { accountId: YOUR_ACCOUNT_ID, applicationId: YOUR_APP_ID, domain: 'APM', entityType: 'APM_APPLICATION_ENTITY', guid: 'A_LONG_GUID', name: 'NAME_OF_YOUR_APP', permalink: 'https://one.newrelic.com/redirect/entity/A_LONG_GUID', reporting: true, type: 'APPLICATION', }, ]; Copy Step 6 of 10 Add a simple tag to your application Now that you have the GUID, you can point the New Relic CLI directly at your application. Adding a tag is the simplest way to try out the CLI capabilities (don't worry, tags can be deleted by using entity tags delete). Let's suppose that you want to add an environment tag to your application. Go ahead and add the dev:testing tag⁠ (or any other key-value pair) to your application using the entities tags create command. newrelic entity tags create --guid YOUR_APP_GUID --tag devkit:testing Copy Step 7 of 10 What if you want to add multiple tags? Tag sets come to the rescue! While tags are key-value pairs separated by colons, tag sets are comma separated lists of tags. For example: tag1:value1,tag2:value2 To add multiple tags at once to your application, modify and run the following snippet. newrelic entity tags create --guid YOUR_APP_GUID --tag tag1:test,tag2:test Copy Adding tags is an asynchronous operation: this means it could take a while for the tags to get created. Step 8 of 10 You've created and added some tags to your application, but how do you know they're there? You need to retrieve your application's tags. To retrieve your application's tags, use the entity tags get command. newrelic entity tags get --guid YOUR_APP_GUID All tags associated with your application are retrieved as a JSON array. [ { Key: 'tag1', Values: ['true'], }, { Key: 'tag2', Values: ['test'], }, { Key: 'tag3', Values: ['testing'], }, // ... ]; Copy Step 9 of 10 Bonus step: Create a deployment marker Deployments of applications often go wrong. Deployment markers are labels that, when attached to your application data, help you track deployments and troubleshoot what happened. To create a deployment marker, run the apm deployment create command using the same Application ID from your earlier search. newrelic apm deployment create --applicationId YOUR_APP_ID --revision $(git describe --tags --always) Copy Step 10 of 10 Notice that the JSON response includes the revision and timestamp of the deployment. This workflow could be built into a continuous integration or continuous deployment (CI/CD) system to help indicate changes in your application's behavior after deployments. Here is an example. { \"id\": 37075986, \"links\": { \"application\": 204261368 }, \"revision\": \"v1.2.4\", \"timestamp\": \"2020-03-04T15:11:44-08:00\", \"user\": \"Developer Toolkit Test Account\" } Copy Next steps Have a look at all the available commands. For example, you could create a New Relic workflow using workload create If you'd like to engage with other community members, visit our New Relic Explorers Hub page. We welcome feature requests or bug reports on GitHub.", + "type": "developer", + "document_type": "page", + "info": "Learn the essentials of the New Relic CLI, from install and configuration to basic usage.", + "sections": [ + "Get started with the New Relic CLI", + "Before you begin", + "Install the New Relic CLI", + "Linux", + "macOS", + "Windows", + "Create your New Relic CLI profile", + "Get your application details", + "Add a simple tag to your application", + "Bonus step: Create a deployment marker", + "Next steps" + ], + "title": "Get started with the New Relic CLI", + "popularity": 1, + "tags": [ + "api key", + "New Relic CLI", + "Tags", + "Entity", + "Deployment markers" + ], + "external_id": "531f2f3985bf64bb0dc92a642445887095048882", + "image": "", + "url": "https://developer.newrelic.com/automate-workflows/get-started-new-relic-cli/", + "published_at": "2020-08-13T01:49:30Z", + "updated_at": "2020-08-08T01:41:47Z", + "_index": "520d1d5d14cc8a32e600034b", + "_type": "520d1d5d14cc8a32e600034c", + "_score": 0.093906194, + "_version": null, + "_explanation": null, + "sort": null, + "highlight": { + "title": "Get started with the New Relic CLI", + "sections": "Create your New Relic CLI profile", + "info": "Learn the essentials of the New Relic CLI, from install and configuration to basic usage.", + "tags": "New Relic CLI", + "body": ". This guide walks you through the essentials of New Relic CLI, from install and configuration to basic usage. Before you begin For this guide you just need: Your New Relic personal API Key, which you can create from the Account settings of your New Relic account An instrumented application in your" + }, + "id": "5efa999c196a67c4e1766461" + }, + { + "body": "New Relic One CLI reference To build a New Relic One app, you must install the New Relic One CLI. The CLI helps you build, publish, and manage your New Relic app. We provide a variety of tools for building New Relic One apps, including the New Relic One CLI (command line interface). This page will explain how to use CLI commands to: Generate Nerdpack/Nerdlet templates Locally serve Nerdpacks (when developing) Publish and deploy Subscribe to Nerdpacks Add screenshots and metadata to the New Relic One Catalog Installing the New Relic One CLI From within New Relic, go to the Build your own application launcher and follow the instructions. This launcher will automatically generate an API key for the account you select, and give you the pre-populated commands to create a profile, generate your first \"Hello World\" app, and serve it locally. New Relic One CLI Commands This table provides descriptions for the New Relic One CLI commands. For more context, including usage and option details, click any individual command or the command category. For details on user permissions, see Authentication and permissions. For more on how to serve and publish your application, see our guide on Deploying your New Relic One app. Get started nr1 help Shows all nr1 commands or details about each command. nr1 update Updates to the latest version of the CLI. nr1 create Creates a new component from a template (Nerdpack, Nerdlet, launcher, or catalog). nr1 profiles Manages the profiles you use to run CLI commands. nr1 autocomplete Displays autocomplete installation instructions. nr1 nrql Fetches data from New Relic using NRQL (New Relic query language). Configure your CLI preferences nr1 config:set Sets a specific configuration value. nr1 config:get Shows a specific configuration. nr1 config:list Lists your configuration choices. nr1 config:delete Removes the value of a specific configuration. Set up your Nerdpacks nr1 nerdpack:clone Clones an open source Nerdpack from our GitHub repository. nr1 nerdpack:serve Serves your Nerdpack for testing and development purposes. nr1 nerdpack:uuid Shows or regenerates the UUID of a Nerdpack. nr1 nerdpack:publish Publishes your Nerdpack to New Relic. nr1 nerdpack:deploy Deploys a Nerdpack version to a specific channel. nr1 nerdpack:undeploy Undeploys a Nerdpack version from a specific channel. Manage your Nerdpack subscriptions nr1 subscription:set Subscribes your account to a Nerdpack and channel. nr1 subscription:list Lists all the Nerdpacks your account is subscribed to. nr1 subscription:unset Unsubscribes your account from a Nerdpack. Install and manage plugins nr1 plugins:install Installs a plugin into the CLI. nr1 plugins:link Links a plugin into the CLI for development. nr1 plugins:update Updates your installed plugins. nr1 plugins:uninstall Removes a plugin from the CLI. Manage catalog information nr1 catalog:info Shows the Nerdpack info stored in the catalog. nr1 catalog:submit Gathers and submits the catalog info on the current folder.", + "type": "developer", + "document_type": "page", + "info": "An overview of the CLI to help you build, deploy, and manage New Relic apps.", + "sections": [ + "New Relic One CLI reference", + "Installing the New Relic One CLI", + "New Relic One CLI Commands", + "Get started", + "Configure your CLI preferences", + "Set up your Nerdpacks", + "Manage your Nerdpack subscriptions", + "Install and manage plugins", + "Manage catalog information" + ], + "title": "New Relic One CLI reference", + "popularity": 1, + "tags": [ + "New Relic One app", + "nerdpack commands" + ], + "external_id": "858339a44ead21c83257778ce60b4c352cd30d3b", + "image": "https://developer.newrelic.com/static/2c6d337608b38a3312b4fc740afe6167/7272b/developercenter.png", + "url": "https://developer.newrelic.com/explore-docs/nr1-cli/", + "published_at": "2020-08-13T01:50:34Z", + "updated_at": "2020-08-04T01:41:46Z", + "_index": "520d1d5d14cc8a32e600034b", + "_type": "520d1d5d14cc8a32e600034c", + "_score": 0.08688526, + "_version": null, + "_explanation": null, + "sort": null, + "highlight": { + "title": "New Relic One CLI reference", + "sections": "New Relic One CLI reference", + "info": "An overview of the CLI to help you build, deploy, and manage New Relic apps.", + "tags": "New Relic One app", + "body": " application launcher and follow the instructions. This launcher will automatically generate an API key for the account you select, and give you the pre-populated commands to create a profile, generate your first "Hello World" app, and serve it locally. New Relic One CLI Commands This table provides" + }, + "id": "5efa989e28ccbc535a307dd0" + }, + { + "body": "Products & Pricing Solutions Help Center About LEARN Docs Build on New Relic Explore open source projects Training GET HELP Community forum Global technical support Expert services The Platform New Relic One Capabilities Programmability Infinite Tracing Integrations Security Alerts New Relic for Android and iOS Insights Manage Complex Systems Logs Metrics and Traces Applied Intelligence Serverless Improve Client-side Experiences Browser Mobile Synthetics Build and Run Better Software APM Infrastructure BY TOPIC DevOps Cloud Adoption Native Digital Customer Experience BY INDUSTRY E-Commerce and Retail Media Public Sector BY TECHNOLOGY Amazon Web Services Pivotal Cloud Foundry Microsoft Azure Google Cloud Platform Kubernetes Our Customers Over 17,000 customers love New Relic, from Fortune 500 enterprises to small businesses around the globe. Our Blog The latest news, tips, and insights from the world of New Relic and digital intelligence. Our Company About Us Leadership Meetups and Events Resources Investor Relations Newsroom Partner Program Contact Us Determine who created a custom event type Support: Telemetry Data Platform (TDP) Dashboards insights mhernandez1 May 17, 2018, 3:04pm #1 Is there a way to query who created a custom event type or do I need to create a support ticket? hross May 17, 2018, 4:40pm #2 Hey there @mhernandez1 - welcome back to the Explorers Hub! There is no way to do this through the New Relic UI, so this is a feature idea. We’re not certain that we can, but it’s possible that a support engineer could extract this data. If you want to give that a shot, I can create a ticket from this post. Please just let me know. 1 Like Home Categories FAQ/Guidelines Terms of Service Privacy Policy Powered by Discourse, best viewed with JavaScript enabled", + "type": "forum", + "info": "", + "sections": [ + "Determine who created a custom event type" + ], + "title": "Determine who created a custom event type - Dashboards - New Relic Explorers Hub", + "popularity": 1, + "external_id": "311375cb1610f0f082cd9c6fd2960afdc1f5e620", + "image": "https://nr-production-discourse.s3.amazonaws.com/original/2X/f/f6107441676f77294613ec559377aa90da19dd52.png", + "url": "https://discuss.newrelic.com/t/determine-who-created-a-custom-event-type/55789", + "published_at": "2020-08-11T00:49:29Z", + "updated_at": "2020-07-31T14:01:10Z", + "_index": "520d1d5d14cc8a32e600034b", + "_type": "520d1d5d14cc8a32e600034c", + "_score": 0.060816064, + "_version": null, + "_explanation": null, + "sort": null, + "highlight": { + "title": "Determine who created a custom event type - Dashboards - New Relic Explorers Hub", + "sections": "Determine who created a custom event type", + "body": " from the world of New Relic and digital intelligence. Our Company About Us Leadership Meetups and Events Resources Investor Relations Newsroom Partner Program Contact Us Determine who created a custom event type Support: Telemetry Data Platform (TDP) Dashboards insights mhernandez1 May 17, 2018, 3" + }, + "id": "5b0011d88e9c0f01cc598512" + }, { - "url": "https://developer.newrelic.com/explore-docs/query-and-store-data", - "q": "Query and store data", - "search_fields": { - "page": [ - "tags^10", - "body^5", - "title^1.5", - "*" - ] - }, - "filters": { - "page": { - "url": [ - "!https://developer.newrelic.com/explore-docs/query-and-store-data/", - "!https://developer.newrelic.com/explore-docs/query-and-store-data", - "!https://developer.newrelic.com/build-tools/new-relic-one-applications/query-and-store-data/", - "!https://developer.newrelic.com/build-tools/new-relic-one-applications/query-and-store-data" - ], - "document_type": [ - "!views_page_menu", - "!term_page_api_menu", - "!term_page_landing_page" - ] - } - }, - "engine_key": "Ad9HfGjDw4GRkcmJjUut", - "per_page": 5 + "body": "Products & Pricing Solutions Help Center About LEARN Docs Build on New Relic Explore open source projects Training GET HELP Community forum Global technical support Expert services The Platform New Relic One Capabilities Programmability Infinite Tracing Integrations Security Alerts New Relic for Android and iOS Insights Manage Complex Systems Logs Metrics and Traces Applied Intelligence Serverless Improve Client-side Experiences Browser Mobile Synthetics Build and Run Better Software APM Infrastructure BY TOPIC DevOps Cloud Adoption Native Digital Customer Experience BY INDUSTRY E-Commerce and Retail Media Public Sector BY TECHNOLOGY Amazon Web Services Pivotal Cloud Foundry Microsoft Azure Google Cloud Platform Kubernetes Our Customers Over 17,000 customers love New Relic, from Fortune 500 enterprises to small businesses around the globe. Our Blog The latest news, tips, and insights from the world of New Relic and digital intelligence. Our Company About Us Leadership Meetups and Events Resources Investor Relations Newsroom Partner Program Contact Us Monitor NR1 App with Browser Agent Build on New Relic Nerdpacks browser nerdpack alex.plaza.gonzalez July 30, 2020, 4:21am #1 Hi, I’m attempting to install the New Relic Browser agent on a New Relic One application. I downloaded the agent script and uploaded in a publicly accessible S3 bucket and then tried to use the following to create the