Suggestion: Adding diagnostic tools to the Elasticsearch Docker image


(Victor Vess) #1

I am working through an open support ticket, and one of the requests from the engineer was to pull diagnostics (https://github.com/elastic/elasticsearch-support-diagnostics) for my cluster. It got me thinking this might be a worthwhile enhancement:

Our cluster uses the official Elasticsearch docker image. I know I could just use the "remote" option on diagnostics, but that disables collection of logs/configs. I'd like to avoid that if possible and collect as much as I can.

I am wondering if it would make sense to include a build of the diagnostics tool (and dependencies) inside the official ES Docker image? I found it a bit awkward to mount the diagnostics into the container to run inside, and when I do so some of the tool dependencies are missing from the alpine container (e.g. jps, jstack, ss/netstat).

Maybe also allow the diagnostic tool to stream the output to stdout, so I can do something like "docker exec -it elasticsearch diagnostics.sh --host localhost --stdout" to be able to pipe it into something outside the running container?


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.