Enabling and disabling DSE Metrics Collector
DSE Metrics Collector aggregates and collects 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
DSE Metrics Collector must be enabled to aggregate and collect metrics.
DSE Metrics Collector is enabled by default in DSE 6.7.
Procedure
-
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" }
-
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. The configuration mode persists after DSE is restarted. See Configuring the data and log directories for DSE Metrics Collector.
Disabling DSE Metrics Collector
Procedure
-
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" }
-
To disable the DSE Metrics Collector, use the dsetool insights_config command to change the mode.
dsetool insights_config --mode DISABLED
-
To view the current configuration:
dsetool insights_config --show_config
When disabled, the results show that DSE Metrics Collector is disabled:
{ "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. The configuration mode persists after DSE is restarted.