ElasticHQ / elasticsearch-HQ

Monitoring and Management Web Application for ElasticSearch instances and clusters.
http://www.elastichq.org
Other
4.96k stars 530 forks source link

[Contrib] - ElasticHQ on OpenShift #463

Closed ricardozanini closed 5 years ago

ricardozanini commented 5 years ago

Hi!

I just would like to share that I've managed to install ElasticHQ on OpenShift cluster successfully to monitor the internal logging indices. Could be a little tricky because the ES on OpenShift requires certificate keys to access the internal monitoring API.

I've managed to get it work by adding a NGINX proxy in front of the ES service. This way, the ElasticHQ container could easily connect to it.

The how-to and the artifacts produced for this to work could be found at: https://github.com/ricardozanini/elastic-hq-openshift

If the community agrees, I can send a PR to add this to the README.md.

Another idea that could work is adding client certificate authentication to the ConnectionService.py class.

Best wishes,

royrusso commented 5 years ago

Hi Ricardo,

Thank you. This is helpful, and I will add this to the docs. I'm curious if you have the websocket screens (metrics) working. This is a problem people seem to experience fronting with nginx.

ricardozanini commented 5 years ago

Hi Roy!

Yup, websockets are working as intended! :)

Do you mind merging a PR with the assets of my repo? So I could archive mine, adding the OpenShift templates directly into the ElasticHQ sources.

royrusso commented 5 years ago

Yes. Just give me time to review it, but that makes sense. You have some documentation there that is also helpful, so it may be good to merge that in as well, under one folder.

ricardozanini commented 5 years ago

While working in the PR, I wrote a little article to give more background info to deploy ElasticHQ on OpenShift: https://medium.com/@ricardozanini/how-to-monitor-openshift-elasticsearch-logging-with-elastichq-fe641a6b04e3

As soon as we merge the PR, I'll edit the article to refer to this repo. :)

ricardozanini commented 5 years ago

@royrusso do you mind taking a look at the feature before I open the PR?

https://github.com/ricardozanini/elasticsearch-HQ/tree/feature/openshift_deploy

Added a little section in the main README.md and the openshift directory with all the assets into it.

thanks!

royrusso commented 5 years ago

Looks good, at least from my read-thru. I really appreciate the help. I have many open tickets on getting metrics working with nginx, and this may have, in an unintended way, solved them. I need to test that.

ricardozanini commented 5 years ago

@royrusso if you want to see the metrics working, I uploaded a screenshot on the Medium article: https://cdn-images-1.medium.com/max/1600/1*ezZV-MN3BtpPeSriF7OZFw.png

royrusso commented 5 years ago

Yep. I read the article and saw it there.

royrusso commented 5 years ago

Merged. I may take pieces of it and add to the online docs. Specially if the NGINX config solves the issue people are having with websockets + metrics.

ricardozanini commented 5 years ago

Nice Roy! Please, do whatever you feel it needs to :)