mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
16 lines
237 B
JavaScript
16 lines
237 B
JavaScript
|
|
|
|
const pmx = require('pmx');
|
|
const Probe = pmx.probe();
|
|
|
|
var metric = Probe.histogram({
|
|
name : 'Histogram'
|
|
});
|
|
|
|
var latency;
|
|
|
|
setInterval(function() {
|
|
latency = Math.round(Math.random() * 100);
|
|
metric.update(latency);
|
|
}, 100);
|