Authored by htoooth

fix

... ... @@ -125,6 +125,7 @@ module.exports = (req, res, next) => {
});
routeInfluxSender.addMessage({
measurement: 'client-info',
tags: {
app: app,
host: item.hostname,
... ...
... ... @@ -9,6 +9,7 @@ module.exports = function(r) {
try {
let s = decode(r);
s = s.replace(/[^\w\/\^\(\)\[\]+-\.\*:]/g, '');
return s;
} catch (e) {
return r;
... ...
... ... @@ -52,7 +52,7 @@ const server = {
} else if (m.measurement === 'error-report') {
errorSender.addMessage(msg2row.errorRouter(m));
} else if (m.measurement === 'process-info') {
m.measurement = 'process1-info';
m.measurement = 'process-info';
_.set(m, 'fields.memory', parseInt(_.get(m, 'fields.memory', '0')));
_.set(m, 'fields.cpu', parseInt(_.get(m, 'fields.cpu', '0')));
routeSender.addMessage(m);
... ...