Skip to content

Commit

Permalink
Merge pull request #19012 from brnhensley/patch-2
Browse files Browse the repository at this point in the history
chore: format code blocks
  • Loading branch information
jeff-colucci authored Oct 18, 2024
2 parents c3b87c0 + d45f293 commit 85bfc41
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
}
Expand Down Expand Up @@ -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"
}
]
}
Expand Down Expand Up @@ -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"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
</Collapser>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,10 @@ Before you proceed to install the service script, you need to determine which se
<Callout variant="tip">
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.
Expand Down

0 comments on commit 85bfc41

Please sign in to comment.