Skip to content

Commit

Permalink
Merge branch 'master' into cayla/various-search-bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Cayla Hamann committed Jun 25, 2020
2 parents 4651647 + 7c0c959 commit 4203018
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 8 deletions.
2 changes: 2 additions & 0 deletions src/markdown-pages/automate-workflows/workflow-automation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ path: '/automate-workflows/workflow-automation'
title: 'Orchestrate observability workflows'
description: 'Tools to automate your observability ecosystem'
template: 'GuideTemplate'
redirects:
- /use-cases/workflow-automation
---

## Define and automate observability
Expand Down
2 changes: 1 addition & 1 deletion src/markdown-pages/collect-data-from-any-source.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: 'Collect data from any source'
template: 'GuideTemplate'
description: 'Open source emitters. APIs. New Relic agents. Get data from anywhere. '
redirects:
- /build-tools/tools-for-ingesting-data/custom-attributes
- /use-cases/collect-data-from-any-source
---

<Intro>
Expand Down
17 changes: 10 additions & 7 deletions src/markdown-pages/components/add-custom-attributes.mdx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---

path: '/collect-data/custom-attributes'
duration: ''
title: 'Add custom attributes to your New Relic data'
template: 'GuideTemplate'
description: 'Add metadata for more detailed analysis'
redirects:
- /build-tools/tools-for-ingesting-data/custom-attributes
---

<Intro>
Expand All @@ -14,20 +14,23 @@ There are countless filters and pivots you might want to apply to your data. By
You can add a `userid` custom attribute to your APM-reported data (`Transaction` and `TransactionError events`) with the Java APM agent's API.


```NewRelic.addCustomParameter("userid", userId);
```
NewRelic.addCustomParameter("userid", userId);
```


Once added, you can run a NRQL query that uses the 'userid' custom attribute.

```-- Get a count of errors experienced by a single filtered userid faceted by date and error message
```
-- Get a count of errors experienced by a single filtered userid faceted by date and error message
SELECT count(*) FROM TransactionError WHERE userid = '616e6472-6577-7340-7961-686f6f2e636f' FACET dateOf(timestamp), `error.message` SINCE 1 week ago
```
<a href="https://developer.newrelic.com/technology/nrql">Learn more about NRQL/a>

Once you have added a custom attribute like 'userid', you can use it to filter and facet your NRQL queries.
[Learn more about NRQL](https://developer.newrelic.com/technology/nrql)

Once you have added a custom attribute like 'userid', you can use it to filter and facet your NRQL queries.

<img src="https://developer.newrelic.com/content/dam/component-assets/developer/d09-screencap/UC2-sec1-query.png">
![UC2-sec1-query.png](https://developer.newrelic.com/content/dam/component-assets/developer/d09-screencap/UC2-sec1-query.png)

</Intro>

Expand Down
2 changes: 2 additions & 0 deletions src/markdown-pages/custom-events.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ duration: '5 min'
title: 'Create custom New Relic events'
template: 'GuideTemplate'
description: 'Create custom New Relic events'
redirects:
- /build-tools/tools-for-ingesting-data/custom-events
---

## _Measure what you need by creating your own event types._
Expand Down
2 changes: 2 additions & 0 deletions src/markdown-pages/nerdstorage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ title: 'Intro to NerdStorage'
duration: '30 min'
template: 'GuideTemplate'
description: 'Intro to NerdStorage on New Relic One'
redirects:
- /build-tools/new-relic-one-applications/nerdstorage
---

## Use NerdStorage in your apps
Expand Down
2 changes: 2 additions & 0 deletions src/markdown-pages/publish-deploy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ duration: '20 min'
title: 'Serve, publish, and deploy your New Relic One app'
template: 'GuideTemplate'
description: 'Start sharing and using the custom New Relic One apps you build.'
redirects:
- /build-tools/new-relic-one-applications/publish-deploy
---

<Intro>
Expand Down
2 changes: 2 additions & 0 deletions src/markdown-pages/query-and-store-data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ duration: '10 min'
title: 'Query and store data'
template: 'GuideTemplate'
description: 'Reference guide for SDK query components using NerdGraph'
redirects:
- /build-tools/new-relic-one-applications/query-and-store-data
---

<Intro>
Expand Down
2 changes: 2 additions & 0 deletions src/markdown-pages/query-data-nrql.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ duration: '10 min'
title: 'Query data with NRQL'
template: 'GuideTemplate'
description: 'Query default event data as well as custom events and attributes with our powerful, SQL-like query language. Start querying now.'
redirects:
- /technology/nrql
---

<Intro>
Expand Down
2 changes: 2 additions & 0 deletions src/markdown-pages/reference/intro-to-sdk.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ path: '/reference/intro-to-sdk'
title: 'Intro to New Relic One API components'
template: 'GuideTemplate'
description: 'Intro to New Relic One API components'
redirects:
- /build-tools/new-relic-one-applications/intro-to-sdk
---

<Intro>
Expand Down
2 changes: 2 additions & 0 deletions src/markdown-pages/reference/nr1-cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ path: '/reference/nr1-cli'
title: 'New Relic One CLI'
template: 'GuideTemplate'
description: 'An overview of the CLI to help you build, deploy, and manage New Relic apps.'
redirects:
- /build-tools/new-relic-one-applications/cli
---

<Intro>
Expand Down

0 comments on commit 4203018

Please sign in to comment.