-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
added result_code field #5043
added result_code field #5043
Conversation
You can get this information from the The reason we used a separate measurement is because it is possible to search for multiple processes using a regular expression, and since we don't know the pid or how many metrics will be created we can't always add a new value to the series. |
Hello. Yes, we tested procstat_lookup. The problem is that even if the application is not running, but the pid file exists (application crashed), then pid_count! = 0. What makes it impossible to use it. And in our company, monitoring is mainly organized precisely by the pid-file. |
Perhaps you can leverage the fact that the |
We tried to use deadmean. faced another problem. If the application is no longer in use (removed from the monitoring agent), the deadmean continues to send alerts. This creates serious problems when monitoring thousands of applications. |
Wouldn't you have the same problem with this? If the process is removed the alert must be removed as well. |
If you are not using the deadmean, you can determine that the application has been removed. The list of applications often changes on the servers. |
Okay, thanks for helping me understand. This change has been proposed in the paste unfortunately it doesn't work well with some configurations. For example:
This normally creates something like:
But if the process isn't found, we are unable to set most of the tags and of course none of the fields, which would leave us with something like:
It gets even more complicated and strange when you use a pattern that matches multiple processes. Perhaps instead we could add more info to the
|
We can't actually detect any distinction between these generally in the procstat plugin, but it sounds like you have been defining it as when a pidfile exists but the process is not found. With the idea above it would be if the two fields, |
I understood. Yes, this is a good option. |
Hello,
added the result_code field to the procstate input plugin, similar to the http_response and net_response plugins.
result_code (int, success = 0, not_running = 1, error_getting_process = 2)
Please consider the request.