Search code examples
elasticsearchlogstashdatadogmetricbeat

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


We have an elasticsearch cluster deployed to the Elastic Cloud and would like to send monitoring/health metrics to Datadog. What is the best way to do that?

It seems like our options are:

  • Installing the datadog agent binary via the plugins upload
  • Using metric beat -> logstash -> datadog_metrics output

Solution

  • 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.