Java Code Examples for com.netflix.spectator.api.patterns.PolledMeter#remove()
The following examples show how to use
com.netflix.spectator.api.patterns.PolledMeter#remove() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SpectatorMetricRegistry.java From concurrency-limits with Apache License 2.0 | 5 votes |
@Override public void gauge(String id, Supplier<Number> supplier, String... tagNameValuePairs) { Id metricId = suffixBaseId(id).withTags(tagNameValuePairs); PolledMeter.remove(registry, metricId); PolledMeter.using(registry) .withId(metricId) .monitorValue(supplier, ignore -> supplier.get().doubleValue()); }
Example 2
Source File: ScheduleMetrics.java From titus-control-plane with Apache License 2.0 | 5 votes |
void onScheduleRemoved(Schedule schedule) { this.lastSchedule = schedule; currentState.transition(SchedulingState.Failed); PolledMeter.remove(registry, waitingId); PolledMeter.remove(registry, runningId); PolledMeter.remove(registry, cancellingId); }
Example 3
Source File: DefaultLoadBalancerReconciler.java From titus-control-plane with Apache License 2.0 | 5 votes |
@Override public void shutdown() { orphanUpdateMetrics.remove(); removeMetrics.remove(); registeredIpsMetrics.remove(); PolledMeter.remove(registry, ignoredMetricsId); PolledMeter.remove(registry, orphanMetricsId); }
Example 4
Source File: InstrumentedEventLoop.java From titus-control-plane with Apache License 2.0 | 5 votes |
public void shutdown() { if (!worker.isUnsubscribed()) { worker.unsubscribe(); } actionMetrics.values().forEach(ActionMetrics::close); actionMetrics.clear(); PolledMeter.remove(registry, actionsRemainingId); }
Example 5
Source File: MultiNodeClusterMemberResolverMetrics.java From titus-control-plane with Apache License 2.0 | 5 votes |
@Override public void close() { closed = true; PolledMeter.update(registry); PolledMeter.remove(registry, connectionHealthId); PolledMeter.remove(registry, connectionTimeId); }
Example 6
Source File: MultiNodeClusterMemberResolverMetrics.java From titus-control-plane with Apache License 2.0 | 5 votes |
@Override public void close() { closed = true; PolledMeter.update(registry); PolledMeter.remove(registry, memberTimeId); }
Example 7
Source File: MultiNodeClusterMemberResolverMetrics.java From titus-control-plane with Apache License 2.0 | 5 votes |
@Override public void close() { closed = true; PolledMeter.update(registry); PolledMeter.remove(registry, leaderTimeId); }
Example 8
Source File: ReconcilerExecutorMetrics.java From titus-control-plane with Apache License 2.0 | 4 votes |
void shutdown() { PolledMeter.remove(registry, sinceLastEvaluationId); externalActionsQueueSizes.values().forEach(g -> g.set(0)); externalActionsQueueSizes.clear(); }
Example 9
Source File: SchedulerMetrics.java From titus-control-plane with Apache License 2.0 | 4 votes |
void shutdown() { PolledMeter.remove(registry, activeSchedulesId); PolledMeter.remove(registry, archivedSchedulesId); PolledMeter.remove(registry, lastEvaluationId); }
Example 10
Source File: SpectatorRefillStrategyDecorator.java From titus-control-plane with Apache License 2.0 | 4 votes |
public void shutdown() { PolledMeter.remove(registry, timeUntilNextRefillId); }
Example 11
Source File: ActionMetrics.java From titus-control-plane with Apache License 2.0 | 4 votes |
@Override public void close() { PolledMeter.remove(registry, sinceLastExecutionId); }
Example 12
Source File: ContinuousSubscriptionMetrics.java From titus-control-plane with Apache License 2.0 | 4 votes |
public void remove() { shouldRemove.set(true); PolledMeter.remove(registry, timeSinceLastCompleteId); }
Example 13
Source File: ClusterMembershipServiceMetrics.java From titus-control-plane with Apache License 2.0 | 4 votes |
void shutdown() { PolledMeter.remove(registry, knownSiblingsId); updateSiblings(Collections.emptyMap()); }
Example 14
Source File: DefaultKubeLeaderElectionExecutor.java From titus-control-plane with Apache License 2.0 | 4 votes |
@PreDestroy public void shutdown() { PolledMeter.remove(registry, inLeaderElectionProcessMetricId); PolledMeter.remove(registry, isLeaderMetricId); IOExt.closeSilently(lastElectionAttemptAction, electedLeaderRefreshAction); }
Example 15
Source File: SystemQuotaMetrics.java From titus-control-plane with Apache License 2.0 | 4 votes |
void shutdown() { PolledMeter.remove(registry, tokenBucketCapacityId); PolledMeter.remove(registry, tokenBucketRefillRateId); PolledMeter.remove(registry, quotaLevelId); }
Example 16
Source File: KubeOpportunisticResourceProvider.java From titus-control-plane with Apache License 2.0 | 4 votes |
@Deactivator public void shutdown() { PolledMeter.remove(titusRuntime.getRegistry(), cpuSupplyId); Evaluators.acceptNotNull(metricsPollerExecutor, ExecutorService::shutdown); }
Example 17
Source File: DefaultDirectKubeApiServerIntegratorMetrics.java From titus-control-plane with Apache License 2.0 | 4 votes |
void shutdown() { PolledMeter.remove(registry, podGaugeId); }
Example 18
Source File: KubeInformerMetrics.java From titus-control-plane with Apache License 2.0 | 4 votes |
void shutdown() { PolledMeter.remove(titusRuntime.getRegistry(), sizeGaugeId); PolledMeter.remove(titusRuntime.getRegistry(), syncedGaugeId); PolledMeter.remove(titusRuntime.getRegistry(), stalenessGaugeId); }