From 0ef77faf8ea3d9bf4adfcc6a8755bc93ec60cf28 Mon Sep 17 00:00:00 2001 From: mmfred Date: Fri, 26 Jun 2020 11:36:07 -0700 Subject: [PATCH 1/2] Moved files into their respective folders Moved files into folders for each high-level area of the IA for better organization and tracking. --- .../5-min-tag-resources.mdx | 0 .../get-started-new-relic-cli.mdx | 0 .../add-nerdgraphquery-guide.mdx | 0 .../add-time-picker-guide.mdx | 0 .../howto-use-nrone-table-components.mdx | 0 .../map-pageviews-by-region.mdx | 0 .../{ => build-apps}/publish-deploy.mdx | 0 .../collect-data/add-custom-attributes.mdx | 37 +++++++++++++++++++ .../collect-data-from-any-source.mdx | 0 .../{ => collect-data}/custom-events.mdx | 0 .../get-started-nerdgraph-api-explorer.mdx | 0 .../{ => collect-data}/query-data-nrql.mdx | 0 .../intro-to-sdk.mdx | 0 .../nerdpack-file-structure.mdx | 0 .../{ => explore-docs}/nerdstorage.mdx | 0 .../{reference => explore-docs}/nr1-cli.mdx | 0 .../query-and-store-data.mdx | 0 17 files changed, 37 insertions(+) rename src/markdown-pages/{ => automate-workflows}/5-min-tag-resources.mdx (100%) rename src/markdown-pages/{ => automate-workflows}/get-started-new-relic-cli.mdx (100%) rename src/markdown-pages/{ => build-apps}/add-nerdgraphquery-guide.mdx (100%) rename src/markdown-pages/{ => build-apps}/add-time-picker-guide.mdx (100%) rename src/markdown-pages/{ => build-apps}/howto-use-nrone-table-components.mdx (100%) rename src/markdown-pages/{ => build-apps}/map-pageviews-by-region.mdx (100%) rename src/markdown-pages/{ => build-apps}/publish-deploy.mdx (100%) create mode 100644 src/markdown-pages/collect-data/add-custom-attributes.mdx rename src/markdown-pages/{ => collect-data}/collect-data-from-any-source.mdx (100%) rename src/markdown-pages/{ => collect-data}/custom-events.mdx (100%) rename src/markdown-pages/{query-data => collect-data}/get-started-nerdgraph-api-explorer.mdx (100%) rename src/markdown-pages/{ => collect-data}/query-data-nrql.mdx (100%) rename src/markdown-pages/{reference => explore-docs}/intro-to-sdk.mdx (100%) rename src/markdown-pages/{reference => explore-docs}/nerdpack-file-structure.mdx (100%) rename src/markdown-pages/{ => explore-docs}/nerdstorage.mdx (100%) rename src/markdown-pages/{reference => explore-docs}/nr1-cli.mdx (100%) rename src/markdown-pages/{ => explore-docs}/query-and-store-data.mdx (100%) diff --git a/src/markdown-pages/5-min-tag-resources.mdx b/src/markdown-pages/automate-workflows/5-min-tag-resources.mdx similarity index 100% rename from src/markdown-pages/5-min-tag-resources.mdx rename to src/markdown-pages/automate-workflows/5-min-tag-resources.mdx diff --git a/src/markdown-pages/get-started-new-relic-cli.mdx b/src/markdown-pages/automate-workflows/get-started-new-relic-cli.mdx similarity index 100% rename from src/markdown-pages/get-started-new-relic-cli.mdx rename to src/markdown-pages/automate-workflows/get-started-new-relic-cli.mdx diff --git a/src/markdown-pages/add-nerdgraphquery-guide.mdx b/src/markdown-pages/build-apps/add-nerdgraphquery-guide.mdx similarity index 100% rename from src/markdown-pages/add-nerdgraphquery-guide.mdx rename to src/markdown-pages/build-apps/add-nerdgraphquery-guide.mdx diff --git a/src/markdown-pages/add-time-picker-guide.mdx b/src/markdown-pages/build-apps/add-time-picker-guide.mdx similarity index 100% rename from src/markdown-pages/add-time-picker-guide.mdx rename to src/markdown-pages/build-apps/add-time-picker-guide.mdx diff --git a/src/markdown-pages/howto-use-nrone-table-components.mdx b/src/markdown-pages/build-apps/howto-use-nrone-table-components.mdx similarity index 100% rename from src/markdown-pages/howto-use-nrone-table-components.mdx rename to src/markdown-pages/build-apps/howto-use-nrone-table-components.mdx diff --git a/src/markdown-pages/map-pageviews-by-region.mdx b/src/markdown-pages/build-apps/map-pageviews-by-region.mdx similarity index 100% rename from src/markdown-pages/map-pageviews-by-region.mdx rename to src/markdown-pages/build-apps/map-pageviews-by-region.mdx diff --git a/src/markdown-pages/publish-deploy.mdx b/src/markdown-pages/build-apps/publish-deploy.mdx similarity index 100% rename from src/markdown-pages/publish-deploy.mdx rename to src/markdown-pages/build-apps/publish-deploy.mdx diff --git a/src/markdown-pages/collect-data/add-custom-attributes.mdx b/src/markdown-pages/collect-data/add-custom-attributes.mdx new file mode 100644 index 000000000..4958747e8 --- /dev/null +++ b/src/markdown-pages/collect-data/add-custom-attributes.mdx @@ -0,0 +1,37 @@ +--- + +path: '/collect-data/custom-attributes' +duration: '' +title: 'Add custom attributes to your New Relic data' +template: 'GuideTemplate' +description: 'Add metadata for more detailed analysis' +--- + + + +There are countless filters and pivots you might want to apply to your data. By adding custom attributes to your data, you can see beyond your code and analyze your business in-depth. + +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); +``` + + +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 +SELECT count(*) FROM TransactionError WHERE userid = '616e6472-6577-7340-7961-686f6f2e636f' FACET dateOf(timestamp), `error.message` SINCE 1 week ago +``` +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. + + + + + + +### Related Info + +For more information, see [New Relic APM: Report custom attributes](https://docs.newrelic.com/docs/insights/insights-data-sources/custom-data/add-custom-attributes-new-relic-apm-data) diff --git a/src/markdown-pages/collect-data-from-any-source.mdx b/src/markdown-pages/collect-data/collect-data-from-any-source.mdx similarity index 100% rename from src/markdown-pages/collect-data-from-any-source.mdx rename to src/markdown-pages/collect-data/collect-data-from-any-source.mdx diff --git a/src/markdown-pages/custom-events.mdx b/src/markdown-pages/collect-data/custom-events.mdx similarity index 100% rename from src/markdown-pages/custom-events.mdx rename to src/markdown-pages/collect-data/custom-events.mdx diff --git a/src/markdown-pages/query-data/get-started-nerdgraph-api-explorer.mdx b/src/markdown-pages/collect-data/get-started-nerdgraph-api-explorer.mdx similarity index 100% rename from src/markdown-pages/query-data/get-started-nerdgraph-api-explorer.mdx rename to src/markdown-pages/collect-data/get-started-nerdgraph-api-explorer.mdx diff --git a/src/markdown-pages/query-data-nrql.mdx b/src/markdown-pages/collect-data/query-data-nrql.mdx similarity index 100% rename from src/markdown-pages/query-data-nrql.mdx rename to src/markdown-pages/collect-data/query-data-nrql.mdx diff --git a/src/markdown-pages/reference/intro-to-sdk.mdx b/src/markdown-pages/explore-docs/intro-to-sdk.mdx similarity index 100% rename from src/markdown-pages/reference/intro-to-sdk.mdx rename to src/markdown-pages/explore-docs/intro-to-sdk.mdx diff --git a/src/markdown-pages/reference/nerdpack-file-structure.mdx b/src/markdown-pages/explore-docs/nerdpack-file-structure.mdx similarity index 100% rename from src/markdown-pages/reference/nerdpack-file-structure.mdx rename to src/markdown-pages/explore-docs/nerdpack-file-structure.mdx diff --git a/src/markdown-pages/nerdstorage.mdx b/src/markdown-pages/explore-docs/nerdstorage.mdx similarity index 100% rename from src/markdown-pages/nerdstorage.mdx rename to src/markdown-pages/explore-docs/nerdstorage.mdx diff --git a/src/markdown-pages/reference/nr1-cli.mdx b/src/markdown-pages/explore-docs/nr1-cli.mdx similarity index 100% rename from src/markdown-pages/reference/nr1-cli.mdx rename to src/markdown-pages/explore-docs/nr1-cli.mdx diff --git a/src/markdown-pages/query-and-store-data.mdx b/src/markdown-pages/explore-docs/query-and-store-data.mdx similarity index 100% rename from src/markdown-pages/query-and-store-data.mdx rename to src/markdown-pages/explore-docs/query-and-store-data.mdx From 13e0695d4a9b4a6c0ea2d9ff9e351ae724b7700d Mon Sep 17 00:00:00 2001 From: mmfred Date: Fri, 26 Jun 2020 11:52:27 -0700 Subject: [PATCH 2/2] Adding updated version of custom attributes file Moving newer version of custom attributes file to the collect data folder. --- .../collect-data/add-custom-attributes.mdx | 17 ++++---- .../components/add-custom-attributes.mdx | 40 ------------------- 2 files changed, 10 insertions(+), 47 deletions(-) delete mode 100644 src/markdown-pages/components/add-custom-attributes.mdx diff --git a/src/markdown-pages/collect-data/add-custom-attributes.mdx b/src/markdown-pages/collect-data/add-custom-attributes.mdx index 4958747e8..c3d25af42 100644 --- a/src/markdown-pages/collect-data/add-custom-attributes.mdx +++ b/src/markdown-pages/collect-data/add-custom-attributes.mdx @@ -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 --- @@ -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 ``` -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. - +![UC2-sec1-query.png](https://developer.newrelic.com/content/dam/component-assets/developer/d09-screencap/UC2-sec1-query.png) diff --git a/src/markdown-pages/components/add-custom-attributes.mdx b/src/markdown-pages/components/add-custom-attributes.mdx deleted file mode 100644 index c3d25af42..000000000 --- a/src/markdown-pages/components/add-custom-attributes.mdx +++ /dev/null @@ -1,40 +0,0 @@ ---- -path: '/collect-data/custom-attributes' -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 ---- - - - -There are countless filters and pivots you might want to apply to your data. By adding custom attributes to your data, you can see beyond your code and analyze your business in-depth. - -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); -``` - - -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 -SELECT count(*) FROM TransactionError WHERE userid = '616e6472-6577-7340-7961-686f6f2e636f' FACET dateOf(timestamp), `error.message` SINCE 1 week ago -``` - -[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. - -![UC2-sec1-query.png](https://developer.newrelic.com/content/dam/component-assets/developer/d09-screencap/UC2-sec1-query.png) - - - - -### Related Info - -For more information, see [New Relic APM: Report custom attributes](https://docs.newrelic.com/docs/insights/insights-data-sources/custom-data/add-custom-attributes-new-relic-apm-data)