@@ -3,9 +3,9 @@ throughput:
3
3
unit : REQUESTS_PER_MINUTE
4
4
queries :
5
5
opentelemetry :
6
- select : rate(count(* ), 1 minute)
7
- from : Span
8
- where : span.kind LIKE 'server' OR span.kind LIKE 'consumer' OR kind LIKE ' server' OR kind LIKE 'consumer'
6
+ select : rate(count(%.server%duration ), 1 minute)
7
+ from : Metric
8
+ where : http.server.duration IS NOT NULL OR http.server.request.duration IS NOT NULL OR rpc. server.duration IS NOT NULL
9
9
newrelic-opentelemetry :
10
10
select : rate(count(apm.service.transaction.duration), 1 minute)
11
11
from : Metric
@@ -23,9 +23,9 @@ errorRate:
23
23
unit : PERCENTAGE
24
24
queries :
25
25
opentelemetry :
26
- select : ( filter(count(* ), WHERE otel .status_code = 'ERROR') * 100) / count(* )
27
- from : Span
28
- where : span.kind LIKE ' server' OR span.kind LIKE 'consumer' OR kind LIKE ' server' OR kind LIKE 'consumer'
26
+ select : filter(count(%.server%duration ), WHERE numeric(http .status_code) >= 500 OR numeric(http.response.status_code) >= 500)/ count(%.server%duration )
27
+ from : Metric
28
+ where : http. server.duration IS NOT NULL OR http. server.request.duration IS NOT NULL
29
29
newrelic-opentelemetry :
30
30
select : sum(apm.service.error.count) * 100 / count(apm.service.transaction.duration)
31
31
from : Metric
@@ -43,9 +43,9 @@ responseTimeMs:
43
43
unit : MS
44
44
queries :
45
45
opentelemetry :
46
- select : average(duration.ms )
47
- from : Span
48
- where : span.kind LIKE 'server' OR span.kind LIKE 'consumer' OR kind LIKE ' server' OR kind LIKE 'consumer'
46
+ select : average(convert(%.server%duration, unit OR 's', 'ms') )
47
+ from : Metric
48
+ where : http.server.duration IS NOT NULL OR http.server.request.duration IS NOT NULL OR rpc. server.duration IS NOT NULL
49
49
newrelic-opentelemetry :
50
50
select : average(convert(apm.service.transaction.duration, unit, 'ms'))
51
51
from : Metric
0 commit comments