Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save renshuki/d528f76c12b8422cf11d8fce3056e023 to your computer and use it in GitHub Desktop.
Save renshuki/d528f76c12b8422cf11d8fce3056e023 to your computer and use it in GitHub Desktop.
Remote monitoring cluster configuration for Elasticsearch Service (formely Elastic Cloud)
PUT _cluster/settings
{
  "persistent": {
    "xpack": {
      "monitoring": {
        "collection": {
          "enabled": "true",
          "interval": "10s"
        },
        "exporters": {
          "__no-default-local__": {
            "type": "local",
            "enabled": "false"
          },
          "found-user-defined": {
            "auth": {
               "username": "USER",
               "password": "PASS"
            },
            "host": [
              "https://EXTERNAL_URL_OF_MONITORING_CLUSTER"
            ],
            "type": "http",
            "enabled": "true"
          }
        }
      }
    }
  }
}

A user with at least remote_monitoring_agent role is required to write data in the remote .monitoring indexes of the monitoring cluster

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment