Skip to content

Commit 9143c84

Browse files
committed
add appmetrics instrumentation and install appmetrics-dash
1 parent f271da9 commit 9143c84

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

node-red-test/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ RUN npm install node-red-contrib-resinio
99
RUN npm install node-red-dashboard
1010
RUN npm install node-red-contrib-credentials
1111
RUN npm install appmetrics
12+
RUN npm install appmetrics-dash
1213

1314
COPY ./settings.js /data/settings.js
14-
COPY ./appmetrics.properties /usr/src/node-red/node_modules/appmetrics/appmetrics.properties
15+
COPY ./appmetrics.properties /usr/src/node-red/node_modules/appmetrics/appmetrics.properties
16+
17+
# following command will add instrumentation to Node.js (= node-red)
18+
RUN sed -i 's?#!/usr/bin/env node?#!/usr/bin/env node;\n\n/* JVA: adding appmetrics instructions*/\nvar appmetrics = require("appmetrics");\nvar monitoring = appmetrics.monitor();\n?' /usr/src/node-red/node_modules/node-red/red.js

0 commit comments

Comments
 (0)