Skip to content

Commit

Permalink
fix: Change New Relic metric names for Butler uptime metrics
Browse files Browse the repository at this point in the history
Fixes #419
  • Loading branch information
mountaindude committed Apr 29, 2022
1 parent d81ab39 commit 6ead1f6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/lib/post-to-new-relic.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,25 +40,25 @@ async function postButlerUptimeToNewRelic(fields) {
globals.config.get('Butler.uptimeMonitor.storeNewRelic.metric.dynamic.butlerMemoryUsage.enable') === true
) {
metrics.push({
name: 'heapUsed',
name: 'qs_butlerHeapUsed',
type: 'gauge',
value: fields.heapUsed,
});

metrics.push({
name: 'heapTotal',
name: 'qs_butlerHeapTotal',
type: 'gauge',
value: fields.heapTotal,
});

metrics.push({
name: 'externalMem',
name: 'qs_butlerExternalMem',
type: 'gauge',
value: fields.externalMemory,
});

metrics.push({
name: 'processMem',
name: 'qs_butlerProcessMem',
type: 'gauge',
value: fields.processMemory,
});
Expand All @@ -70,7 +70,7 @@ async function postButlerUptimeToNewRelic(fields) {
globals.config.get('Butler.uptimeMonitor.storeNewRelic.metric.dynamic.butlerUptime.enable') === true
) {
metrics.push({
name: 'uptimeMillisec',
name: 'qs_butlerUptimeMillisec',
type: 'gauge',
value: fields.uptimeMilliSec,
});
Expand Down

0 comments on commit 6ead1f6

Please sign in to comment.