diff --git a/src/butler-sos.js b/src/butler-sos.js index 399c907e..03c95634 100755 --- a/src/butler-sos.js +++ b/src/butler-sos.js @@ -127,28 +127,29 @@ async function mainScript() { // Default is to use log level defined in config file globals.logger.info('--------------------------------------'); globals.logger.info('Starting Butler SOS'); - globals.logger.info(`Log level : ${globals.getLoggingLevel()}`); - globals.logger.info(`App version : ${globals.appVersion}`); - globals.logger.info(`Instance ID : ${globals.hostInfo.id}`); + globals.logger.info(`Log level : ${globals.getLoggingLevel()}`); + globals.logger.info(`App version : ${globals.appVersion}`); + globals.logger.info(`Instance ID : ${globals.hostInfo.id}`); + globals.logger.info(`Running in Docker : ${globals.hostInfo.isRunningInDocker}`); globals.logger.info(''); - globals.logger.info(`Node version : ${globals.hostInfo.node.nodeVersion}`); - globals.logger.info(`Architecture : ${globals.hostInfo.si.os.arch}`); - globals.logger.info(`Platform : ${globals.hostInfo.si.os.platform}`); - globals.logger.info(`Release : ${globals.hostInfo.si.os.release}`); - globals.logger.info(`Distro : ${globals.hostInfo.si.os.distro}`); - globals.logger.info(`Codename : ${globals.hostInfo.si.os.codename}`); - globals.logger.info(`Virtual : ${globals.hostInfo.si.system.virtual}`); - globals.logger.info(`Processors : ${globals.hostInfo.si.cpu.processors}`); - globals.logger.info(`Physical cores : ${globals.hostInfo.si.cpu.physicalCores}`); - globals.logger.info(`Cores : ${globals.hostInfo.si.cpu.cores}`); - globals.logger.info(`Docker arch. : ${globals.hostInfo.si.cpu.hypervizor}`); - globals.logger.info(`Total memory : ${globals.hostInfo.si.memory.total}`); - globals.logger.info(`Standalone app : ${globals.isPkg}`); + globals.logger.info(`Node version : ${globals.hostInfo.node.nodeVersion}`); + globals.logger.info(`Architecture : ${globals.hostInfo.si.os.arch}`); + globals.logger.info(`Platform : ${globals.hostInfo.si.os.platform}`); + globals.logger.info(`Release : ${globals.hostInfo.si.os.release}`); + globals.logger.info(`Distro : ${globals.hostInfo.si.os.distro}`); + globals.logger.info(`Codename : ${globals.hostInfo.si.os.codename}`); + globals.logger.info(`Virtual : ${globals.hostInfo.si.system.virtual}`); + globals.logger.info(`Processors : ${globals.hostInfo.si.cpu.processors}`); + globals.logger.info(`Physical cores : ${globals.hostInfo.si.cpu.physicalCores}`); + globals.logger.info(`Cores : ${globals.hostInfo.si.cpu.cores}`); + globals.logger.info(`Docker arch. : ${globals.hostInfo.si.cpu.hypervizor}`); + globals.logger.info(`Total memory : ${globals.hostInfo.si.memory.total}`); + globals.logger.info(`Standalone app : ${globals.isPkg}`); // Log info about what Qlik Sense certificates are being used - globals.logger.info(`Client cert : ${certFile}`); - globals.logger.info(`Client cert key : ${keyFile}`); - globals.logger.info(`CA cert : ${caFile}`); + globals.logger.info(`Client cert : ${certFile}`); + globals.logger.info(`Client cert key : ${keyFile}`); + globals.logger.info(`CA cert : ${caFile}`); globals.logger.info('--------------------------------------'); // Set up anon usage reports, if enabled diff --git a/src/globals.js b/src/globals.js index 257a43c0..800139c6 100755 --- a/src/globals.js +++ b/src/globals.js @@ -950,6 +950,7 @@ class Settings { const hostInfo = { id, + isRunningInDocker: Settings.isRunningInDocker(), node: { nodeVersion: process.version, versions: process.versions, diff --git a/src/lib/telemetry.js b/src/lib/telemetry.js index c60f6f0b..509f1d4d 100644 --- a/src/lib/telemetry.js +++ b/src/lib/telemetry.js @@ -149,7 +149,7 @@ const callRemoteURL = async function reportTelemetry() { system_distro: globals.hostInfo.si.os.distro, system_codename: globals.hostInfo.si.os.codename, system_virtual: globals.hostInfo.si.system.virtual, - system_hypervisor: globals.hostInfo.si.os.hypervizor, + system_isRunningInDocker: globals.hostInfo.isRunningInDocker, system_nodeVersion: globals.hostInfo.node.nodeVersion, feature_heartbeat: heartbeat, @@ -188,7 +188,7 @@ const callRemoteURL = async function reportTelemetry() { distro: globals.hostInfo.si.os.distro, codename: globals.hostInfo.si.os.codename, virtual: globals.hostInfo.si.system.virtual, - hypervisor: globals.hostInfo.si.os.hypervizor, + isRunningInDocker: globals.hostInfo.isRunningInDocker, nodeVersion: globals.hostInfo.node.nodeVersion, }, enabledFeatures: {