You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -77,8 +81,9 @@ From left to right, top to bottom:
77
81
id=""
78
82
title="APM Agent API transaction events request per minute"
79
83
>
80
-
```
81
-
FROM Metric select rate(sum(newrelic.resourceConsumption.currentValue), 1 minute) where limitName = 'APM Agent API transaction events requests per minute' TIMESERIES
84
+
```sql
85
+
FROM Metric SELECT rate(sum(newrelic.resourceConsumption.currentValue), 1 minute)
86
+
WHERE limitName ='APM Agent API transaction events requests per minute' TIMESERIES
82
87
```
83
88
</Collapser>
84
89
@@ -87,8 +92,11 @@ From left to right, top to bottom:
87
92
id=""
88
93
title="Trace API With limit line"
89
94
>
90
-
```
91
-
FROM Metric select rate(sum(newrelic.resourceConsumption.currentValue), 1 minute) as 'usage', latest(newrelic.resourceConsumption.limitValue) as 'limit' where limitName = 'Trace API requests per minute' TIMESERIES
FACET limitName, consumingAccountId TIMESERIES LIMIT MAX
134
150
```
135
151
136
152
5. Finally, save it.
@@ -141,15 +157,20 @@ From left to right, top to bottom:
141
157
id=""
142
158
title="Limit list and NrIntegrationError"
143
159
>
144
-
```
145
-
FROM Metric, NrIntegrationError select rate(sum(newrelic.resourceConsumption.currentValue), 1 minute) as 'Per Minute Count',latest(newrelic.resourceConsumption.limitValue) as ' limit Value',(rate(sum(newrelic.resourceConsumption.currentValue), 1 minute)/latest(newrelic.resourceConsumption.limitValue)*100)as 'Percent Used', filter (count(*), where NrIntegrationError.limitValue is not null) as 'limit reached count' facet limitName limit 1000
filter(count(*), WHERENrIntegrationError.limitValueis not null) AS'Limit Reached Count'
166
+
FACET limitName LIMIT1000
146
167
```
147
168
</Collapser>
148
169
</CollapserGroup>
149
170
150
171
## Limit metrics
151
172
152
-
These metrics, used in the dashboard queries above, can hone in on a single limit or resource. Or, with the help of `FACET limitName or resource` provide a view across all your limits.
173
+
These metrics, used in the dashboard queries above, can hone in on a single limit or resource. Or, with the help of `FACET limitName OR resource` provide a view across all your limits.
153
174
154
175
<CollapserGroup>
155
176
<Collapser
@@ -161,14 +182,16 @@ These metrics, used in the dashboard queries above, can hone in on a single limi
161
182
162
183
* Example for Metric API requests per minute.
163
184
164
-
```
165
-
FROM Metric select latest(newrelic.resourceConsumption.limitValue) where limitName = 'Metric API requests per minute'
185
+
```sql
186
+
FROM Metric SELECT latest(newrelic.resourceConsumption.limitValue)
187
+
WHERE limitName ='Metric API requests per minute'
166
188
```
167
189
168
190
* To show all limits, add `FACET limitName` and consider grouping by `limitTimeInterval`.
169
191
170
-
```
171
-
FROM Metric select latest(newrelic.resourceConsumption.limitValue) WHERE limitTimeInterval = '1 minute' FACET limitName limit max
192
+
```sql
193
+
FROM Metric SELECT latest(newrelic.resourceConsumption.limitValue)
194
+
WHERE limitTimeInterval ='1 minute' FACET limitName LIMIT MAX
172
195
```
173
196
</Collapser>
174
197
@@ -181,14 +204,16 @@ These metrics, used in the dashboard queries above, can hone in on a single limi
181
204
182
205
* Example for Metric API request per minute:
183
206
184
-
```
185
-
FROM Metric select rate(sum(newrelic.resourceConsumption.currentValue),1 minute) where limitName = 'Metric API requests per minute'
207
+
```sql
208
+
FROM Metric SELECT rate(sum(newrelic.resourceConsumption.currentValue), 1 minute)
209
+
WHERE limitName ='Metric API requests per minute'
186
210
```
187
211
188
212
* To show all limits, add `FACET limitName` and consider grouping by `limitTimeInterval`.
189
213
190
-
```
191
-
FROM Metric select rate(sum(newrelic.resourceConsumption.currentValue),1 minute) where limitTimeInterval = '1 minute' FACET limitName limit max
214
+
```sql
215
+
FROM Metric SELECT rate(sum(newrelic.resourceConsumption.currentValue), 1 minute)
216
+
WHERE limitTimeInterval ='1 minute' FACET limitName LIMIT MAX
192
217
```
193
218
</Collapser>
194
219
@@ -201,8 +226,9 @@ These metrics, used in the dashboard queries above, can hone in on a single limi
201
226
202
227
The most granular we have is `dataType`. It is possible for multiple instances of `limitName` to impact a single type, such as Metric RPM and DPM. If we know, we will display `limitName`.
203
228
204
-
```
205
-
From Metric select rate(sum(newrelic.resourceConsumption.impact), 1 minute) facet dataType, resource, impact, limitName TIMESERIES limit max
229
+
```sql
230
+
FROM Metric SELECT rate(sum(newrelic.resourceConsumption.impact), 1 minute)
231
+
FACET dataType, resource, impact, limitName TIMESERIES LIMIT MAX
206
232
```
207
233
</Collapser>
208
234
</CollapserGroup>
@@ -240,8 +266,10 @@ You can use the following NRQL queries to create alerts. Learn about creating al
240
266
id=""
241
267
title="Limits faceted by LimitName and scoped by Timewindow"
242
268
>
243
-
```
244
-
From Metric select (rate(sum(newrelic.resourceConsumption.currentValue), 1 minute)/latest(newrelic.resourceConsumption.limitValue))*100 facet limitName
0 commit comments