pause-export.asciidoc 1.7 KB

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