Skip to content

Commit

Permalink
Remove redundant ClusterManagerThrottlingMetricsCollector (#582)
Browse files Browse the repository at this point in the history
* Remove redundant ClusterManagerThrottlingMetricsCollector

Signed-off-by: Khushboo Rajput <[email protected]>

* Fix typo in ClusterManagerServiceEventMetrics

Signed-off-by: Khushboo Rajput <[email protected]>

---------

Signed-off-by: Khushboo Rajput <[email protected]>
  • Loading branch information
khushbr authored Oct 10, 2023
1 parent 951df93 commit 9e2b749
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 231 deletions.
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ jacocoTestReport {
],
exclude: [
'**/FaultDetectionMetricsCollector.class',
'**/ClusterManagerThrottlingMetricsCollector.class',
'**/ClusterSettingsManager.class',
])
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
import org.opensearch.performanceanalyzer.collectors.ClusterApplierServiceStatsCollector;
import org.opensearch.performanceanalyzer.collectors.ClusterManagerServiceEventMetrics;
import org.opensearch.performanceanalyzer.collectors.ClusterManagerServiceMetrics;
import org.opensearch.performanceanalyzer.collectors.ClusterManagerThrottlingMetricsCollector;
import org.opensearch.performanceanalyzer.collectors.ElectionTermCollector;
import org.opensearch.performanceanalyzer.collectors.FaultDetectionMetricsCollector;
import org.opensearch.performanceanalyzer.collectors.NodeDetailsCollector;
Expand Down Expand Up @@ -217,9 +216,6 @@ public PerformanceAnalyzerPlugin(final Settings settings, final java.nio.file.Pa
performanceAnalyzerController, configOverridesWrapper));
scheduledMetricCollectorsExecutor.addScheduledMetricCollector(
new ShardStateCollector(performanceAnalyzerController, configOverridesWrapper));
scheduledMetricCollectorsExecutor.addScheduledMetricCollector(
new ClusterManagerThrottlingMetricsCollector(
performanceAnalyzerController, configOverridesWrapper));
scheduledMetricCollectorsExecutor.addScheduledMetricCollector(
new ClusterApplierServiceStatsCollector(
performanceAnalyzerController, configOverridesWrapper));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public void collectMetrics(long startTime) {
| IllegalAccessException
| ClassNotFoundException e) {
LOG.debug(
"[ {} ] Exception raised while getting Cluster Manager throttling metrics: {} ",
"[ {} ] Exception raised while getting Cluster Manager Service Event metrics: {} ",
this::getCollectorName,
e::getMessage);
StatsCollector.instance()
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ public static void configureMetrics() {
MetricsConfiguration.CONFIG_MAP.put(ClusterManagerServiceMetrics.class, cdefault);
MetricsConfiguration.CONFIG_MAP.put(FaultDetectionMetricsCollector.class, cdefault);
MetricsConfiguration.CONFIG_MAP.put(ShardStateCollector.class, cdefault);
MetricsConfiguration.CONFIG_MAP.put(
ClusterManagerThrottlingMetricsCollector.class, cdefault);
MetricsConfiguration.CONFIG_MAP.put(ClusterApplierServiceStatsCollector.class, cdefault);
MetricsConfiguration.CONFIG_MAP.put(SearchBackPressureStatsCollector.class, cdefault);
MetricsConfiguration.CONFIG_MAP.put(ElectionTermCollector.class, cdefault);
Expand Down

This file was deleted.

0 comments on commit 9e2b749

Please sign in to comment.