From 7750ab1ec9f7f9857e0b8a7361df7e05ed39cb65 Mon Sep 17 00:00:00 2001 From: Brian Hensley <48165493+brnhensley@users.noreply.github.com> Date: Fri, 18 Oct 2024 10:13:24 -0700 Subject: [PATCH 1/3] chore: format shell cmd --- .../tarball-manual-install-infrastructure-agent-linux.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/content/docs/infrastructure/install-infrastructure-agent/linux-installation/tarball-manual-install-infrastructure-agent-linux.mdx b/src/content/docs/infrastructure/install-infrastructure-agent/linux-installation/tarball-manual-install-infrastructure-agent-linux.mdx index b95e65d0546..fb5ba7a3203 100644 --- a/src/content/docs/infrastructure/install-infrastructure-agent/linux-installation/tarball-manual-install-infrastructure-agent-linux.mdx +++ b/src/content/docs/infrastructure/install-infrastructure-agent/linux-installation/tarball-manual-install-infrastructure-agent-linux.mdx @@ -149,10 +149,10 @@ Before you proceed to install the service script, you need to determine which se For example, run the following sequence: - ``` - $ command -v systemctl - $ command -v initctl - /sbin/initctl + ```sh + command -v systemctl + command -v initctl + [output] /sbin/initctl ``` Based on this output, Upstart is the service manager, since it's the command that obtained a return. From 16f5c85d2431861a07b37981da0c81536cec27e3 Mon Sep 17 00:00:00 2001 From: Brian Hensley <48165493+brnhensley@users.noreply.github.com> Date: Fri, 18 Oct 2024 10:19:35 -0700 Subject: [PATCH 2/3] chore format codeblock based on the style guide I think anothe one should be: ```sql FROM ( FROM ProcessSample SELECT rate ( uniqueCount(awsRegion, awsAvailabilityZone, commandName), 30 seconds ) AS 'cardinalityRate' WHERE nr.entityType = 'HOST' TIMESERIES 30 seconds ) SELECT max(cardinalityRate) AS 'maxCardinalityRate' SINCE 3 hours AGO ``` but I didn't make that change --- .../create-metrics-other-data-types.mdx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/content/docs/data-apis/convert-to-metrics/create-metrics-other-data-types.mdx b/src/content/docs/data-apis/convert-to-metrics/create-metrics-other-data-types.mdx index 978660f7fbd..151f0a6397c 100644 --- a/src/content/docs/data-apis/convert-to-metrics/create-metrics-other-data-types.mdx +++ b/src/content/docs/data-apis/convert-to-metrics/create-metrics-other-data-types.mdx @@ -282,8 +282,13 @@ The available [NRQL aggregator functions](/docs/insights/nrql-new-relic-query-la > If you created a summary metric type, you can use the `count`, `sum`, `max`, `min`, and `average` aggregator functions, as shown in the following query: - ``` - SELECT count(appStartResponseTime), sum(appStartResponseTime), max(appStartResponseTime), min(appStartResponseTime), average(appStartResponseTime) FROM Metric + ```sql + SELECT count(appStartResponseTime), + sum(appStartResponseTime), + max(appStartResponseTime), + min(appStartResponseTime), + average(appStartResponseTime) + FROM Metric ``` From d45f293de857b4d1f26f27f8cd6e848fddfc34e3 Mon Sep 17 00:00:00 2001 From: Brian Hensley <48165493+brnhensley@users.noreply.github.com> Date: Fri, 18 Oct 2024 10:24:06 -0700 Subject: [PATCH 3/3] chore: format NRQL in json/graphql --- .../analyze-monitor-data-trends-metrics.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/content/docs/data-apis/convert-to-metrics/analyze-monitor-data-trends-metrics.mdx b/src/content/docs/data-apis/convert-to-metrics/analyze-monitor-data-trends-metrics.mdx index 9e63d0f66b2..244a25f899a 100644 --- a/src/content/docs/data-apis/convert-to-metrics/analyze-monitor-data-trends-metrics.mdx +++ b/src/content/docs/data-apis/convert-to-metrics/analyze-monitor-data-trends-metrics.mdx @@ -229,7 +229,7 @@ Mutation operations for events to metrics, logs to metrics, or spans to metrics { "id": "12", "name": "Test Rule", - "nrql": "select summary(duration) as 'server.responseTime' from Transaction where appName = 'Data Points Staging' facet name, appName, host" + "nrql": "SELECT summary(duration) AS 'server.responseTime' FROM Transaction WHERE appName = 'Data Points Staging' FACET name, appName, host" } ] } @@ -484,14 +484,14 @@ Query operations include: "enabled": true, "id": "1", "name": "Total Time Tx", - "nrql": "select summary(totalTime) as 'server.totalTime' from Transaction where appName = 'Data Points Staging' facet name, appName, host" + "nrql": "SELECT summary(totalTime) AS 'server.totalTime' FROM Transaction WHERE appName = 'Data Points Staging' FACET name, appName, host" }, { "description": "Metric for duration", "enabled": true, "id": "2", "name": "Duration Rule", - "nrql": "select summary(duration) as 'server.responseTime' from Transaction where appName = 'Data Points Staging' facet name, appName, host" + "nrql": "SELECT summary(duration) AS 'server.responseTime' FROM Transaction WHERE appName = 'Data Points Staging' FACET name, appName, host" } ] } @@ -554,7 +554,7 @@ Query operations include: "enabled": true, "id": "36", "name": "Total Time Tx", - "nrql": "select summary(totalTime) as 'server.totalTime' from Transaction where appName = 'Data Points Staging' facet name, appName, host" + "nrql": "SELECT summary(totalTime) AS 'server.totalTime' FROM Transaction WHERE appName = 'Data Points Staging' FACET name, appName, host" } ] }