From 6a5b7c49a96930d9518ff300b068d90d8a3cb50b Mon Sep 17 00:00:00 2001 From: Amber Sistla Date: Mon, 16 Sep 2024 09:50:38 -0700 Subject: [PATCH 01/61] Create agent-overhead-reduction-tips.mdx INI settings to reduce overhead in PHP agent. --- .../agent-overhead-reduction-tips.mdx | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 src/content/docs/apm/agents/php-agent/troubleshooting/agent-overhead-reduction-tips.mdx diff --git a/src/content/docs/apm/agents/php-agent/troubleshooting/agent-overhead-reduction-tips.mdx b/src/content/docs/apm/agents/php-agent/troubleshooting/agent-overhead-reduction-tips.mdx new file mode 100644 index 00000000000..8856ee4979d --- /dev/null +++ b/src/content/docs/apm/agents/php-agent/troubleshooting/agent-overhead-reduction-tips.mdx @@ -0,0 +1,44 @@ +--- +title: PHP Agent overhead reduction tips +type: troubleshooting +tags: + - Agents + - PHP agent + - Troubleshooting +metaDescription: Agent settings to decrease overhead. +freshnessValidatedDate: never +--- + +## Problem + +Using the New Relic PHP agent results in overhead. + +## Explanation + +Overhead is an expected side effect of monitoring and reporting on software. Our engineers aim to minimize this, but your experience may differ quite a lot, depending on how you're using the agent. If you find that you are experiencing unexpected overhead, there are are various settings in the INI that can help reduce it. + +## INI Settings +Performance settings that can reduce overhead depending on your agent usage. + +1. reduce [newrelic.span_events.max_samples_stored](https://docs.newrelic.com/docs/apm/agents/php-agent/configuration/php-agent-configuration/#inivar-span-events-max-samples-stored) + +2. disable [code level metrics](https://docs.newrelic.com/docs/apm/agents/php-agent/configuration/php-agent-configuration/#inivar-code-level-metrics-enabled) + +3. disable [logging](https://docs.newrelic.com/docs/apm/agents/php-agent/configuration/php-agent-configuration/#log-forwarding) + +4. set [newrelic.transaction_tracer.max_segments_web](https://docs.newrelic.com/docs/apm/agents/php-agent/configuration/php-agent-configuration/#inivar-tt-maxsegweb) and/or [newrelic.transaction_tracer.max_segments_cli](https://docs.newrelic.com/docs/apm/agents/php-agent/configuration/php-agent-configuration/#inivar-tt-maxsegcli) >= 1 + +5. set [newrelic.transaction_tracer.detail](https://docs.newrelic.com/docs/apm/agents/php-agent/configuration/php-agent-configuration/#inivar-tt-detail) = 0 + +6. [newrelic.transaction_tracer.enabled](https://docs.newrelic.com/docs/agents/php-agent/configuration/php-agent-configuration#inivar-tt-enabled) = false + +7. increase the [transaction tracer threshold](https://docs.newrelic.com/docs/agents/php-agent/configuration/php-agent-configuration#inivar-tt-threshold) by setting newrelic.transaction_tracer.threshold = higher value + +8. [newrelic.transaction_tracer.explain_enabled](https://docs.newrelic.com/docs/agents/php-agent/configuration/php-agent-configuration#inivar-tt-explain-enabled) = false + +9. don't trace slow SQL statements by setting [newrelic.transaction_tracer.slow_sql](https://docs.newrelic.com/docs/agents/php-agent/configuration/php-agent-configuration#inivar-tt-slowsql) = false + + +## Other overhead considerations +A non-performant clocksource can affect the agent which checks the time for every span. Please ensure you are using an appropriate [clocksource](https://forum.newrelic.com/s/hubtopic/aAX8W0000008a7rWAA/relic-solution-php-agent-cpu-overhead-tips). +Fargate is affected by clocksource and is known to cause additional [overhead](https://docs.newrelic.com/docs/apm/agents/php-agent/troubleshooting/fargate-nitro-clock-performance-impact/). From cf53c26032445a370fbd5703c24ec0af756797e2 Mon Sep 17 00:00:00 2001 From: Paolo Gallina Date: Mon, 30 Sep 2024 12:57:18 +0200 Subject: [PATCH 02/61] fix(discovery): fix docs related to discovery --- .../monitor-services-running-amazon-ecs.mdx | 4 ++-- .../not-seeing-infrastructure-integration-data.mdx | 2 +- .../container-auto-discovery-host-integrations.mdx | 3 +-- .../monitor-services-running-amazon-ecs.mdx | 4 ++-- .../not-seeing-infrastructure-integration-data.mdx | 2 +- .../container-auto-discovery-host-integrations.mdx | 3 +-- .../monitor-services-running-amazon-ecs.mdx | 4 ++-- .../not-seeing-infrastructure-integration-data.mdx | 2 +- .../container-auto-discovery-host-integrations.mdx | 3 +-- .../monitor-services-running-amazon-ecs.mdx | 4 ++-- .../not-seeing-infrastructure-integration-data.mdx | 2 +- .../container-auto-discovery-host-integrations.mdx | 3 +-- .../monitor-services-running-amazon-ecs.mdx | 4 ++-- .../not-seeing-infrastructure-integration-data.mdx | 2 +- .../container-auto-discovery-host-integrations.mdx | 3 +-- 15 files changed, 20 insertions(+), 25 deletions(-) diff --git a/src/content/docs/infrastructure/host-integrations/host-integrations-list/monitor-services-running-amazon-ecs.mdx b/src/content/docs/infrastructure/host-integrations/host-integrations-list/monitor-services-running-amazon-ecs.mdx index cada301ba33..707777505d4 100644 --- a/src/content/docs/infrastructure/host-integrations/host-integrations-list/monitor-services-running-amazon-ecs.mdx +++ b/src/content/docs/infrastructure/host-integrations/host-integrations-list/monitor-services-running-amazon-ecs.mdx @@ -284,7 +284,7 @@ Here's a detailed example of doing the above procedure for NGINX: integrations: - name: nri-nginx env: - STATUS_URL: http://${'${discovery.ip}'}:/status + STATUS_URL: http://${discovery.ip}:/status REMOTE_MONITORING: true METRICS: 1 ``` @@ -311,7 +311,7 @@ Here's a detailed example of doing the above procedure for NGINX: integrations: - name: nri-nginx env: - STATUS_URL: http://${'${discovery.ip}'}:/status + STATUS_URL: http://${discovery.ip}:/status REMOTE_MONITORING: true METRICS: 1 path: /etc/newrelic-infra/integrations.d/nginx-config.yml diff --git a/src/content/docs/infrastructure/host-integrations/infrastructure-integrations-sdk/troubleshooting/not-seeing-infrastructure-integration-data.mdx b/src/content/docs/infrastructure/host-integrations/infrastructure-integrations-sdk/troubleshooting/not-seeing-infrastructure-integration-data.mdx index 3febeb0f071..4b4ea02c42d 100644 --- a/src/content/docs/infrastructure/host-integrations/infrastructure-integrations-sdk/troubleshooting/not-seeing-infrastructure-integration-data.mdx +++ b/src/content/docs/infrastructure/host-integrations/infrastructure-integrations-sdk/troubleshooting/not-seeing-infrastructure-integration-data.mdx @@ -145,7 +145,7 @@ To troubleshoot and resolve the problem: ``` - nginx-server-metrics: {\"name\":\"com.newrelic.nginx\",\"protocol_version\":\"1\",\"integration_version\":\"0.5.0\",\"metrics\": + nri-nginx: {\"name\":\"com.newrelic.nginx\",\"protocol_version\":\"1\",\"integration_version\":\"0.5.0\",\"metrics\": [{\"event_type\":\"NginxSample\",\"net.connectionsAcceptedPerSecond\":0.10344827586206896,\"net.connectionsActive\":1, \"net.connectionsDroppedPerSecond\":0,\"net.connectionsReading\":0,\"net.connectionsWaiting\":0,\"net.connectionsWriting\":1, \"net.requestsPerSecond\":0.10344827586206896,\"software.edition\":\"open source\",\"software.version\":\"1.4.6 (Ubuntu)\"}],\"inventory\":{},\"events\":[]} diff --git a/src/content/docs/infrastructure/host-integrations/installation/container-auto-discovery-host-integrations.mdx b/src/content/docs/infrastructure/host-integrations/installation/container-auto-discovery-host-integrations.mdx index 6726acc7259..e71d5f0b81b 100644 --- a/src/content/docs/infrastructure/host-integrations/installation/container-auto-discovery-host-integrations.mdx +++ b/src/content/docs/infrastructure/host-integrations/installation/container-auto-discovery-host-integrations.mdx @@ -44,8 +44,7 @@ These examples (for Docker-only environments and for Kubernetes) show how to con image: /nginx/ label.env: production integrations: - - name: nginx-server-metrics - command: metrics + - name: nri-nginx env: # use discovery.private.ip if container doesn't have attached public ip address STATUS_URL: http://${discovery.ip}:${discovery.port}/status diff --git a/src/i18n/content/es/docs/infrastructure/host-integrations/host-integrations-list/monitor-services-running-amazon-ecs.mdx b/src/i18n/content/es/docs/infrastructure/host-integrations/host-integrations-list/monitor-services-running-amazon-ecs.mdx index 285923b2c51..a57ee646a34 100644 --- a/src/i18n/content/es/docs/infrastructure/host-integrations/host-integrations-list/monitor-services-running-amazon-ecs.mdx +++ b/src/i18n/content/es/docs/infrastructure/host-integrations/host-integrations-list/monitor-services-running-amazon-ecs.mdx @@ -335,7 +335,7 @@ A continuación se muestra un ejemplo detallado de cómo realizar el procedimien integrations: - name: nri-nginx env: - STATUS_URL: http://${'${discovery.ip}'}:/status + STATUS_URL: http://${discovery.ip}:/status REMOTE_MONITORING: true METRICS: 1 ``` @@ -370,7 +370,7 @@ A continuación se muestra un ejemplo detallado de cómo realizar el procedimien integrations: - name: nri-nginx env: - STATUS_URL: http://${'${discovery.ip}'}:/status + STATUS_URL: http://${discovery.ip}:/status REMOTE_MONITORING: true METRICS: 1 path: /etc/newrelic-infra/integrations.d/nginx-config.yml diff --git a/src/i18n/content/es/docs/infrastructure/host-integrations/infrastructure-integrations-sdk/troubleshooting/not-seeing-infrastructure-integration-data.mdx b/src/i18n/content/es/docs/infrastructure/host-integrations/infrastructure-integrations-sdk/troubleshooting/not-seeing-infrastructure-integration-data.mdx index f3c0bdd61d8..6535540de8d 100644 --- a/src/i18n/content/es/docs/infrastructure/host-integrations/infrastructure-integrations-sdk/troubleshooting/not-seeing-infrastructure-integration-data.mdx +++ b/src/i18n/content/es/docs/infrastructure/host-integrations/infrastructure-integrations-sdk/troubleshooting/not-seeing-infrastructure-integration-data.mdx @@ -142,7 +142,7 @@ Para solucionar y resolver el problema: ``` - nginx-server-metrics: {\"name\":\"com.newrelic.nginx\",\"protocol_version\":\"1\",\"integration_version\":\"0.5.0\",\"metrics\": + nri-nginx: {\"name\":\"com.newrelic.nginx\",\"protocol_version\":\"1\",\"integration_version\":\"0.5.0\",\"metrics\": [{\"event_type\":\"NginxSample\",\"net.connectionsAcceptedPerSecond\":0.10344827586206896,\"net.connectionsActive\":1, \"net.connectionsDroppedPerSecond\":0,\"net.connectionsReading\":0,\"net.connectionsWaiting\":0,\"net.connectionsWriting\":1, \"net.requestsPerSecond\":0.10344827586206896,\"software.edition\":\"open source\",\"software.version\":\"1.4.6 (Ubuntu)\"}],\"inventory\":{},\"events\":[]} diff --git a/src/i18n/content/es/docs/infrastructure/host-integrations/installation/container-auto-discovery-host-integrations.mdx b/src/i18n/content/es/docs/infrastructure/host-integrations/installation/container-auto-discovery-host-integrations.mdx index a512e152564..ac5db6ce28f 100644 --- a/src/i18n/content/es/docs/infrastructure/host-integrations/installation/container-auto-discovery-host-integrations.mdx +++ b/src/i18n/content/es/docs/infrastructure/host-integrations/installation/container-auto-discovery-host-integrations.mdx @@ -37,8 +37,7 @@ Estos ejemplos (para entornos solo docker y para Kubernetes) muestran cómo conf image: /nginx/ label.env: production integrations: - - name: nginx-server-metrics - command: metrics + - name: nri-nginx env: # use discovery.private.ip if container doesn't have attached public ip address STATUS_URL: http://${discovery.ip}:${discovery.port}/status diff --git a/src/i18n/content/jp/docs/infrastructure/host-integrations/host-integrations-list/monitor-services-running-amazon-ecs.mdx b/src/i18n/content/jp/docs/infrastructure/host-integrations/host-integrations-list/monitor-services-running-amazon-ecs.mdx index 18acd8a2ace..723fef72a1e 100644 --- a/src/i18n/content/jp/docs/infrastructure/host-integrations/host-integrations-list/monitor-services-running-amazon-ecs.mdx +++ b/src/i18n/content/jp/docs/infrastructure/host-integrations/host-integrations-list/monitor-services-running-amazon-ecs.mdx @@ -335,7 +335,7 @@ ECSで動作しているサービスのモニタリングを有効にする方 integrations: - name: nri-nginx env: - STATUS_URL: http://${'${discovery.ip}'}:/status + STATUS_URL: http://${discovery.ip}:/status REMOTE_MONITORING: true METRICS: 1 ``` @@ -370,7 +370,7 @@ ECSで動作しているサービスのモニタリングを有効にする方 integrations: - name: nri-nginx env: - STATUS_URL: http://${'${discovery.ip}'}:/status + STATUS_URL: http://${discovery.ip}:/status REMOTE_MONITORING: true METRICS: 1 path: /etc/newrelic-infra/integrations.d/nginx-config.yml diff --git a/src/i18n/content/jp/docs/infrastructure/host-integrations/infrastructure-integrations-sdk/troubleshooting/not-seeing-infrastructure-integration-data.mdx b/src/i18n/content/jp/docs/infrastructure/host-integrations/infrastructure-integrations-sdk/troubleshooting/not-seeing-infrastructure-integration-data.mdx index c9be68ffb2d..578e1dbb328 100644 --- a/src/i18n/content/jp/docs/infrastructure/host-integrations/infrastructure-integrations-sdk/troubleshooting/not-seeing-infrastructure-integration-data.mdx +++ b/src/i18n/content/jp/docs/infrastructure/host-integrations/infrastructure-integrations-sdk/troubleshooting/not-seeing-infrastructure-integration-data.mdx @@ -143,7 +143,7 @@ translationType: machine ``` - nginx-server-metrics: {\"name\":\"com.newrelic.nginx\",\"protocol_version\":\"1\",\"integration_version\":\"0.5.0\",\"metrics\": + nri-nginx: {\"name\":\"com.newrelic.nginx\",\"protocol_version\":\"1\",\"integration_version\":\"0.5.0\",\"metrics\": [{\"event_type\":\"NginxSample\",\"net.connectionsAcceptedPerSecond\":0.10344827586206896,\"net.connectionsActive\":1, \"net.connectionsDroppedPerSecond\":0,\"net.connectionsReading\":0,\"net.connectionsWaiting\":0,\"net.connectionsWriting\":1, \"net.requestsPerSecond\":0.10344827586206896,\"software.edition\":\"open source\",\"software.version\":\"1.4.6 (Ubuntu)\"}],\"inventory\":{},\"events\":[]} diff --git a/src/i18n/content/jp/docs/infrastructure/host-integrations/installation/container-auto-discovery-host-integrations.mdx b/src/i18n/content/jp/docs/infrastructure/host-integrations/installation/container-auto-discovery-host-integrations.mdx index 8980b88d5fd..bde8e53ed9f 100644 --- a/src/i18n/content/jp/docs/infrastructure/host-integrations/installation/container-auto-discovery-host-integrations.mdx +++ b/src/i18n/content/jp/docs/infrastructure/host-integrations/installation/container-auto-discovery-host-integrations.mdx @@ -37,8 +37,7 @@ translationType: machine image: /nginx/ label.env: production integrations: - - name: nginx-server-metrics - command: metrics + - name: nri-nginx env: # use discovery.private.ip if container doesn't have attached public ip address STATUS_URL: http://${discovery.ip}:${discovery.port}/status diff --git a/src/i18n/content/kr/docs/infrastructure/host-integrations/host-integrations-list/monitor-services-running-amazon-ecs.mdx b/src/i18n/content/kr/docs/infrastructure/host-integrations/host-integrations-list/monitor-services-running-amazon-ecs.mdx index ac7f783bfe8..87c2f2805cd 100644 --- a/src/i18n/content/kr/docs/infrastructure/host-integrations/host-integrations-list/monitor-services-running-amazon-ecs.mdx +++ b/src/i18n/content/kr/docs/infrastructure/host-integrations/host-integrations-list/monitor-services-running-amazon-ecs.mdx @@ -329,7 +329,7 @@ NGINX에 대해 위의 절차를 수행하는 자세한 예는 다음과 같습 integrations: - name: nri-nginx env: - STATUS_URL: http://${'${discovery.ip}'}:/status + STATUS_URL: http://${discovery.ip}:/status REMOTE_MONITORING: true METRICS: 1 ``` @@ -364,7 +364,7 @@ NGINX에 대해 위의 절차를 수행하는 자세한 예는 다음과 같습 integrations: - name: nri-nginx env: - STATUS_URL: http://${'${discovery.ip}'}:/status + STATUS_URL: http://${discovery.ip}:/status REMOTE_MONITORING: true METRICS: 1 path: /etc/newrelic-infra/integrations.d/nginx-config.yml diff --git a/src/i18n/content/kr/docs/infrastructure/host-integrations/infrastructure-integrations-sdk/troubleshooting/not-seeing-infrastructure-integration-data.mdx b/src/i18n/content/kr/docs/infrastructure/host-integrations/infrastructure-integrations-sdk/troubleshooting/not-seeing-infrastructure-integration-data.mdx index 14b0aef4c8c..f1221e13382 100644 --- a/src/i18n/content/kr/docs/infrastructure/host-integrations/infrastructure-integrations-sdk/troubleshooting/not-seeing-infrastructure-integration-data.mdx +++ b/src/i18n/content/kr/docs/infrastructure/host-integrations/infrastructure-integrations-sdk/troubleshooting/not-seeing-infrastructure-integration-data.mdx @@ -142,7 +142,7 @@ translationType: machine ``` - nginx-server-metrics: {\"name\":\"com.newrelic.nginx\",\"protocol_version\":\"1\",\"integration_version\":\"0.5.0\",\"metrics\": + nri-nginx: {\"name\":\"com.newrelic.nginx\",\"protocol_version\":\"1\",\"integration_version\":\"0.5.0\",\"metrics\": [{\"event_type\":\"NginxSample\",\"net.connectionsAcceptedPerSecond\":0.10344827586206896,\"net.connectionsActive\":1, \"net.connectionsDroppedPerSecond\":0,\"net.connectionsReading\":0,\"net.connectionsWaiting\":0,\"net.connectionsWriting\":1, \"net.requestsPerSecond\":0.10344827586206896,\"software.edition\":\"open source\",\"software.version\":\"1.4.6 (Ubuntu)\"}],\"inventory\":{},\"events\":[]} diff --git a/src/i18n/content/kr/docs/infrastructure/host-integrations/installation/container-auto-discovery-host-integrations.mdx b/src/i18n/content/kr/docs/infrastructure/host-integrations/installation/container-auto-discovery-host-integrations.mdx index afbd8b06fa8..94f7ef8752f 100644 --- a/src/i18n/content/kr/docs/infrastructure/host-integrations/installation/container-auto-discovery-host-integrations.mdx +++ b/src/i18n/content/kr/docs/infrastructure/host-integrations/installation/container-auto-discovery-host-integrations.mdx @@ -37,8 +37,7 @@ translationType: machine image: /nginx/ label.env: production integrations: - - name: nginx-server-metrics - command: metrics + - name: nri-nginx env: # use discovery.private.ip if container doesn't have attached public ip address STATUS_URL: http://${discovery.ip}:${discovery.port}/status diff --git a/src/i18n/content/pt/docs/infrastructure/host-integrations/host-integrations-list/monitor-services-running-amazon-ecs.mdx b/src/i18n/content/pt/docs/infrastructure/host-integrations/host-integrations-list/monitor-services-running-amazon-ecs.mdx index f8eb7231c82..0d8b633a8a8 100644 --- a/src/i18n/content/pt/docs/infrastructure/host-integrations/host-integrations-list/monitor-services-running-amazon-ecs.mdx +++ b/src/i18n/content/pt/docs/infrastructure/host-integrations/host-integrations-list/monitor-services-running-amazon-ecs.mdx @@ -335,7 +335,7 @@ Aqui está um exemplo detalhado de como executar o procedimento acima para NGINX integrations: - name: nri-nginx env: - STATUS_URL: http://${'${discovery.ip}'}:/status + STATUS_URL: http://${discovery.ip}:/status REMOTE_MONITORING: true METRICS: 1 ``` @@ -370,7 +370,7 @@ Aqui está um exemplo detalhado de como executar o procedimento acima para NGINX integrations: - name: nri-nginx env: - STATUS_URL: http://${'${discovery.ip}'}:/status + STATUS_URL: http://${discovery.ip}:/status REMOTE_MONITORING: true METRICS: 1 path: /etc/newrelic-infra/integrations.d/nginx-config.yml diff --git a/src/i18n/content/pt/docs/infrastructure/host-integrations/infrastructure-integrations-sdk/troubleshooting/not-seeing-infrastructure-integration-data.mdx b/src/i18n/content/pt/docs/infrastructure/host-integrations/infrastructure-integrations-sdk/troubleshooting/not-seeing-infrastructure-integration-data.mdx index 3748ed316fe..a5957df8bce 100644 --- a/src/i18n/content/pt/docs/infrastructure/host-integrations/infrastructure-integrations-sdk/troubleshooting/not-seeing-infrastructure-integration-data.mdx +++ b/src/i18n/content/pt/docs/infrastructure/host-integrations/infrastructure-integrations-sdk/troubleshooting/not-seeing-infrastructure-integration-data.mdx @@ -142,7 +142,7 @@ Para solucionar e resolver o problema: ``` - nginx-server-metrics: {\"name\":\"com.newrelic.nginx\",\"protocol_version\":\"1\",\"integration_version\":\"0.5.0\",\"metrics\": + nri-nginx: {\"name\":\"com.newrelic.nginx\",\"protocol_version\":\"1\",\"integration_version\":\"0.5.0\",\"metrics\": [{\"event_type\":\"NginxSample\",\"net.connectionsAcceptedPerSecond\":0.10344827586206896,\"net.connectionsActive\":1, \"net.connectionsDroppedPerSecond\":0,\"net.connectionsReading\":0,\"net.connectionsWaiting\":0,\"net.connectionsWriting\":1, \"net.requestsPerSecond\":0.10344827586206896,\"software.edition\":\"open source\",\"software.version\":\"1.4.6 (Ubuntu)\"}],\"inventory\":{},\"events\":[]} diff --git a/src/i18n/content/pt/docs/infrastructure/host-integrations/installation/container-auto-discovery-host-integrations.mdx b/src/i18n/content/pt/docs/infrastructure/host-integrations/installation/container-auto-discovery-host-integrations.mdx index 27bee6c7fd1..e30f6775853 100644 --- a/src/i18n/content/pt/docs/infrastructure/host-integrations/installation/container-auto-discovery-host-integrations.mdx +++ b/src/i18n/content/pt/docs/infrastructure/host-integrations/installation/container-auto-discovery-host-integrations.mdx @@ -37,8 +37,7 @@ Estes exemplos (para ambientes Docker-only e para Kubernetes) mostram como confi image: /nginx/ label.env: production integrations: - - name: nginx-server-metrics - command: metrics + - name: nri-nginx env: # use discovery.private.ip if container doesn't have attached public ip address STATUS_URL: http://${discovery.ip}:${discovery.port}/status From 692195efe672f8a9d8ebdbb3915c53dc029cfd90 Mon Sep 17 00:00:00 2001 From: Liz Baker Date: Tue, 1 Oct 2024 16:41:00 -0700 Subject: [PATCH 03/61] chore: Add usePagination hook --- src/hooks/usePagination.js | 71 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 src/hooks/usePagination.js diff --git a/src/hooks/usePagination.js b/src/hooks/usePagination.js new file mode 100644 index 00000000000..2e1036fddeb --- /dev/null +++ b/src/hooks/usePagination.js @@ -0,0 +1,71 @@ +// pulled from https://github.com/mayankshubham/react-pagination which is used in a freecodecamp tutorial :) +import { useMemo } from 'react'; + +export const DOTS = '...'; + +const range = (start, end) => { + const length = end - start + 1; + return Array.from({ length }, (_, idx) => idx + start); +}; + +export const usePagination = ({ + totalCount, + pageSize, + siblingCount = 1, + currentPage, +}) => { + const paginationRange = useMemo(() => { + const totalPageCount = Math.ceil(totalCount / pageSize); + + // Pages count is determined as siblingCount + firstPage + lastPage + currentPage + 2*DOTS + const totalPageNumbers = siblingCount + 5; + + /* + If the number of pages is less than the page numbers we want to show in our + paginationComponent, we return the range [1..totalPageCount] + */ + if (totalPageNumbers >= totalPageCount) { + return range(1, totalPageCount); + } + + const leftSiblingIndex = Math.max(currentPage - siblingCount, 1); + const rightSiblingIndex = Math.min( + currentPage + siblingCount, + totalPageCount + ); + + /* + We do not want to show dots if there is only one position left + after/before the left/right page count as that would lead to a change if our Pagination + component size which we do not want + */ + const shouldShowLeftDots = leftSiblingIndex > 2; + const shouldShowRightDots = rightSiblingIndex < totalPageCount - 2; + + const firstPageIndex = 1; + const lastPageIndex = totalPageCount; + + if (!shouldShowLeftDots && shouldShowRightDots) { + const leftItemCount = 3 + 2 * siblingCount; + const leftRange = range(1, leftItemCount); + + return [...leftRange, DOTS, totalPageCount]; + } + + if (shouldShowLeftDots && !shouldShowRightDots) { + const rightItemCount = 3 + 2 * siblingCount; + const rightRange = range( + totalPageCount - rightItemCount + 1, + totalPageCount + ); + return [firstPageIndex, DOTS, ...rightRange]; + } + + if (shouldShowLeftDots && shouldShowRightDots) { + const middleRange = range(leftSiblingIndex, rightSiblingIndex); + return [firstPageIndex, DOTS, ...middleRange, DOTS, lastPageIndex]; + } + }, [totalCount, pageSize, siblingCount, currentPage]); + + return paginationRange; +}; From 64f28caaf69139653ddf7fea1669b33f62234453 Mon Sep 17 00:00:00 2001 From: Liz Baker Date: Tue, 1 Oct 2024 16:41:12 -0700 Subject: [PATCH 04/61] chore: Update theme --- package.json | 4 ++-- yarn.lock | 49 ++++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 44 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 6f6732e848c..892ffeeebb1 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "@emotion/styled": "^11.3.0", "@mdx-js/mdx": "2.0.0-next.8", "@mdx-js/react": "2.0.0-next.8", - "@newrelic/gatsby-theme-newrelic": "9.8.1", + "@newrelic/gatsby-theme-newrelic": "9.8.3", "@splitsoftware/splitio-react": "^1.2.4", "ansi-colors": "^4.1.3", "cockatiel": "^3.0.0-beta.0", @@ -237,4 +237,4 @@ "bugs": { "url": "https://github.com/newrelic/docs-website/issues" } -} +} \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index b90b3f7acc5..224701fcbd1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3616,10 +3616,10 @@ eslint-plugin-promise "^4.2.1" eslint-plugin-react "^7.14.3" -"@newrelic/gatsby-theme-newrelic@9.8.1": - version "9.8.1" - resolved "https://registry.yarnpkg.com/@newrelic/gatsby-theme-newrelic/-/gatsby-theme-newrelic-9.8.1.tgz#969ff2f9c5f7a9a683279a14372826500c2026f1" - integrity sha512-PPf0yjhO5HkvICLNYp1T37g9+yU7kIE828Buhm/pLqYRrusiQFCqoU1Uia1CjVsxnJUyIE3B6c1hn9h70lSszA== +"@newrelic/gatsby-theme-newrelic@9.8.3": + version "9.8.3" + resolved "https://registry.yarnpkg.com/@newrelic/gatsby-theme-newrelic/-/gatsby-theme-newrelic-9.8.3.tgz#5c82f6dcce6eb859a631a45eb365f36595beb25f" + integrity sha512-fJivOMouW1kxFjHvH0BXkhL+L2lkaN1myJO5iaDGgqiHXGUQROebzLxOafz4MqMdAWsWSSn1X83grFP33UBJbQ== dependencies: "@segment/analytics-next" "1.63.0" "@wry/equality" "^0.4.0" @@ -21232,7 +21232,7 @@ unicode-property-aliases-ecmascript@^2.0.0: resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.0.0.tgz#0a36cb9a585c4f6abd51ad1deddb285c165297c8" integrity sha512-5Zfuy9q/DFr4tfO7ZPeVXb1aPoeQSdeFMLpYuFebehDAhbuevLs5yxSZmIFN1tP5F9Wl4IpJrYojg85/zgyZHQ== -"unified10@npm:unified@^10.1.2", unified@^10.0.0: +"unified10@npm:unified@^10.1.2": version "10.1.2" resolved "https://registry.yarnpkg.com/unified/-/unified-10.1.2.tgz#b1d64e55dafe1f0b98bb6c719881103ecf6c86df" integrity sha512-pUSWAi/RAnVy1Pif2kAoeWNBa3JVrx0MId2LASj8G+7AiHWoKZNTomq6LG326T68U7/e263X6fTdcXIy7XnF7Q== @@ -21245,7 +21245,7 @@ unicode-property-aliases-ecmascript@^2.0.0: trough "^2.0.0" vfile "^5.0.0" -"unified11@npm:unified@^11.0.4", unified@^11.0.0: +"unified11@npm:unified@^11.0.4": version "11.0.4" resolved "https://registry.yarnpkg.com/unified/-/unified-11.0.4.tgz#f4be0ac0fe4c88cb873687c07c64c49ed5969015" integrity sha512-apMPnyLjAX+ty4OrNap7yumyVAMlKx5IWU2wlzzUdYJO9A8f1p9m/gywF/GM2ZDFcjQPrx59Mc90KwmxsoklxQ== @@ -21270,6 +21270,32 @@ unified@9.0.0: trough "^1.0.0" vfile "^4.0.0" +unified@^10.0.0: + version "10.1.2" + resolved "https://registry.yarnpkg.com/unified/-/unified-10.1.2.tgz#b1d64e55dafe1f0b98bb6c719881103ecf6c86df" + integrity sha512-pUSWAi/RAnVy1Pif2kAoeWNBa3JVrx0MId2LASj8G+7AiHWoKZNTomq6LG326T68U7/e263X6fTdcXIy7XnF7Q== + dependencies: + "@types/unist" "^2.0.0" + bail "^2.0.0" + extend "^3.0.0" + is-buffer "^2.0.0" + is-plain-obj "^4.0.0" + trough "^2.0.0" + vfile "^5.0.0" + +unified@^11.0.0: + version "11.0.4" + resolved "https://registry.yarnpkg.com/unified/-/unified-11.0.4.tgz#f4be0ac0fe4c88cb873687c07c64c49ed5969015" + integrity sha512-apMPnyLjAX+ty4OrNap7yumyVAMlKx5IWU2wlzzUdYJO9A8f1p9m/gywF/GM2ZDFcjQPrx59Mc90KwmxsoklxQ== + dependencies: + "@types/unist" "^3.0.0" + bail "^2.0.0" + devlop "^1.0.0" + extend "^3.0.0" + is-plain-obj "^4.0.0" + trough "^2.0.0" + vfile "^6.0.0" + unified@^7.0.0: version "7.1.0" resolved "https://registry.yarnpkg.com/unified/-/unified-7.1.0.tgz#5032f1c1ee3364bd09da12e27fdd4a7553c7be13" @@ -21568,7 +21594,7 @@ unist-util-visit-parents@^6.0.0: "@types/unist" "^3.0.0" unist-util-is "^6.0.0" -"unist-util-visit4@npm:unist-util-visit@^4.1.2", unist-util-visit@^4.0.0: +"unist-util-visit4@npm:unist-util-visit@^4.1.2": version "4.1.2" resolved "https://registry.yarnpkg.com/unist-util-visit/-/unist-util-visit-4.1.2.tgz#125a42d1eb876283715a3cb5cceaa531828c72e2" integrity sha512-MSd8OUGISqHdVvfY9TPhyK2VdUrPgxkUtWSuMHF6XAAFuL4LokseigBnZtPnJMu+FbynTkFNnFlyjxpVKujMRg== @@ -21593,6 +21619,15 @@ unist-util-visit@^1.1.0, unist-util-visit@^1.4.1: dependencies: unist-util-visit-parents "^2.0.0" +unist-util-visit@^4.0.0: + version "4.1.2" + resolved "https://registry.yarnpkg.com/unist-util-visit/-/unist-util-visit-4.1.2.tgz#125a42d1eb876283715a3cb5cceaa531828c72e2" + integrity sha512-MSd8OUGISqHdVvfY9TPhyK2VdUrPgxkUtWSuMHF6XAAFuL4LokseigBnZtPnJMu+FbynTkFNnFlyjxpVKujMRg== + dependencies: + "@types/unist" "^2.0.0" + unist-util-is "^5.0.0" + unist-util-visit-parents "^5.1.1" + unist-util-visit@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/unist-util-visit/-/unist-util-visit-5.0.0.tgz#a7de1f31f72ffd3519ea71814cccf5fd6a9217d6" From 1e467e06f046f9b91baea5af76f34742f4e57556 Mon Sep 17 00:00:00 2001 From: Liz Baker Date: Tue, 1 Oct 2024 16:41:19 -0700 Subject: [PATCH 05/61] feat: Add search results page --- src/pages/search-results.js | 273 ++++++++++++++++++++++++++++++++++++ 1 file changed, 273 insertions(+) create mode 100644 src/pages/search-results.js diff --git a/src/pages/search-results.js b/src/pages/search-results.js new file mode 100644 index 00000000000..2b54b221b3e --- /dev/null +++ b/src/pages/search-results.js @@ -0,0 +1,273 @@ +import React, { useEffect, useState } from 'react'; +import PropTypes from 'prop-types'; +import { css } from '@emotion/react'; +import styled from '@emotion/styled'; +import { + Icon, + Button, + Link, + search, + Spinner, + Surface, + useLocale, + useQueryParams, +} from '@newrelic/gatsby-theme-newrelic'; + +import { usePagination, DOTS } from '../hooks/usePagination'; + +const SearchResultPageView = ({ pageContext }) => { + const { queryParams } = useQueryParams(); + const query = queryParams.get('query'); + const page = Number(queryParams.get('page')); + const locale = useLocale(); + const [results, setResults] = useState({}); + const { records, pageCount } = results; + const { slug } = pageContext; + + const totalPages = pageCount; + const totalResults = totalPages * 5; + const prevPage = page - 1; + const nextPage = page + 1; + const hasNextPage = nextPage <= totalPages; + const hasPrevPage = prevPage >= 1; + + const paginationRange = usePagination({ + totalCount: totalPages, + pageSize: 5, + siblingCount: 1, + currentPage: page, + }); + + useEffect(() => { + (async () => { + const defaultSources = locale.isDefault + ? ['developer', 'docs', 'opensource', 'quickstarts'] + : [ + `developer-${locale.locale}`, + `docs-${locale.locale}`, + `opensource-${locale.locale}`, + `quickstarts`, + ]; + const results = await search({ + searchTerm: query, + defaultSources, + filters: [ + { type: 'source', defaultFilters: [] }, + { type: 'searchBy', defaultFilters: [] }, + ], + page, + perPage: 5, + }); + setResults({ + pageCount: results.info.page.num_pages, + records: results.records.page, + }); + })(); + }, [locale, page, query]); + + return ( + + {!records && ( + +

Loading results

+ +
+ )} + {records && ( + <> +

+ {totalResults} results for "{query}" +

+ {records.map((result) => ( + + ))} + + + + + Previous + + + {paginationRange.map((pageNumber) => { + if (pageNumber === DOTS) { + return {DOTS}; + } + return ( + + + {pageNumber} + + + ); + })} + + + Next + + + + + + )} +
+ ); +}; + +const PageContainer = styled.div` + font-size: 1.125rem; + display: flex; + flex-direction: column; + justify-content: center; + width: 100%; + height: 100%; + h2 { + font-weight: normal; + margin-bottom: 1rem; + } +`; + +const LoadingContainer = styled.div` + height: 100%; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; +`; + +const PaginationContainer = styled.div` + display: flex; + max-width: 760px; + justify-content: center; + align-items: flex-end; + margin: 3rem auto 0; + a { + margin: 0 0.25rem 0; + display: flex; + button { + &:hover { + color: var(--brand-button-primary-accent-hover); + border-color: var(--brand-button-primary-accent-hover); + } + } + text-decoration: none; + &[disabled] { + pointer-events: none; + button { + border-color: --system-text-muted-light; + color: --system-text-muted-light; + } + } + } +`; + +const PaginationButton = ({ children, ...props }) => ( + +); + +const Result = ({ result }) => { + return ( + +

+ {result.url.replace('https://docs.newrelic.com/docs/', '')} +

+

+

+ + ); +}; + +SearchResultPageView.propTypes = { + location: PropTypes.shape({ + state: PropTypes.shape({ + results: PropTypes.arrayOf( + PropTypes.shape({ + highlight: PropTypes.shape({ + title: PropTypes.string, + body: PropTypes.string, + }), + url: PropTypes.string, + }) + ).isRequired, + }), + }), +}; + +export default SearchResultPageView; From 68880c1be339ba7f48a1699334d48401805a2f4f Mon Sep 17 00:00:00 2001 From: Liz Baker Date: Wed, 2 Oct 2024 14:47:58 -0700 Subject: [PATCH 06/61] fix: Update key prop and page count --- src/hooks/usePagination.js | 7 ++----- src/pages/search-results.js | 7 +++---- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/hooks/usePagination.js b/src/hooks/usePagination.js index 2e1036fddeb..f4a949f49ce 100644 --- a/src/hooks/usePagination.js +++ b/src/hooks/usePagination.js @@ -9,14 +9,11 @@ const range = (start, end) => { }; export const usePagination = ({ - totalCount, - pageSize, + totalPageCount, siblingCount = 1, currentPage, }) => { const paginationRange = useMemo(() => { - const totalPageCount = Math.ceil(totalCount / pageSize); - // Pages count is determined as siblingCount + firstPage + lastPage + currentPage + 2*DOTS const totalPageNumbers = siblingCount + 5; @@ -65,7 +62,7 @@ export const usePagination = ({ const middleRange = range(leftSiblingIndex, rightSiblingIndex); return [firstPageIndex, DOTS, ...middleRange, DOTS, lastPageIndex]; } - }, [totalCount, pageSize, siblingCount, currentPage]); + }, [totalPageCount, siblingCount, currentPage]); return paginationRange; }; diff --git a/src/pages/search-results.js b/src/pages/search-results.js index 2b54b221b3e..6b34f9d965e 100644 --- a/src/pages/search-results.js +++ b/src/pages/search-results.js @@ -32,8 +32,7 @@ const SearchResultPageView = ({ pageContext }) => { const hasPrevPage = prevPage >= 1; const paginationRange = usePagination({ - totalCount: totalPages, - pageSize: 5, + totalPageCount: totalPages, siblingCount: 1, currentPage: page, }); @@ -84,8 +83,8 @@ const SearchResultPageView = ({ pageContext }) => {

{totalResults} results for "{query}"

- {records.map((result) => ( - + {records.map((result, i) => ( + ))} Date: Fri, 4 Oct 2024 09:57:56 -0700 Subject: [PATCH 07/61] chore: Nullish coalesce page number, add results catch --- src/pages/search-results.js | 45 ++++++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 18 deletions(-) diff --git a/src/pages/search-results.js b/src/pages/search-results.js index 6b34f9d965e..34bf245cf64 100644 --- a/src/pages/search-results.js +++ b/src/pages/search-results.js @@ -18,10 +18,10 @@ import { usePagination, DOTS } from '../hooks/usePagination'; const SearchResultPageView = ({ pageContext }) => { const { queryParams } = useQueryParams(); const query = queryParams.get('query'); - const page = Number(queryParams.get('page')); + const page = Number(queryParams.get('page') ?? 1); const locale = useLocale(); - const [results, setResults] = useState({}); - const { records, pageCount } = results; + const [results, setResults] = useState({ loading: true }); + const { records, pageCount, loading, error } = results; const { slug } = pageContext; const totalPages = pageCount; @@ -47,26 +47,34 @@ const SearchResultPageView = ({ pageContext }) => { `opensource-${locale.locale}`, `quickstarts`, ]; - const results = await search({ - searchTerm: query, - defaultSources, - filters: [ - { type: 'source', defaultFilters: [] }, - { type: 'searchBy', defaultFilters: [] }, - ], - page, - perPage: 5, - }); - setResults({ - pageCount: results.info.page.num_pages, - records: results.records.page, - }); + try { + const results = await search({ + searchTerm: query, + defaultSources, + filters: [ + { type: 'source', defaultFilters: [] }, + { type: 'searchBy', defaultFilters: [] }, + ], + page, + perPage: 5, + }); + setResults({ + pageCount: results.info.page.num_pages, + records: results.records.page, + loading: false, + }); + } catch { + setResults({ + error: 'Unable to get search results, an error has occurred', + loading: false, + }); + } })(); }, [locale, page, query]); return ( - {!records && ( + {loading && (

Loading results

{
)} + {error && !loading && {error}} ); }; From 669d0ee2c772be9ef52f24378951ad70f9c59ec8 Mon Sep 17 00:00:00 2001 From: Liz Baker Date: Fri, 4 Oct 2024 10:19:18 -0700 Subject: [PATCH 08/61] chore: Reroute to homepage if no query --- src/pages/search-results.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pages/search-results.js b/src/pages/search-results.js index 34bf245cf64..fc63d4791db 100644 --- a/src/pages/search-results.js +++ b/src/pages/search-results.js @@ -12,6 +12,7 @@ import { useLocale, useQueryParams, } from '@newrelic/gatsby-theme-newrelic'; +import { navigate } from '@reach/router'; import { usePagination, DOTS } from '../hooks/usePagination'; @@ -38,6 +39,9 @@ const SearchResultPageView = ({ pageContext }) => { }); useEffect(() => { + if (!query) { + navigate('/'); + } (async () => { const defaultSources = locale.isDefault ? ['developer', 'docs', 'opensource', 'quickstarts'] From b055e42cc756399c86a0801e0dee7fe1323743db Mon Sep 17 00:00:00 2001 From: Liz Baker Date: Fri, 4 Oct 2024 11:07:28 -0700 Subject: [PATCH 09/61] chore: Add hover underline to result headers --- src/pages/search-results.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pages/search-results.js b/src/pages/search-results.js index fc63d4791db..90d48d58048 100644 --- a/src/pages/search-results.js +++ b/src/pages/search-results.js @@ -242,6 +242,9 @@ const Result = ({ result }) => { color: var(--primary-font-color); &:hover { color: var(--primary-font-color); + h3 { + text-decoration: underline; + } } `} > From b9cb8eeadffc06f1fc8076bf54b45dcab4588128 Mon Sep 17 00:00:00 2001 From: Liz Baker Date: Fri, 4 Oct 2024 13:46:10 -0700 Subject: [PATCH 10/61] chore: Update proptypes and css --- src/pages/search-results.js | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/src/pages/search-results.js b/src/pages/search-results.js index 90d48d58048..76facc94b63 100644 --- a/src/pages/search-results.js +++ b/src/pages/search-results.js @@ -181,10 +181,15 @@ const PageContainer = styled.div` justify-content: center; width: 100%; height: 100%; + padding-right: 3.5rem; h2 { font-weight: normal; margin-bottom: 1rem; } + + @media (max-width: 1240px) { + padding-right: 0; + } `; const LoadingContainer = styled.div` @@ -270,19 +275,9 @@ const Result = ({ result }) => { }; SearchResultPageView.propTypes = { - location: PropTypes.shape({ - state: PropTypes.shape({ - results: PropTypes.arrayOf( - PropTypes.shape({ - highlight: PropTypes.shape({ - title: PropTypes.string, - body: PropTypes.string, - }), - url: PropTypes.string, - }) - ).isRequired, - }), - }), + pageContext: PropTypes.shape({ + slug: PropTypes.string, + }).isRequired, }; export default SearchResultPageView; From a375e01eec5f3f244d679599c5c5b8f0b7ea7aae Mon Sep 17 00:00:00 2001 From: Gaurab Manandhar Date: Fri, 4 Oct 2024 19:36:57 +0530 Subject: [PATCH 11/61] chore: update homepage search behavior --- src/components/HomepageBanner.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/components/HomepageBanner.js b/src/components/HomepageBanner.js index b131ac7deee..fea173f485d 100644 --- a/src/components/HomepageBanner.js +++ b/src/components/HomepageBanner.js @@ -78,7 +78,9 @@ const HomepageBanner = () => { searchTerm, searchLocation: 'homepage', }); - navigate(`?q=${searchTerm || ''}`); + if(searchTerm != '') { + navigate(`search-results/?query=${searchTerm}&page=1`); + } }} css={css` max-width: 880px; @@ -116,19 +118,19 @@ const HomepageBanner = () => { `} >

{t('strings.home.search.popularSearches.title')}:

- + {t('strings.home.search.popularSearches.options.0')}, - + {t('strings.home.search.popularSearches.options.1')}, - + {t('strings.home.search.popularSearches.options.2')}, - + {t('strings.home.search.popularSearches.options.3')}, - + {t('strings.home.search.popularSearches.options.4')} From e63747f61dc4dce2a125547bd1d40e26f46e020a Mon Sep 17 00:00:00 2001 From: Gaurab Manandhar Date: Fri, 4 Oct 2024 21:54:05 +0530 Subject: [PATCH 12/61] fix: lint fix --- src/components/HomepageBanner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/HomepageBanner.js b/src/components/HomepageBanner.js index fea173f485d..a2985ca022b 100644 --- a/src/components/HomepageBanner.js +++ b/src/components/HomepageBanner.js @@ -78,7 +78,7 @@ const HomepageBanner = () => { searchTerm, searchLocation: 'homepage', }); - if(searchTerm != '') { + if(searchTerm !== '') { navigate(`search-results/?query=${searchTerm}&page=1`); } }} From 475ecbeaab4a30ce367c57d321a236087531d9e6 Mon Sep 17 00:00:00 2001 From: Sunny Zanchi Date: Mon, 7 Oct 2024 13:14:16 -0400 Subject: [PATCH 13/61] chore: fix lint --- src/components/HomepageBanner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/HomepageBanner.js b/src/components/HomepageBanner.js index a2985ca022b..a0c67cee1c7 100644 --- a/src/components/HomepageBanner.js +++ b/src/components/HomepageBanner.js @@ -78,7 +78,7 @@ const HomepageBanner = () => { searchTerm, searchLocation: 'homepage', }); - if(searchTerm !== '') { + if (searchTerm !== '') { navigate(`search-results/?query=${searchTerm}&page=1`); } }} From 9915df49f3dc8853fe020a21f217446d61dcf7d2 Mon Sep 17 00:00:00 2001 From: Sunny Zanchi Date: Wed, 16 Oct 2024 13:26:43 -0400 Subject: [PATCH 14/61] bump `@newrelic/gatsby-theme-newrelic` to 9.9.0 --- package.json | 4 ++-- yarn.lock | 49 +++++++------------------------------------------ 2 files changed, 9 insertions(+), 44 deletions(-) diff --git a/package.json b/package.json index 6940b3eed65..288d78708cf 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "@emotion/styled": "^11.3.0", "@mdx-js/mdx": "2.0.0-next.8", "@mdx-js/react": "2.0.0-next.8", - "@newrelic/gatsby-theme-newrelic": "9.8.3", + "@newrelic/gatsby-theme-newrelic": "9.9.0", "@splitsoftware/splitio-react": "^1.2.4", "ansi-colors": "^4.1.3", "cockatiel": "^3.0.0-beta.0", @@ -237,4 +237,4 @@ "bugs": { "url": "https://github.com/newrelic/docs-website/issues" } -} \ No newline at end of file +} diff --git a/yarn.lock b/yarn.lock index 224701fcbd1..427cbc61477 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3616,10 +3616,10 @@ eslint-plugin-promise "^4.2.1" eslint-plugin-react "^7.14.3" -"@newrelic/gatsby-theme-newrelic@9.8.3": - version "9.8.3" - resolved "https://registry.yarnpkg.com/@newrelic/gatsby-theme-newrelic/-/gatsby-theme-newrelic-9.8.3.tgz#5c82f6dcce6eb859a631a45eb365f36595beb25f" - integrity sha512-fJivOMouW1kxFjHvH0BXkhL+L2lkaN1myJO5iaDGgqiHXGUQROebzLxOafz4MqMdAWsWSSn1X83grFP33UBJbQ== +"@newrelic/gatsby-theme-newrelic@9.9.0": + version "9.9.0" + resolved "https://registry.yarnpkg.com/@newrelic/gatsby-theme-newrelic/-/gatsby-theme-newrelic-9.9.0.tgz#1940f1bd6f085b402c9fad648ee9c86ac6c3b13c" + integrity sha512-INY4C+xxABUngaFJr7MGo7IApaA413uxR2a08vm/acbsRJSi8ft2Ph+boP1pfUrCqvlnLRDJ8XTHccTCHLhReQ== dependencies: "@segment/analytics-next" "1.63.0" "@wry/equality" "^0.4.0" @@ -21232,7 +21232,7 @@ unicode-property-aliases-ecmascript@^2.0.0: resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.0.0.tgz#0a36cb9a585c4f6abd51ad1deddb285c165297c8" integrity sha512-5Zfuy9q/DFr4tfO7ZPeVXb1aPoeQSdeFMLpYuFebehDAhbuevLs5yxSZmIFN1tP5F9Wl4IpJrYojg85/zgyZHQ== -"unified10@npm:unified@^10.1.2": +"unified10@npm:unified@^10.1.2", unified@^10.0.0: version "10.1.2" resolved "https://registry.yarnpkg.com/unified/-/unified-10.1.2.tgz#b1d64e55dafe1f0b98bb6c719881103ecf6c86df" integrity sha512-pUSWAi/RAnVy1Pif2kAoeWNBa3JVrx0MId2LASj8G+7AiHWoKZNTomq6LG326T68U7/e263X6fTdcXIy7XnF7Q== @@ -21245,7 +21245,7 @@ unicode-property-aliases-ecmascript@^2.0.0: trough "^2.0.0" vfile "^5.0.0" -"unified11@npm:unified@^11.0.4": +"unified11@npm:unified@^11.0.4", unified@^11.0.0: version "11.0.4" resolved "https://registry.yarnpkg.com/unified/-/unified-11.0.4.tgz#f4be0ac0fe4c88cb873687c07c64c49ed5969015" integrity sha512-apMPnyLjAX+ty4OrNap7yumyVAMlKx5IWU2wlzzUdYJO9A8f1p9m/gywF/GM2ZDFcjQPrx59Mc90KwmxsoklxQ== @@ -21270,32 +21270,6 @@ unified@9.0.0: trough "^1.0.0" vfile "^4.0.0" -unified@^10.0.0: - version "10.1.2" - resolved "https://registry.yarnpkg.com/unified/-/unified-10.1.2.tgz#b1d64e55dafe1f0b98bb6c719881103ecf6c86df" - integrity sha512-pUSWAi/RAnVy1Pif2kAoeWNBa3JVrx0MId2LASj8G+7AiHWoKZNTomq6LG326T68U7/e263X6fTdcXIy7XnF7Q== - dependencies: - "@types/unist" "^2.0.0" - bail "^2.0.0" - extend "^3.0.0" - is-buffer "^2.0.0" - is-plain-obj "^4.0.0" - trough "^2.0.0" - vfile "^5.0.0" - -unified@^11.0.0: - version "11.0.4" - resolved "https://registry.yarnpkg.com/unified/-/unified-11.0.4.tgz#f4be0ac0fe4c88cb873687c07c64c49ed5969015" - integrity sha512-apMPnyLjAX+ty4OrNap7yumyVAMlKx5IWU2wlzzUdYJO9A8f1p9m/gywF/GM2ZDFcjQPrx59Mc90KwmxsoklxQ== - dependencies: - "@types/unist" "^3.0.0" - bail "^2.0.0" - devlop "^1.0.0" - extend "^3.0.0" - is-plain-obj "^4.0.0" - trough "^2.0.0" - vfile "^6.0.0" - unified@^7.0.0: version "7.1.0" resolved "https://registry.yarnpkg.com/unified/-/unified-7.1.0.tgz#5032f1c1ee3364bd09da12e27fdd4a7553c7be13" @@ -21594,7 +21568,7 @@ unist-util-visit-parents@^6.0.0: "@types/unist" "^3.0.0" unist-util-is "^6.0.0" -"unist-util-visit4@npm:unist-util-visit@^4.1.2": +"unist-util-visit4@npm:unist-util-visit@^4.1.2", unist-util-visit@^4.0.0: version "4.1.2" resolved "https://registry.yarnpkg.com/unist-util-visit/-/unist-util-visit-4.1.2.tgz#125a42d1eb876283715a3cb5cceaa531828c72e2" integrity sha512-MSd8OUGISqHdVvfY9TPhyK2VdUrPgxkUtWSuMHF6XAAFuL4LokseigBnZtPnJMu+FbynTkFNnFlyjxpVKujMRg== @@ -21619,15 +21593,6 @@ unist-util-visit@^1.1.0, unist-util-visit@^1.4.1: dependencies: unist-util-visit-parents "^2.0.0" -unist-util-visit@^4.0.0: - version "4.1.2" - resolved "https://registry.yarnpkg.com/unist-util-visit/-/unist-util-visit-4.1.2.tgz#125a42d1eb876283715a3cb5cceaa531828c72e2" - integrity sha512-MSd8OUGISqHdVvfY9TPhyK2VdUrPgxkUtWSuMHF6XAAFuL4LokseigBnZtPnJMu+FbynTkFNnFlyjxpVKujMRg== - dependencies: - "@types/unist" "^2.0.0" - unist-util-is "^5.0.0" - unist-util-visit-parents "^5.1.1" - unist-util-visit@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/unist-util-visit/-/unist-util-visit-5.0.0.tgz#a7de1f31f72ffd3519ea71814cccf5fd6a9217d6" From ab0cdb61d2048ee55cf874c5755310db1e762381 Mon Sep 17 00:00:00 2001 From: Sunny Zanchi Date: Thu, 17 Oct 2024 13:47:15 -0400 Subject: [PATCH 15/61] bump `@newrelic/gatsby-theme-newrelic` to 9.10.0 --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 288d78708cf..72e92d3193a 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "@emotion/styled": "^11.3.0", "@mdx-js/mdx": "2.0.0-next.8", "@mdx-js/react": "2.0.0-next.8", - "@newrelic/gatsby-theme-newrelic": "9.9.0", + "@newrelic/gatsby-theme-newrelic": "9.10.0", "@splitsoftware/splitio-react": "^1.2.4", "ansi-colors": "^4.1.3", "cockatiel": "^3.0.0-beta.0", diff --git a/yarn.lock b/yarn.lock index 427cbc61477..261c1ea1f3d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3616,10 +3616,10 @@ eslint-plugin-promise "^4.2.1" eslint-plugin-react "^7.14.3" -"@newrelic/gatsby-theme-newrelic@9.9.0": - version "9.9.0" - resolved "https://registry.yarnpkg.com/@newrelic/gatsby-theme-newrelic/-/gatsby-theme-newrelic-9.9.0.tgz#1940f1bd6f085b402c9fad648ee9c86ac6c3b13c" - integrity sha512-INY4C+xxABUngaFJr7MGo7IApaA413uxR2a08vm/acbsRJSi8ft2Ph+boP1pfUrCqvlnLRDJ8XTHccTCHLhReQ== +"@newrelic/gatsby-theme-newrelic@9.10.0": + version "9.10.0" + resolved "https://registry.yarnpkg.com/@newrelic/gatsby-theme-newrelic/-/gatsby-theme-newrelic-9.10.0.tgz#0f8d08d4446b6261d059f28560f0d592a3511e92" + integrity sha512-nof9Ixk6lIiXIy6Ozf4r295YV2wWuzHMDd4F32h+WFrdiVY0szFNzzbZM920P30Jzm/yCaIJeJxz3Z4VwAkWKg== dependencies: "@segment/analytics-next" "1.63.0" "@wry/equality" "^0.4.0" From 8ec0ed24afa840b6752d8de52ced75cd6529a12e Mon Sep 17 00:00:00 2001 From: Sunny Zanchi Date: Thu, 17 Oct 2024 14:33:52 -0400 Subject: [PATCH 16/61] remove search from left nav --- src/layouts/MainLayout.js | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/src/layouts/MainLayout.js b/src/layouts/MainLayout.js index 2d131f28989..1308b5ffe4a 100644 --- a/src/layouts/MainLayout.js +++ b/src/layouts/MainLayout.js @@ -8,9 +8,7 @@ import { useLayout, Icon, Button, - SearchInput, addPageAction, - useTranslation, LoggedInProvider, } from '@newrelic/gatsby-theme-newrelic'; import { isNavClosed, setNavClosed } from '../utils/navState'; @@ -20,7 +18,7 @@ import { CSSTransition } from 'react-transition-group'; import Layout from '../components/Layout'; import SEO from '../components/SEO'; import RootNavigation from '../components/RootNavigation'; -import { useLocation, navigate } from '@reach/router'; +import { useLocation } from '@reach/router'; import { MainLayoutContext } from '../components/MainLayoutContext'; const MainLayout = ({ children, pageContext }) => { @@ -28,9 +26,7 @@ const MainLayout = ({ children, pageContext }) => { const { locale, slug } = pageContext; const location = useLocation(); const [isMobileNavOpen, setIsMobileNavOpen] = useState(false); - const [searchTerm, setSearchTerm] = useState(''); const [sidebar, setSidebar] = useState(true); - const { t } = useTranslation(); const navHeaderHeight = '100px'; const isStyleGuide = slug.match(/\/docs\/style-guide/) || slug.match(/\/docs\/agile-handbook/); @@ -195,31 +191,6 @@ const MainLayout = ({ children, pageContext }) => { /> - {sidebar && ( - setSearchTerm(e.target.value)} - onSubmit={() => { - addPageAction({ - eventName: 'swiftypeSearchInput', - category: 'SearchInput', - searchTerm, - searchLocation: 'sidebar', - }); - navigate(`?q=${searchTerm || ''}`); - }} - css={css` - margin: 1.5rem 0 2rem; - svg { - color: var(--primary-text-color); - } - `} - /> - )} <> From 69493846c6137c051e0f02f66e7ae56723885930 Mon Sep 17 00:00:00 2001 From: Sunny Zanchi Date: Thu, 17 Oct 2024 14:47:40 -0400 Subject: [PATCH 17/61] bump `@newrelic/gatsby-theme-newrelic` to 9.10.1 --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 72e92d3193a..f45cce17967 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "@emotion/styled": "^11.3.0", "@mdx-js/mdx": "2.0.0-next.8", "@mdx-js/react": "2.0.0-next.8", - "@newrelic/gatsby-theme-newrelic": "9.10.0", + "@newrelic/gatsby-theme-newrelic": "9.10.1", "@splitsoftware/splitio-react": "^1.2.4", "ansi-colors": "^4.1.3", "cockatiel": "^3.0.0-beta.0", diff --git a/yarn.lock b/yarn.lock index 261c1ea1f3d..941a49feed0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3616,10 +3616,10 @@ eslint-plugin-promise "^4.2.1" eslint-plugin-react "^7.14.3" -"@newrelic/gatsby-theme-newrelic@9.10.0": - version "9.10.0" - resolved "https://registry.yarnpkg.com/@newrelic/gatsby-theme-newrelic/-/gatsby-theme-newrelic-9.10.0.tgz#0f8d08d4446b6261d059f28560f0d592a3511e92" - integrity sha512-nof9Ixk6lIiXIy6Ozf4r295YV2wWuzHMDd4F32h+WFrdiVY0szFNzzbZM920P30Jzm/yCaIJeJxz3Z4VwAkWKg== +"@newrelic/gatsby-theme-newrelic@9.10.1": + version "9.10.1" + resolved "https://registry.yarnpkg.com/@newrelic/gatsby-theme-newrelic/-/gatsby-theme-newrelic-9.10.1.tgz#98b4e1af21fb2c8e73d5230e57647ef11c09d141" + integrity sha512-edD0WabYLvKi/rkUeabChx2QWdO0lFyF6uQek3xR9S37o8rk2YntRksilRSjsvrXPqDDScmAoiI3uXI5SeYkaw== dependencies: "@segment/analytics-next" "1.63.0" "@wry/equality" "^0.4.0" From 382a346a2d5475dfac89d29d25a7dd0e5b05f3b8 Mon Sep 17 00:00:00 2001 From: Sunny Zanchi Date: Thu, 17 Oct 2024 16:12:53 -0400 Subject: [PATCH 18/61] fix spacing in left nav --- src/components/Navigation.js | 2 +- src/layouts/MainLayout.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Navigation.js b/src/components/Navigation.js index 1607490d2b4..b527c816ba6 100644 --- a/src/components/Navigation.js +++ b/src/components/Navigation.js @@ -32,7 +32,7 @@ const Navigation = ({ nav, className }) => { css={css` height: 100%; overflow: auto; - margin: 16px 0; + margin: 0 0 16px; -ms-overflow-style: none; scrollbar-width: none; &::-webkit-scrollbar { diff --git a/src/layouts/MainLayout.js b/src/layouts/MainLayout.js index 1308b5ffe4a..fa638472609 100644 --- a/src/layouts/MainLayout.js +++ b/src/layouts/MainLayout.js @@ -27,7 +27,7 @@ const MainLayout = ({ children, pageContext }) => { const location = useLocation(); const [isMobileNavOpen, setIsMobileNavOpen] = useState(false); const [sidebar, setSidebar] = useState(true); - const navHeaderHeight = '100px'; + const navHeaderHeight = '55px'; const isStyleGuide = slug.match(/\/docs\/style-guide/) || slug.match(/\/docs\/agile-handbook/); const addTrailingSlash = (path) => { From 1e0518f87c17dca528f69285d1494f0b90f9b595 Mon Sep 17 00:00:00 2001 From: Sunny Zanchi Date: Thu, 17 Oct 2024 17:45:39 -0400 Subject: [PATCH 19/61] bump `@newrelic/gatsby-theme-newrelic` to 9.10.2 --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index f45cce17967..be68b0f06cf 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "@emotion/styled": "^11.3.0", "@mdx-js/mdx": "2.0.0-next.8", "@mdx-js/react": "2.0.0-next.8", - "@newrelic/gatsby-theme-newrelic": "9.10.1", + "@newrelic/gatsby-theme-newrelic": "9.10.2", "@splitsoftware/splitio-react": "^1.2.4", "ansi-colors": "^4.1.3", "cockatiel": "^3.0.0-beta.0", diff --git a/yarn.lock b/yarn.lock index 941a49feed0..005fd92dda8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3616,10 +3616,10 @@ eslint-plugin-promise "^4.2.1" eslint-plugin-react "^7.14.3" -"@newrelic/gatsby-theme-newrelic@9.10.1": - version "9.10.1" - resolved "https://registry.yarnpkg.com/@newrelic/gatsby-theme-newrelic/-/gatsby-theme-newrelic-9.10.1.tgz#98b4e1af21fb2c8e73d5230e57647ef11c09d141" - integrity sha512-edD0WabYLvKi/rkUeabChx2QWdO0lFyF6uQek3xR9S37o8rk2YntRksilRSjsvrXPqDDScmAoiI3uXI5SeYkaw== +"@newrelic/gatsby-theme-newrelic@9.10.2": + version "9.10.2" + resolved "https://registry.yarnpkg.com/@newrelic/gatsby-theme-newrelic/-/gatsby-theme-newrelic-9.10.2.tgz#5110aaecdf073db61eed57a6539ec320cb95139e" + integrity sha512-g6u/wGgV2mwp1sC1cLPtFFBj8+/6d+PPvQ/HHRo2pPWHoQfGZ7PCvJwWRkYgtmRnqBEuimgkrdsnu2wkS9N2rg== dependencies: "@segment/analytics-next" "1.63.0" "@wry/equality" "^0.4.0" From b5a8a498e5e710b0d61a71024578120f3fdf5f85 Mon Sep 17 00:00:00 2001 From: jcol <116673918+jeff-colucci@users.noreply.github.com> Date: Thu, 17 Oct 2024 17:05:18 -0500 Subject: [PATCH 20/61] Update testing-python-agent.mdx --- .../troubleshooting/testing-python-agent.mdx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/content/docs/apm/agents/python-agent/troubleshooting/testing-python-agent.mdx b/src/content/docs/apm/agents/python-agent/troubleshooting/testing-python-agent.mdx index 8f306f596d6..d0ec034528f 100644 --- a/src/content/docs/apm/agents/python-agent/troubleshooting/testing-python-agent.mdx +++ b/src/content/docs/apm/agents/python-agent/troubleshooting/testing-python-agent.mdx @@ -138,7 +138,7 @@ dig collector.newrelic.com [output] ;collector.newrelic.com. IN A [output] [output] ;; ANSWER SECTION: -[output] collector.newrelic.com. 2453 IN A 50.31.164.140 +[output] collector.newrelic.com. 2453 IN A 162.247.243.32 [output] [output] ;; AUTHORITY SECTION: [output] newrelic.com. 1163 IN NS ns2.p21.dynect.net. @@ -178,9 +178,9 @@ If you cannot contact the data collector host, configure the agent to use any fi > ```sh ping collector.newrelic.com - [output] PING collector.newrelic.com (50.31.164.140): 56 data bytes - [output] 64 bytes from 50.31.164.140: icmp_seq=0 ttl=239 time=234.204 ms - [output] 64 bytes from 50.31.164.140: icmp_seq=1 ttl=239 time=230.095 ms + [output] PING collector.newrelic.com (162.247.243.32): 56 data bytes + [output] 64 bytes from 162.247.243.32: icmp_seq=0 ttl=239 time=234.204 ms + [output] 64 bytes from 162.247.243.32: icmp_seq=1 ttl=239 time=230.095 ms [output] ... ``` @@ -193,20 +193,20 @@ If you cannot contact the data collector host, configure the agent to use any fi ```sh traceroute -p 80 collector.newrelic.com - [output] traceroute to collector.newrelic.com (50.31.164.140), 64 hops max, 52 byte packets + [output] traceroute to collector.newrelic.com (162.247.243.32), 64 hops max, 52 byte packets [output] 1 ... [output] 2 ... [output] 3 ... [output] 4 * * * - [output] 5 collector.newrelic.com (50.31.164.140) 232.590 ms 231.000 ms 232.041 ms + [output] 5 collector.newrelic.com (162.247.243.32) 232.590 ms 231.000 ms 232.041 ms traceroute -p 443 collector.newrelic.com - [output] traceroute to collector.newrelic.com (50.31.164.140), 64 hops max, 52 byte packets + [output] traceroute to collector.newrelic.com (162.247.243.32), 64 hops max, 52 byte packets [output] 1 ... [output] 2 ... [output] 3 ... [output] 4 * * * - [output] 5 collector.newrelic.com (50.31.164.140) 253.513 ms 231.134 ms 232.511 ms + [output] 5 collector.newrelic.com (162.247.243.32) 253.513 ms 231.134 ms 232.511 ms ``` From 7f302b08673b0cc57464c965677067337efd6fd2 Mon Sep 17 00:00:00 2001 From: jcol <116673918+jeff-colucci@users.noreply.github.com> Date: Thu, 17 Oct 2024 18:33:14 -0500 Subject: [PATCH 21/61] Update k8s-agent-operator.mdx --- .../kubernetes-integration/installation/k8s-agent-operator.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/kubernetes-pixie/kubernetes-integration/installation/k8s-agent-operator.mdx b/src/content/docs/kubernetes-pixie/kubernetes-integration/installation/k8s-agent-operator.mdx index f3152d6236f..5464eaa4a8c 100644 --- a/src/content/docs/kubernetes-pixie/kubernetes-integration/installation/k8s-agent-operator.mdx +++ b/src/content/docs/kubernetes-pixie/kubernetes-integration/installation/k8s-agent-operator.mdx @@ -109,7 +109,7 @@ spec: # env: ... ``` -For NodeJS +For Node.js: ```yaml apiVersion: newrelic.com/v1alpha2 From 2c1d79390eef253c353a090da391443ff3c4b98c Mon Sep 17 00:00:00 2001 From: jcol <116673918+jeff-colucci@users.noreply.github.com> Date: Thu, 17 Oct 2024 18:34:29 -0500 Subject: [PATCH 22/61] Update k8s-agent-operator.mdx --- .../installation/k8s-agent-operator.mdx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/content/docs/kubernetes-pixie/kubernetes-integration/installation/k8s-agent-operator.mdx b/src/content/docs/kubernetes-pixie/kubernetes-integration/installation/k8s-agent-operator.mdx index 5464eaa4a8c..1205531b4ab 100644 --- a/src/content/docs/kubernetes-pixie/kubernetes-integration/installation/k8s-agent-operator.mdx +++ b/src/content/docs/kubernetes-pixie/kubernetes-integration/installation/k8s-agent-operator.mdx @@ -82,7 +82,8 @@ A Kubernetes secret will automatically be replicated from the operator's namespa * [.NET](https://hub.docker.com/repository/docker/newrelic/newrelic-dotnet-init/general) * [Ruby](https://hub.docker.com/repository/docker/newrelic/newrelic-ruby-init/general) -For .NET +For .NET: + ```yaml apiVersion: newrelic.com/v1alpha2 kind: Instrumentation @@ -94,7 +95,7 @@ spec: image: newrelic/newrelic-dotnet-init:latest # env: ... ``` -For Java +For Java: ```yaml apiVersion: newrelic.com/v1alpha2 @@ -124,7 +125,7 @@ spec: # env: ... ``` -For Python +For Python: ```yaml apiVersion: newrelic.com/v1alpha2 @@ -139,7 +140,7 @@ spec: # env: ... ``` -For Ruby +For Ruby: ```yaml apiVersion: newrelic.com/v1alpha2 @@ -154,7 +155,7 @@ spec: # env: ... ``` -For environment specific configurations +For environment specific configurations: ```yaml apiVersion: newrelic.com/v1alpha2 @@ -178,7 +179,7 @@ spec: value: "$(NEW_RELIC_LABELS)-$(NEW_RELIC_POD_NAME)" ``` -Targeting everything in a specific namespace with a label +Targeting everything in a specific namespace with a label: ```yaml apiVersion: newrelic.com/v1alpha2 @@ -195,7 +196,7 @@ spec: values: ["java"] ``` -Targeting a pod with a specific label +Targeting a pod with a specific label: ```yaml apiVersion: newrelic.com/v1alpha2 @@ -212,7 +213,7 @@ spec: values: ["dotnet"] ``` -Using a secret with a non-default name +Using a secret with a non-default name: ```yaml apiVersion: newrelic.com/v1alpha2 From 6bc8cb435170870f9092c5d90dcbab04661e7c0a Mon Sep 17 00:00:00 2001 From: svc-docs-eng-opensource-bot Date: Fri, 18 Oct 2024 12:04:54 +0000 Subject: [PATCH 23/61] chore: add translations --- .../user-management-concepts.mdx | 154 +----- .../java-agent-configuration-config-file.mdx | 32 ++ ...structure-agent-configuration-settings.mdx | 12 +- .../get-started/intro-new-relic.mdx | 154 ++---- .../nrql/nrql-syntax-clauses-functions.mdx | 488 ++++++++++-------- 5 files changed, 384 insertions(+), 456 deletions(-) diff --git a/src/i18n/content/kr/docs/accounts/accounts-billing/new-relic-one-user-management/user-management-concepts.mdx b/src/i18n/content/kr/docs/accounts/accounts-billing/new-relic-one-user-management/user-management-concepts.mdx index e94e72cf1c6..ed15895c70d 100644 --- a/src/i18n/content/kr/docs/accounts/accounts-billing/new-relic-one-user-management/user-management-concepts.mdx +++ b/src/i18n/content/kr/docs/accounts/accounts-billing/new-relic-one-user-management/user-management-concepts.mdx @@ -35,11 +35,7 @@ translationType: human 사용자가 뉴렐릭에 액세스하는 방법을 제어하고 싶으신가요? [여기](/docs/accounts/accounts-billing/new-relic-one-user-management/authentication-domains-saml-sso-scim-more/)에서 인증 도메인을 관리할 수 있습니다. -New Relic user mgmt groups UI - default group assignments +New Relic user mgmt groups UI - default group assignments
기본 그룹(**Admin****User**)에 역할, 계정 및 관리 설정에 대한 액세스 권한이 부여되는 방법을 보여주는 [액세스 관리(**Access management**) UI](/docs/accounts/accounts-billing/new-relic-one-user-management/user-management-ui-and-tasks#where)입니다. @@ -47,11 +43,7 @@ translationType: human 다음은 그룹 액세스가 작동하는 방식과 그룹 액세스가 더 넓은 조직과 어떻게 관련되는지를 보여주는 다이어그램입니다. -New Relic user management diagram +New Relic user management diagram
그룹이 그 그룹에 속한 사용자에게 어떻게 역할 및 계정에 대한 액세스 권한을 부여하는지를 보여주는 다이어그램입니다. @@ -75,29 +67,8 @@ translationType: human 두 가지 기본 사용자 그룹이 있습니다. -* - **User** - - - : 이 그룹에 속한 사용자는 옵저버빌리티와 모니터링 기능을 사용하고 설정할 수 있지만, 청구 관리 또는 다른 사용자 관리 같은 계정 수준의 작업은 수행**할 수 없습니다**. 모든 옵저버빌리티 플랫폼 툴에 대한 통제 권한을 부여하는 [모든 제품 관리자(](#standard-roles) - - - [**All product admin**](#standard-roles) - - - ) 역할에 액세스할 수 있지만, 더 높은 수준의 계정 및 사용자 관리 기능에 대한 액세스 권한을 부여하는 [관리 설정](/docs/accounts/accounts-billing/new-relic-one-user-management/user-management-concepts#admin-settings)은 수행할 수 없습니다. - -* - **Admin** - - - : [모든 제품 관리자(](#standard-roles) - - - [**All product admin**](#standard-roles) - - - [) 역할](#standard-roles)을 가지며 모든 [관리 설정](/docs/accounts/accounts-billing/new-relic-one-user-management/user-management-concepts#admin-settings)을 수행할 수 있습니다. 결과적으로 이 그룹은 더 높은 수준의 관리 기능 등, 모든 기능에 액세스할 수 있습니다. +* **User**: 이 그룹에 속한 사용자는 옵저버빌리티와 모니터링 기능을 사용하고 설정할 수 있지만, 청구 관리 또는 다른 사용자 관리 같은 계정 수준의 작업은 수행**할 수 없습니다**. 모든 옵저버빌리티 플랫폼 툴에 대한 통제 권한을 부여하는 [모든 제품 관리자(**All product admin**](#standard-roles)) 역할에 액세스할 수 있지만, 더 높은 수준의 계정 및 사용자 관리 기능에 대한 액세스 권한을 부여하는 [관리 설정](/docs/accounts/accounts-billing/new-relic-one-user-management/user-management-concepts#admin-settings)은 수행할 수 없습니다. +* **Admin**: [모든 제품 관리자(**All product admin**) 역할](#standard-roles)을 가지며 모든 [관리 설정](/docs/accounts/accounts-billing/new-relic-one-user-management/user-management-concepts#admin-settings)을 수행할 수 있습니다. 결과적으로 이 그룹은 더 높은 수준의 관리 기능 등, 모든 기능에 액세스할 수 있습니다. 사용자가 속한 그룹을 수정하려면 **Access management** UI로 이동하여 그룹을 수정하거나, **User management** UI로 이동하여 사용자를 수정합니다. @@ -149,7 +120,7 @@ translationType: human - 이 역할에는 조직 수준 설정, 사용자 및 청구를 관리하는 역량을 **제외한** 모든 뉴렐릭 플랫폼 권한이 포함됩니다. 플랫폼 기능의 구성이 허용된다는 점에서는 관리자 역할이지만(예: 설정 구성), 조직 수준의 관리 권한([관리 설정이 필요한 권한](#admin-settings))은 제공되지 않습니다. + 이 역할에는 조직 수준 설정, 사용자 및 청구를 관리하는 역량을 **제외한** 모든 뉴렐릭 플랫폼 권한이 포함됩니다. 플랫폼 기능의 구성이 허용된다는 점에서는 관리자 역할이지만(예: 설정 구성), 조직 수준의 관리 권한([관리 설정이 필요한 권한](#admin-settings))은 제공되지 않습니다. 이 역할은 본질적으로 아래의 표준 사용자(**Standard user**) 역할이지만 옵저버빌리티 기능을 구성하는 역량을 추가로 가집니다. @@ -167,7 +138,7 @@ translationType: human - 플랫폼 기능(예: APM UI 및 UI)에 대한 액세스를 제공하지만 해당 기능을 구성할 수 있는 권한이 부족하고 조직 수준 및 사용자 관리 권한이 부족합니다. + 플랫폼 기능(예: APM UI 및 UI)에 대한 액세스를 제공하지만 해당 기능을 구성할 수 있는 권한이 부족하고 조직 수준 및 사용자 관리 권한이 부족합니다. 액세스 관리 UI를 사용하면 플랫폼 전반에서 표준 사용자 역할에 포함된 기능을 확인할 수 있습니다. @@ -203,53 +174,16 @@ translationType: human 설정에는 다음이 포함됩니다. -* - **Organization settings** - - - : 계정 추가, 조직 및 계정 이름 변경 등 조직 설정과 관련된 권한입니다. - -* - **Authentication domain settings** - - - : 인증 도메인 구성, 그룹 및 역할 맞춤화 등 사용자 추가 및 관리와 관련된 권한입니다. 여기에는 다음과 같은 옵션이 포함됩니다. - - * - **Manage** - - - : 도메인 구성, 사용자 추가 등 인증 도메인의 모든 측면을 관리할 수 있습니다. - - * - **Read only** - - - : 인증 도메인 및 사용자 정보를 확인할 수 있습니다. - - * - **Add users** - - - : 사용자 정보를 확인하고 조직에 사용자를 추가할 수 있지만 그 외 인증 도메인을 설정하거나 관리 기능은 수행할 수 없습니다. - - * - **Read users** - - - : 사용자 정보만 확인할 수 있습니다. - -* - **Billing** - +* **Organization settings**: 계정 추가, 조직 및 계정 이름 변경 등 조직 설정과 관련된 권한입니다. - : 사용자가 청구, 사용량, 데이터 보존 정보를 확인하고 관리할 수 있습니다. 여러 계정이 있는 조직의 경우 청구 정보는 일반적으로 조직에서 생성된 첫 번째 계정인 보고 계정( +* **Authentication domain settings**: 인증 도메인 구성, 그룹 및 역할 맞춤화 등 사용자 추가 및 관리와 관련된 권한입니다. 여기에는 다음과 같은 옵션이 포함됩니다. - - **reporting account** - + * **Manage**: 도메인 구성, 사용자 추가 등 인증 도메인의 모든 측면을 관리할 수 있습니다. + * **Read only**: 인증 도메인 및 사용자 정보를 확인할 수 있습니다. + * **Add users**: 사용자 정보를 확인하고 조직에 사용자를 추가할 수 있지만 그 외 인증 도메인을 설정하거나 관리 기능은 수행할 수 없습니다. + * **Read users**: 사용자 정보만 확인할 수 있습니다. - )에 집계됩니다. +* **Billing**: 사용자가 청구, 사용량, 데이터 보존 정보를 확인하고 관리할 수 있습니다. 여러 계정이 있는 조직의 경우 청구 정보는 일반적으로 조직에서 생성된 첫 번째 계정인 보고 계정(**reporting account** )에 집계됩니다. ### 그룹 관리자 [#group-admin] @@ -259,11 +193,6 @@ translationType: human **Group admin** 역할을 사용하려면 사용자는 최소 하나의 인증 도메인 관리자 설정 역량이 있는 그룹에 속해 있어야 합니다. -