Skip to content

Latest commit

 

History

History
31 lines (16 loc) · 1.47 KB

Part_5-Bonus_round_CLI.md

File metadata and controls

31 lines (16 loc) · 1.47 KB

Bonus round! Use the CLI for common New Relic use-cases

The New Relic is a great way to do some common actions on the New Relic platform like setting a deployment marker, pushing custom events, or getting data with NRQL. The advantage of using the CLI is that it's a lot easier to use than a complicated curl command, and the CLI team does it best to keep all the commands working even when we have API changes.

For more information about our CLI check out the documentation: https://developer.newrelic.com/explore-docs/newrelic-cli/

Below is a list of use-cases you will be able to solve with the CLI. We want you to create an example command for each and add it to this Google form. We will check each of the commands, and the person with the most correct answers will get some exclusive swag.

Google form: https://forms.gle/1K5SL2WGsrko8xxD9

Use-cases

  1. Add a deployment marker for an application (APM)

  2. Get list of all deployment markers for an application (APM)

  3. Troubleshoot a New Relic installation (Infrastructure)

  4. Get list of tags for a New Relic entity

  5. Run a NRQL query and output the data as YAML

  6. Create a custom event with EventType SKORules and a couple of attributes of your choice.

  7. Create a New Relic Workload

  8. Delete the New Relic Workload you've created

  9. Convert a dashboard json to Terraform HCL

  10. (Very difficult) Get a dashboard from New Relic, and give the titles of all the widgets using ONLY the CLI