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