-
Notifications
You must be signed in to change notification settings - Fork 4
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
Is it possible to export the pm2 app status ? #5
Comments
Hello @dinkonin Interesting question. But what a problem do you want to resolve with it? |
Basically I monitor a server with 20+ apps ran by pm2, sometimes one of them errors out, or gets stopped accidentally by a developer and then forgotten. Ideally I would like to have an alertmanager rule for this situation and a timestamp of the exact time. It would also provide a nice overview of running/stopped apps in grafana. |
@dinkonin Ok, i will investigate what i can do here. But now i guess you can use |
This is exactly why |
@dinkonin yes, make sense. But anyway, i will do it in t next 2.4.0 release |
Also currently i monitor this using node_exporter text collector, but it would be awesome if it's integrated in your app Here is the bash script that generates the .prom fie
|
Can we get a metric of the pm2 app status i.e.
pm2_app_status{job="XXX",app="YYY"} $STATUS
?Value mapped for example "online" = 1 , "stopped" = 0, "errored" = 2 would be awesome.
The text was updated successfully, but these errors were encountered: