Skip to content

Commit

Permalink
Add titles to golden metrics (#76)
Browse files Browse the repository at this point in the history
Use `AS ...` to specify a more human readable title for golden metrics (currently showing up as "Binop" and "newrelic.timeslice.value" in chart legends)
  • Loading branch information
cirne authored Feb 10, 2021
1 parent b7e63af commit 2f9c1c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions definitions/apm-application/golden_metrics.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
responseTimeMs:
title: Response time (ms)
query:
select: average(newrelic.timeslice.value)
select: average(newrelic.timeslice.value) AS 'Response time (ms)'
where: metricTimesliceName in ('HttpDispatcher', 'OtherTransaction/all')
facet: appName
throughput:
title: Throughput
query:
select: count(newrelic.timeslice.value)
select: count(newrelic.timeslice.value) AS 'Throughput'
where: metricTimesliceName in ('HttpDispatcher', 'OtherTransaction/all')
facet: appName
errorRate:
title: Error rate
query:
select: filter(count(newrelic.timeslice.value), where metricTimesliceName = 'Errors/all')
/ (filter(count(newrelic.timeslice.value), where metricTimesliceName in ('HttpDispatcher',
'OtherTransaction/all'))) * 100
'OtherTransaction/all'))) * 100 AS 'Error %'
facet: appName

0 comments on commit 2f9c1c0

Please sign in to comment.