pmx icon indicating copy to clipboard operation
pmx copied to clipboard

Multiple metrics

Open Unitech opened this issue 8 years ago • 2 comments

https://stackoverflow.com/questions/44896885/pm2-metric-for-ram-usage-multiple-metrics-in-one-pmx-metric

Unitech avatar Jul 05 '17 12:07 Unitech

Hey,

Probe.metric(opts1, opts2) will only evaluate the first argument opts1, so you cannot put several metrics in one declaration. Instead create an object and fill it probe by probe.

There is currently no way to access the CPU or Mem metrics from inside your app, the values are reported by PM2. So unless you calculate them in your code, you will not be able to report cpu_usage or memory_usage values as metrics.

alavit-d avatar Jul 05 '17 14:07 alavit-d

@alavit-d Yes we cannot put multiple metrics, that's why we are here, to maintain and make pmx better right..

Re opening issue

Unitech avatar Jul 06 '17 07:07 Unitech