mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 19:58:09 +00:00
Fix using wrong stats token (#7127)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
82f0d00170
commit
8a08a22f02
@ -99,7 +99,6 @@ export function initStatisticsContext (
|
||||
console.info('storing measurements into local file', metricsFile)
|
||||
}
|
||||
let oldMetricsValue = ''
|
||||
const token = generateToken(systemAccountEmail, { name: '' }, { service: 'true' })
|
||||
const serviceId = encodeURIComponent(os.hostname() + '-' + serviceName)
|
||||
|
||||
const intTimer = setInterval(() => {
|
||||
@ -118,6 +117,7 @@ export function initStatisticsContext (
|
||||
}
|
||||
}
|
||||
if (statsUrl !== undefined) {
|
||||
const token = generateToken(systemAccountEmail, { name: '' }, { service: 'true' })
|
||||
const data: ServiceStatistics = {
|
||||
serviceName,
|
||||
cpu: getCPUInfo(),
|
||||
|
Loading…
Reference in New Issue
Block a user