Open ph opened 7 years ago
I thought they could be disabled. I was just thinking of a as yet unreleased feature.
@jsvd Yes, but officially expose it in the logstash.yml
, the pipeline now support it. But we only use that feature for the monitoring pack.
yeah, I'm +1 on documenting this setting's existence + making sure the web api doesn't freak out when metrics aren't collected.
I personally don't like disabling monitoring information for the entire product. That said, we shouldn't crash when we can't gather any metrics -- we could just log a warning and continue. Other metrics which can be gathered could be very useful. Exposing the ability to disable metrics will mean that at the slightest performance issue, users would first disable this, and we are back to a black box. I think LS should be resilient to failures in collecting metrics and should start normally.
@L4rS6 discovered an issue with our metric collection; it doesn't work when procfs is not mounted. For security reason users can disable the access of procfs, this restriction will make logstash crash at startup.
For me, its a bug and we should resolve #6296, but let's open the discussion should we allow users to be able to disable the metric collection? Because right now 5.0 is not usable in that scenario and there is no workaround until we fixed the issue.