Morning.
Are there any application templates for Elasticsearch? We have a new cluster going into production, and before i stump up for Marvel Marvel | Elastic - i wondered iff SAM could do anything.
Cheers!
Hello Selspiero!
I too have a need to monitor Elasticsearch. To answer your question, no. There are no readily available SAM templates to monitor an ES cluster.
The only option is to build one on your own for now. I plan on doing that myself. Hopefully I'll be able to share something in the content exchange over time.
To share what we are currently doing our environment:
We have NPM v12 & SAM v6.2.4. We are using Orion to monitor the uptime availability and vital statistics of our Elasticsearch cluster members, as well as our Logstash indexer servers. This is bare minumum for now in my opinion. What we hope to do is eventually configure a SAM template that is able to gather most if not all of the same metric data that Marvel, ElasticHQ, Kopf, or other similar tools to monitor the operating state of Elasticsearch do. The problem lies with the ability to execute JSON/API calls directly to the ES cluster to get the metrics. I'm sure it can be done in some way. We just aren't sure how yet.
Another thing to note: Since Elasticsearch requires Java so monitoring JVMs might be required as well. No idea yet until I dive in and really try to see what we can monitor with SAM.
Side note: If you intend on using Elasticsearch in a prod environment, you will definitely want to opt-in for support and pay for Marvel anyway. Their support is pretty awesome. But totally understand if it is out of your budget.
Selspiero,
I finally got around to creating those SAM templates for monitoring Elasticsearch clusters! I'll write up an article on how I did this and why a bit later.
Here you go!
Elasticsearch Cluster Health Monitor (no security)
Elasticsearch Cluster Health Monitor (with security)
Do You use in windows server or linux??? I have a linux and need to monitor this services.
cjfranca It'll be Windows as it's collecting the stats via Powershell.
Hi cjfranca, did you manage to find a Template for the Linux ?
thanks,
I imagine that the need for this has been dealt with, but in case people do a forum search and find this topic like I did, this SAM template for elasticsearch does use powershell, but it executes on the polling engine to pull data from the linux server running the application from API's. Its a good template, give it a shot.