-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Monitoring API for Logstash Forwarder #996
Comments
When you say monitoring, do you mean something like nagios / monit but as a beat? |
yes something like nagios/monit/whatever just something to verify the filebeat is shipping (as requested in the other issue). |
There could be several approaches to this:
|
@c33s You can also run with something like You'll get some metrics about the filebeat internals. |
Closing as question. |
please reopen, it is not a question, it is an issue opened on the old repo where @jordansissel said to migrate it to the new repo and maybe a request for documentation enhancement. as far as i understand @ruflin the first solution is to create a monitoring system with filebeat and elasticsearch. so fb & es ARE the monitoring tools metricbeat also look for other services to monitor them. nagioscheckbeat also looks like for monitoring other services but not filebeat itself all three solutions are not really what i am looking for, i am looking for a simple status command integration and a config value as threshold. config in filebeat:
command
results can be "ok" or "error" if the last ACK from the targetserver of filebeat is in the configured 5min interval, this command results in an "ok" if 5minutes or more it results in "error" so everybody can easily add the monitoring tool of his choice to filebeat to ensure filebeat is sending data to its target server. @tsg don't think it is a good thing to activate profiling from the performance perspective, should ther be a simple like at least a step by step info how to monitor filebeat with nagois should be in the docs. |
@c33s My feeling is that #463 will solve your concerns. I'm not sure the |
@c33s The API gives you metrics, but not an overall "OK" status for the reasons that @jordansissel mentioned. |
so calling
should return a similar result like i am currently monitoring the following values (but maybe other values are also good for health checking filebeat):
i agree that it is not as simple as it should at least be possible to add the behavior of |
+1 to having a health REST API. I hear Logstash just got one in v5.0.0 at localhost:9600. Right now, we use Nagios NRPE to remote execute health checks on different boxes. To properly check that Filebeat is healthy and shipping, we have to start the Filebeat service with -httpprof. That's not an optimal solution because: A) We've been told before that the variables in /debug/vars are not stable and may change from time to time. B) It's a pain in the butt to start Filebeat with the -httpprof option! We use Filebeat as a service and -httpprof is not an option in filebeat.yml, So in Ubuntu 16 we have to:
Woof. So a proper health REST API would make our lives a lot easier :) Thanks! |
This is mandatory, in my opinion. Right now you have no idea what filebeat is actually doing, or if it's doing anything. log-courier got this right a long time ago. |
In what kind of way should this monitoring API work? Potentially we want to work on adding prometheus monitoring support or would that be too "heavy"? |
We are planning to expose the expvar metrics through a separate http endpoint so not the whole httpprof has to be run. The data structure will be in json format as that is what we also use internally. |
@kkirsche prometheus sounds to specific for me. the main requirements for me are:
|
I started here a PR for more details discussion on this: #3693 @c33s To your points
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue doesn't have a |
migrated issue from logstash-forwarder elastic/logstash-forwarder#183
@jordansissel
i wasn't able to find any docs about an api/monitoring/status options. is or will there be an api?
is there currently any kind of status/monitoring option?
The text was updated successfully, but these errors were encountered: