pause-export.asciidoc 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. [role="xpack"]
  2. [[pause-export]]
  3. === Pausing data collection
  4. To stop generating {monitoring} data in {es}, disable data collection:
  5. [source,yaml]
  6. ---------------------------------------------------
  7. xpack.monitoring.collection.enabled: false
  8. ---------------------------------------------------
  9. When this setting is `false`, {es} monitoring data is not collected and all
  10. monitoring data from other sources such as {kib}, Beats, and Logstash is ignored.
  11. You can update this setting by using the
  12. {ref}/cluster-update-settings.html[Cluster Update Settings API].
  13. If you want to collect data from sources such as {kib}, Beats, and Logstash but
  14. not collect data about your {es} cluster, you can disable data collection
  15. just for {es}:
  16. [source,yaml]
  17. ---------------------------------------------------
  18. xpack.monitoring.collection.enabled: true
  19. xpack.monitoring.elasticsearch.collection.enabled: false
  20. ---------------------------------------------------
  21. If you want to separately disable a specific exporter, you can specify the
  22. `enabled` setting (which defaults to `true`) per exporter. For example:
  23. [source,yaml]
  24. ---------------------------------------------------
  25. xpack.monitoring.exporters.my_http_exporter:
  26. type: http
  27. host: ["10.1.2.3:9200", "10.1.2.4:9200"]
  28. enabled: false <1>
  29. ---------------------------------------------------
  30. <1> Disable the named exporter. If the same name as an existing exporter is not
  31. used, then this will create a completely new exporter that is completely
  32. ignored. This value can be set dynamically by using cluster settings.
  33. NOTE: Defining a disabled exporter prevents the default exporter from being
  34. created.
  35. To re-start data collection, re-enable these settings.