-
Notifications
You must be signed in to change notification settings - Fork 715
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
Cannot use Stack Monitoring to have Elasticsearch monitor itself #4709
Comments
I've thought a bit more about this, and on the whole I think this is not super important for ECK or ECE (though ECE supports it). I think we see this more with ESS customers, mostly because some customers don't want to setup another cluster for monitoring. Our recommendation (best practices) is to setup a separate cluster for monitoring, because it helps when your monitored cluster is overwhelmed and with separation of concerns. I'd not call this a bug, but just a limitation for now, and see if we get requests for this. |
Hi, guys. |
@shubhaat is it also recommended to have a separate Kibana instance dedicated to only displaying Stack Monitoring? (Separate from a 'main' Kibana instance used to discover/search data from a 'main' Elasticsearch instance.) |
Yes, that would be the case @brsolomon-deloitte. A self monitoring cluster is easier to setup, but if your cluster goes down so does your monitoring cluster which can be inconvenient. For production usecases it is recommended setting up a separate monitoring cluster so when the monitored cluster is under stress, the monitoring cluster continues to work, and is any alerts and such still work. |
Update: with #5339 it almost works because now we avoid to deploy ES with an invalid monitoring config but it remains a tricky issue. The Elasticsearch controller starts by reconciling the required k8s objects for ES (http/transport secrets and services, user/role secrets, ...). The bug is caused because we consider that the association is configured and we configure monitoring iff the
|
SummaryIf you have an Elasticsearch resource and its associations are configured. We populate a map of
This map is not persisted, only set at runtime:
If there is an update to the ES resource:
It resets the map! Note: there are several places during the ES reconciliation where we update the resource for safety reason. For example, we don't want to reboostrap a cluster already bootstrapped. Ideas to solve that
|
Configuring an Elasticsearch cluster to monitor itself is not possible due to a circular dependency issue (#4627).
The Elasticsearch monitoring cluster referenced in
monitoring.metrics
andmonitoring.logs
must be a separate cluster.This is currently documented as a limitation:
cloud-on-k8s/docs/advanced-topics/stack-monitoring.asciidoc
Line 65 in a6efd82
The text was updated successfully, but these errors were encountered: