Loading...

X-Pack Monitoring is a commercial monitoring extension from Elastic.

Elasticsearch

Disable and enable Monitoring

PUT _cluster/settings
{
  "persistent": {
    "xpack.monitoring.collection.interval": -1
  }
}

Controls how often data samples are collected. Defaults to 10s. If you modify the collection interval, set the xpack.monitoring.min_interval_seconds option in kibana.yml to the same value. Set to -1 to temporarily disable data collection. You can update this setting through the Cluster Update Settings API.

PUT _cluster/settings
{
  "persistent": {
    "xpack.monitoring.collection.interval": "10s"
  }
}

elasticsearch.yml:

relative to config directory

xpack:
  ssl:
    key:                     certs/node.key
    certificate:             certs/node.crt
    certificate_authorities:
      - "certs/ca.crt"
      - "certs/ElasticCloudCaChain.pem"

Kibana

Kibana settings are stored in kibana.yml

Enable Monitoring view in Kibana

xpack.monitoring.enabled: true

Dedicated Remote Monitoring Instance, set monitoring endpoint

xpack.monitoring.elasticsearch:
  url: "https://elasticsearch:9210"
  username: "remote_monitoring_agent"
  password: "lemapper"
  ssl.certificateAuthorities: "/opt/kibana/ssl/ca.crt"

disable monitoring view

xpack.monitoring.ui.enabled: false
xpack.monitoring.ui.container.elasticsearch.enabled: true