mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-25 01:39:53 +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)
|
console.info('storing measurements into local file', metricsFile)
|
||||||
}
|
}
|
||||||
let oldMetricsValue = ''
|
let oldMetricsValue = ''
|
||||||
const token = generateToken(systemAccountEmail, { name: '' }, { service: 'true' })
|
|
||||||
const serviceId = encodeURIComponent(os.hostname() + '-' + serviceName)
|
const serviceId = encodeURIComponent(os.hostname() + '-' + serviceName)
|
||||||
|
|
||||||
const intTimer = setInterval(() => {
|
const intTimer = setInterval(() => {
|
||||||
@ -118,6 +117,7 @@ export function initStatisticsContext (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (statsUrl !== undefined) {
|
if (statsUrl !== undefined) {
|
||||||
|
const token = generateToken(systemAccountEmail, { name: '' }, { service: 'true' })
|
||||||
const data: ServiceStatistics = {
|
const data: ServiceStatistics = {
|
||||||
serviceName,
|
serviceName,
|
||||||
cpu: getCPUInfo(),
|
cpu: getCPUInfo(),
|
||||||
|
Loading…
Reference in New Issue
Block a user