Skip to content

Commit 2f9c1c0

Browse files
authored
Add titles to golden metrics (#76)
Use `AS ...` to specify a more human readable title for golden metrics (currently showing up as "Binop" and "newrelic.timeslice.value" in chart legends)
1 parent b7e63af commit 2f9c1c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
responseTimeMs:
22
title: Response time (ms)
33
query:
4-
select: average(newrelic.timeslice.value)
4+
select: average(newrelic.timeslice.value) AS 'Response time (ms)'
55
where: metricTimesliceName in ('HttpDispatcher', 'OtherTransaction/all')
66
facet: appName
77
throughput:
88
title: Throughput
99
query:
10-
select: count(newrelic.timeslice.value)
10+
select: count(newrelic.timeslice.value) AS 'Throughput'
1111
where: metricTimesliceName in ('HttpDispatcher', 'OtherTransaction/all')
1212
facet: appName
1313
errorRate:
1414
title: Error rate
1515
query:
1616
select: filter(count(newrelic.timeslice.value), where metricTimesliceName = 'Errors/all')
1717
/ (filter(count(newrelic.timeslice.value), where metricTimesliceName in ('HttpDispatcher',
18-
'OtherTransaction/all'))) * 100
18+
'OtherTransaction/all'))) * 100 AS 'Error %'
1919
facet: appName

0 commit comments

Comments
 (0)