Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple metrics #94

Open
Unitech opened this issue Jul 5, 2017 · 2 comments
Open

Multiple metrics #94

Unitech opened this issue Jul 5, 2017 · 2 comments
Labels

Comments

@Unitech
Copy link
Member

Unitech commented Jul 5, 2017

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

@alavit-d
Copy link
Contributor

alavit-d commented Jul 5, 2017

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 alavit-d closed this as completed Jul 5, 2017
@Unitech Unitech reopened this Jul 6, 2017
@Unitech
Copy link
Member Author

Unitech commented Jul 6, 2017

@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 Unitech added the Feature label Jul 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants