Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into snyk-upgrade-eab5bee4…
Browse files Browse the repository at this point in the history
…071d097d432864e36ca2590f
  • Loading branch information
jerelmiller committed Aug 10, 2020
2 parents 5738b4d + e2ac822 commit 4e4eeb2
Show file tree
Hide file tree
Showing 22 changed files with 1,181 additions and 1,000 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
## [1.10.2](https://github.com/newrelic/developer-website/compare/v1.10.1...v1.10.2) (2020-08-10)


### Bug Fixes

* allow mobile views on developer champion page to have single column layout before applying 2 and 3 columns grid layouts ([2f5cc23](https://github.com/newrelic/developer-website/commit/2f5cc23d183d34c386174763a0731d4b7abcd103))
* ensure two column layout only applies to wide viewports on podcast page. limit size of podcast logo to avoid very large logo size on wider viewports ([6c28f6d](https://github.com/newrelic/developer-website/commit/6c28f6db7d9da494908c7a7279d3a49408d44810))

## [1.10.1](https://github.com/newrelic/developer-website/compare/v1.10.0...v1.10.1) (2020-08-07)


### Bug Fixes

* remove global height from text inputs ([7a99cdd](https://github.com/newrelic/developer-website/commit/7a99cdd0c21132590f332cd7665e3c59d743dea1))
* upgrade to latest gatsby theme ([84f6616](https://github.com/newrelic/developer-website/commit/84f6616be323bcfe89183052eb6c9bb20a4cde7c))

# [1.10.0](https://github.com/newrelic/developer-website/compare/v1.9.3...v1.10.0) (2020-08-06)


Expand Down
290 changes: 148 additions & 142 deletions package-lock.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"name": "developer-website",
"private": true,
"version": "1.10.0",
"version": "1.10.2",
"dependencies": {
"@emotion/core": "^10.0.28",
"@emotion/styled": "^10.0.27",
"@mdx-js/mdx": "^1.6.7",
"@mdx-js/mdx": "^1.6.10",
"@mdx-js/react": "^1.6.10",
"@newrelic/gatsby-theme-newrelic": "^1.6.0",
"classnames": "^2.2.6",
"date-fns": "^2.14.0",
"eslint-plugin-react-hooks": "^4.0.7",
"eslint-plugin-react-hooks": "^4.0.8",
"gatsby": "^2.24.2",
"gatsby-image": "^2.4.13",
"gatsby-plugin-emotion": "^4.3.10",
"gatsby-plugin-layout": "^1.3.10",
"gatsby-plugin-manifest": "^2.4.18",
"gatsby-plugin-mdx": "^1.2.25",
"gatsby-plugin-mdx": "^1.2.26",
"gatsby-plugin-meta-redirect": "^1.1.1",
"gatsby-plugin-offline": "^3.2.17",
"gatsby-plugin-react-helmet": "^3.3.10",
Expand All @@ -33,7 +33,7 @@
"js-cookie": "^2.2.1",
"node-sass": "^4.14.1",
"prism-react-renderer": "^1.1.1",
"prismjs": "^1.20.0",
"prismjs": "^1.21.0",
"prop-types": "^15.7.2",
"react": "^16.12.0",
"react-dom": "^16.12.0",
Expand Down
5 changes: 5 additions & 0 deletions src/components/RelatedContentModules/Resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ const SITE_TAGS = {
developer: 'https://developer.newrelic.com',
'open source': 'https://opensource.newrelic.com',
docs: 'https://docs.newrelic.com',
github: 'https://github.com',
terraform: 'https://terraform.io',
kubernetes: 'https://kubernetes.io',
youtube: 'https://youtube.com',
discuss: 'https://discuss.newrelic.com',
};

const findTag = (resource) =>
Expand Down
62 changes: 30 additions & 32 deletions src/markdown-pages/automate-workflows/5-mins-tag-resources.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ description: 'Add tags to applications you instrument for easier filtering and o
tileShorthand:
title: 'Quickly tag resources'
description: 'Add tags to apps for easy filtering'
resources:
- title: 'Understand the Entity Explorer'
url: https://youtube.com/watch?v=IGZQup8ZEmE
- title: 'Use tags to organize and group what you monitor'
url: https://docs.newrelic.com/docs/new-relic-one/use-new-relic-one/core-concepts/tagging-use-tags-organize-group-what-you-monitor
- title: 'New Relic CLI Repo'
url: https://github.com/newrelic/newrelic-cli
---

<Intro>
Expand All @@ -28,28 +35,28 @@ For this guide you need your New Relic [personal API Key](https://docs.newrelic.

You can download the New Relic CLI via [Homebrew](https://brew.sh/) (macOS), [Scoop](https://scoop.sh/) (Windows), and [Snapcraft](https://snapcraft.io/) (Linux). You can also download [pre-built binaries](https://github.com/newrelic/newrelic-cli/releases) for all platforms, including .deb and .rpm packages, and our Windows x64 .msi installer.

* #### Linux
- #### Linux

With [Snapcraft](https://snapcraft.io/) installed, run:
With [Snapcraft](https://snapcraft.io/) installed, run:

`sudo snap install newrelic-cli`
`sudo snap install newrelic-cli`

* #### macOS
- #### macOS

With [Homebrew](https://brew.sh/) installed, run:
With [Homebrew](https://brew.sh/) installed, run:

`brew install newrelic-cli`
`brew install newrelic-cli`

* #### Windows
- #### Windows

With [Scoop](https://scoop.sh/) installed, run:
With [Scoop](https://scoop.sh/) installed, run:

`scoop bucket add newrelic-cli https://github.com/newrelic/newrelic-cli.git`<br />
`scoop install newrelic-cli`
`scoop bucket add newrelic-cli https://github.com/newrelic/newrelic-cli.git`<br />
`scoop install newrelic-cli`

</Step><Step>

## Create your New Relic CLI profile
## Create your New Relic CLI profile

New Relic CLI profiles contain credentials and settings that you can apply to any CLI command.

Expand All @@ -72,7 +79,7 @@ In the terminal, run [`entity search`](https://github.com/newrelic/newrelic-cli/

```bash lineNumbers=false
# Change the `name` to match any of your existing entities
newrelic entity search --name "test"
newrelic entity search --name "test"
```

</Step><Step>
Expand All @@ -92,24 +99,29 @@ Select an entity from the results and look for its `guid` value; the `guid` is t
"type": "WORKLOAD"
},
```

</Step><Step>

## Add tags and tag lists to your entity

With your entity `guid`, you can add tags right away. You can do so by invoking the [`entities tags create`](https://github.com/newrelic/newrelic-cli/blob/master/docs/cli/newrelic_entity_tags_create.md) command.
With your entity `guid`, you can add tags right away. You can do so by invoking the [`entities tags create`](https://github.com/newrelic/newrelic-cli/blob/master/docs/cli/newrelic_entity_tags_create.md) command.

What if you want to add multiple tags? You can use tag sets for that: While tags are key-value pairs separated by colons, tag sets are comma-separated lists of tags. For example:

`tag1:value1,tag2:value2`

<Important>Adding tags is an asynchronous operation: it could take a little while for the tags to get created.</Important>
<Important>
Adding tags is an asynchronous operation: it could take a little while for the
tags to get created.
</Important>

```bash lineNumbers=false
# Adding a single tag
newrelic entity tags create --guid GUID --tag key:value
# Adding multiple tags
newrelic entity tags create --guid GUID --tag tag1:test,tag2:test
```

</Step><Step>

## Check that the tags are there
Expand All @@ -124,42 +136,28 @@ Tags can be deleted at any time by invoking the [`entity tags delete`](https://g

</Tip>


```json lineNumbers=false
[
{
"Key": "tag1",
"Values": [
"true"
]
"Values": ["true"]
},
{
"Key": "tag2",
"Values": [
"test"
]
"Values": ["test"]
},
{
"Key": "tag3",
"Values": [
"testing"
]
"Values": ["testing"]
}
// ...
]
```

</Step></Steps>

## Next steps

Have a look at [all the New Relic CLI commands](https://github.com/newrelic/newrelic-cli/blob/master/docs/cli/newrelic.md). For example, you could create a [New Relic workflow](https://docs.newrelic.com/docs/new-relic-one/use-new-relic-one/core-concepts/new-relic-one-workloads-isolate-resolve-incidents-faster) using [`workload create`](https://github.com/newrelic/newrelic-cli/blob/master/docs/cli/newrelic_workload_create.md).

If you'd like to engage with other community members, visit our [New Relic Explorers Hub](https://discuss.newrelic.com/c/build-on-new-relic/developer-toolkit) page. We welcome feature requests or bug reports on [GitHub](https://github.com/newrelic/newrelic-cli).

## Related info

- [Understanding Entity Explorer (Video)](https://www.youtube.com/watch?v=IGZQup8ZEmE)
- [Tagging: Use tags to organize and group what you monitor](https://docs.newrelic.com/docs/new-relic-one/use-new-relic-one/core-concepts/tagging-use-tags-organize-group-what-you-monitor)
- [New Relic CLI commands reference](https://github.com/newrelic/newrelic-cli/blob/master/docs/cli/newrelic.md)
- [New Relic CLI repository on GitHub](https://github.com/newrelic/newrelic-cli)

Loading

0 comments on commit 4e4eeb2

Please sign in to comment.