/** * Release all associated metrics. */ public void release() { for(String name : allMetrics) { Metrics.remove(factory.createMetricName(name)); } // latency metrics contain multiple metrics internally and need to be released manually readLatency.release(); writeLatency.release(); rangeLatency.release(); }
/** * Release all associated metrics. */ public void release() { for(String name : allMetrics) { Metrics.remove(factory.createMetricName(name)); } // latency metrics contain multiple metrics internally and need to be released manually readLatency.release(); writeLatency.release(); rangeLatency.release(); }
/** * Release all associated metrics. */ public void release() { for(String name : allMetrics) { Metrics.remove(factory.createMetricName(name)); } // latency metrics contain multiple metrics internally and need to be released manually readLatency.release(); writeLatency.release(); rangeLatency.release(); }
/** * Release all associated metrics. */ public void release() { for(String name : allMetrics) { Metrics.defaultRegistry().removeMetric(factory.createMetricName(name)); } // latency metrics contain multiple metrics internally and need to be released manually readLatency.release(); writeLatency.release(); rangeLatency.release(); }
public void release() { super.release(); Metrics.remove(factory.createMetricName("Timeouts")); Metrics.remove(factory.createMetricName("Unavailables")); Metrics.remove(factory.createMetricName("Failures")); } }
public void release() { super.release(); Metrics.remove(factory.createMetricName("Timeouts")); Metrics.remove(factory.createMetricName("Unavailables")); Metrics.remove(factory.createMetricName("Failures")); } }
public void release() { super.release(); Metrics.remove(factory.createMetricName("Timeouts")); Metrics.remove(factory.createMetricName("Unavailables")); Metrics.remove(factory.createMetricName("Failures")); } }
public void release() { super.release(); Metrics.defaultRegistry().removeMetric(factory.createMetricName("Timeouts")); Metrics.defaultRegistry().removeMetric(factory.createMetricName("Unavailables")); } }
/** * Release all associated metrics. */ public void release() { for(Map.Entry<String, String> entry : all.entrySet()) { CassandraMetricsRegistry.MetricName name = factory.createMetricName(entry.getKey()); CassandraMetricsRegistry.MetricName alias = aliasFactory.createMetricName(entry.getValue()); final Metric metric = Metrics.getMetrics().get(name.getMetricName()); if (metric != null) { // Metric will be null if it's a view metric we are releasing. Views have null for ViewLockAcquireTime and ViewLockReadTime allTableMetrics.get(entry.getKey()).remove(metric); Metrics.remove(name, alias); } } readLatency.release(); writeLatency.release(); rangeLatency.release(); Metrics.remove(factory.createMetricName("EstimatedPartitionSizeHistogram"), aliasFactory.createMetricName("EstimatedRowSizeHistogram")); Metrics.remove(factory.createMetricName("EstimatedPartitionCount"), aliasFactory.createMetricName("EstimatedRowCount")); Metrics.remove(factory.createMetricName("EstimatedColumnCountHistogram"), aliasFactory.createMetricName("EstimatedColumnCountHistogram")); Metrics.remove(factory.createMetricName("KeyCacheHitRate"), aliasFactory.createMetricName("KeyCacheHitRate")); Metrics.remove(factory.createMetricName("CoordinatorReadLatency"), aliasFactory.createMetricName("CoordinatorReadLatency")); Metrics.remove(factory.createMetricName("CoordinatorScanLatency"), aliasFactory.createMetricName("CoordinatorScanLatency")); Metrics.remove(factory.createMetricName("WaitingOnFreeMemtableSpace"), aliasFactory.createMetricName("WaitingOnFreeMemtableSpace")); }
/** * Release all associated metrics. */ public void release() { for(Map.Entry<String, String> entry : all.entrySet()) { CassandraMetricsRegistry.MetricName name = factory.createMetricName(entry.getKey()); CassandraMetricsRegistry.MetricName alias = aliasFactory.createMetricName(entry.getValue()); final Metric metric = Metrics.getMetrics().get(name.getMetricName()); if (metric != null) { // Metric will be null if it's a view metric we are releasing. Views have null for ViewLockAcquireTime and ViewLockReadTime allTableMetrics.get(entry.getKey()).remove(metric); Metrics.remove(name, alias); } } readLatency.release(); writeLatency.release(); rangeLatency.release(); Metrics.remove(factory.createMetricName("EstimatedPartitionSizeHistogram"), aliasFactory.createMetricName("EstimatedRowSizeHistogram")); Metrics.remove(factory.createMetricName("EstimatedPartitionCount"), aliasFactory.createMetricName("EstimatedRowCount")); Metrics.remove(factory.createMetricName("EstimatedColumnCountHistogram"), aliasFactory.createMetricName("EstimatedColumnCountHistogram")); Metrics.remove(factory.createMetricName("KeyCacheHitRate"), aliasFactory.createMetricName("KeyCacheHitRate")); Metrics.remove(factory.createMetricName("CoordinatorReadLatency"), aliasFactory.createMetricName("CoordinatorReadLatency")); Metrics.remove(factory.createMetricName("CoordinatorScanLatency"), aliasFactory.createMetricName("CoordinatorScanLatency")); Metrics.remove(factory.createMetricName("WaitingOnFreeMemtableSpace"), aliasFactory.createMetricName("WaitingOnFreeMemtableSpace")); }
/** * Release all associated metrics. */ public void release() { for(Map.Entry<String, String> entry : all.entrySet()) { CassandraMetricsRegistry.MetricName name = factory.createMetricName(entry.getKey()); CassandraMetricsRegistry.MetricName alias = aliasFactory.createMetricName(entry.getValue()); final Metric metric = Metrics.getMetrics().get(name.getMetricName()); if (metric != null) { // Metric will be null if it's a view metric we are releasing. Views have null for ViewLockAcquireTime and ViewLockReadTime allTableMetrics.get(entry.getKey()).remove(metric); Metrics.remove(name, alias); } } readLatency.release(); writeLatency.release(); rangeLatency.release(); Metrics.remove(factory.createMetricName("EstimatedPartitionSizeHistogram"), aliasFactory.createMetricName("EstimatedRowSizeHistogram")); Metrics.remove(factory.createMetricName("EstimatedPartitionCount"), aliasFactory.createMetricName("EstimatedRowCount")); Metrics.remove(factory.createMetricName("EstimatedColumnCountHistogram"), aliasFactory.createMetricName("EstimatedColumnCountHistogram")); Metrics.remove(factory.createMetricName("KeyCacheHitRate"), aliasFactory.createMetricName("KeyCacheHitRate")); Metrics.remove(factory.createMetricName("CoordinatorReadLatency"), aliasFactory.createMetricName("CoordinatorReadLatency")); Metrics.remove(factory.createMetricName("CoordinatorScanLatency"), aliasFactory.createMetricName("CoordinatorScanLatency")); Metrics.remove(factory.createMetricName("WaitingOnFreeMemtableSpace"), aliasFactory.createMetricName("WaitingOnFreeMemtableSpace")); }
/** * Release all associated metrics. */ public void release() { for(String name : all) { allColumnFamilyMetrics.get(name).remove(Metrics.defaultRegistry().allMetrics().get(factory.createMetricName(name))); Metrics.defaultRegistry().removeMetric(factory.createMetricName(name)); } readLatency.release(); writeLatency.release(); rangeLatency.release(); Metrics.defaultRegistry().removeMetric(factory.createMetricName("EstimatedRowSizeHistogram")); Metrics.defaultRegistry().removeMetric(factory.createMetricName("EstimatedRowCount")); Metrics.defaultRegistry().removeMetric(factory.createMetricName("EstimatedColumnCountHistogram")); Metrics.defaultRegistry().removeMetric(factory.createMetricName("KeyCacheHitRate")); Metrics.defaultRegistry().removeMetric(factory.createMetricName("CoordinatorReadLatency")); Metrics.defaultRegistry().removeMetric(factory.createMetricName("CoordinatorScanLatency")); Metrics.defaultRegistry().removeMetric(factory.createMetricName("WaitingOnFreeMemtableSpace")); }