How to monitor an ElasticSearch Cluster on the Elastic Cloud with Datadog? How to monitor an ElasticSearch Cluster on the Elastic Cloud with Datadog? elasticsearch elasticsearch

How to monitor an ElasticSearch Cluster on the Elastic Cloud with Datadog?


You can deploy the Datadog agent in a container / instance that you manage and the configure it according to these instructions to gather metrics from the remote ElasticSearch cluster that is hosted on Elastic Cloud. You need to create a conf.yaml file in the elastic.d/ directory and provide the required information (Elasticsearch endpoint/URL, username, password, port, etc) for the agent to be able to connect to the cluster. You may find a sample configuration file here.


As George Tseres mentioned above, the way I had to get this working was to set up collection on a separate instance (through docker) and then to configure it to read the specific Elastic Cloud instances.

I ended up making this: https://github.com/crwang/datadog-elasticsearch, building that docker image, and then pushing it up to AWS ECR.

Then, I spun up a Fargate service / task to run the container.

I also set it to run locally with docker-compose as a test.