Enabling and disabling DSE Metrics Collector

Steps to enable and disable DSE Metrics Collector.

Enable DSE Metrics Collector to aggregate and collect metrics in a meaningful way to provide fast, accurate problem resolution that system administrators and DataStax Support can use to troubleshoot problems.

Enabling DSE Metrics Collector

Steps to enable DSE Metrics Collector.

DSE Metrics Collector must be enabled to aggregate and collect metrics.

DSE Metrics Collector is enabled by default in DSE 6.7.

Procedure

  1. To view the current configuration:
    dsetool insights_config --show_config
    The results of the default configuration show that the DSE Metrics Collector is enabled with local storage:
    {
      "mode" : "ENABLED_WITH_LOCAL_STORAGE",
      "config_refresh_interval_in_seconds" : 30,
      "metric_sampling_interval_in_seconds" : 30,
      "data_dir_max_size_in_mb" : 1024,
      "node_system_info_report_period" : "PT1H"
    }
  2. If the current configuration is disabled, use the dsetool insights_config command to change the mode.
    • To enable metrics collection with local storage:
      dsetool insights_config --mode ENABLED_WITH_LOCAL_STORAGE
    • To enable metrics collection for reporting to a real-time monitoring system:
      dsetool insights_config --mode ENABLED_NO_STORAGE

Results

DSE Metrics Collector is enabled. Restarting DSE is not required. See Configuring the data and log directories for DSE Metrics Collector.

Disabling DSE Metrics Collector

Steps to disable DSE Metrics Collector.

  1. To view the current configuration:
    dsetool insights_config --show_config
    For example, the default mode results show that DSE Metrics Collector is enabled with local storage:
    {
      "mode" : "ENABLED_WITH_LOCAL_STORAGE",
      "config_refresh_interval_in_seconds" : 30,
      "metric_sampling_interval_in_seconds" : 30,
      "data_dir_max_size_in_mb" : 1024,
      "node_system_info_report_period" : "PT1H"
    }
  2. To disable the DSE Metrics Collector, use the dsetool insights_config command to change the mode.
    dsetool insights_config --mode DISABLED
  3. To view the current configuration:
    dsetool insights_config --show_config
    When disabled, the results show that DSE Metrics Collector is enabled with local storage:
    {
      "mode" : "DISABLED",
      "config_refresh_interval_in_seconds" : 30,
      "metric_sampling_interval_in_seconds" : 30,
      "data_dir_max_size_in_mb" : 1024,
      "node_system_info_report_period" : "PT1H"
    }

Results

DSE Metrics Collector is disabled. Restarting DSE is not required.