com.netflix.hystrix.strategy.metrics.HystrixMetricsPublisherThreadPool Java Examples
The following examples show how to use
com.netflix.hystrix.strategy.metrics.HystrixMetricsPublisherThreadPool.
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: MicrometerMetricsPublisherThreadPool.java From micrometer with Apache License 2.0 | 5 votes |
public MicrometerMetricsPublisherThreadPool( final MeterRegistry meterRegistry, final HystrixThreadPoolKey threadPoolKey, final HystrixThreadPoolMetrics metrics, final HystrixThreadPoolProperties properties, final HystrixMetricsPublisherThreadPool metricsPublisherForThreadPool) { this.meterRegistry = meterRegistry; this.metrics = metrics; this.properties = properties; this.metricsPublisherForThreadPool = metricsPublisherForThreadPool; this.tags = Tags.of("key", threadPoolKey.name()); }
Example #2
Source File: HystrixPrometheusMetricsPublisher.java From prometheus-hystrix with Apache License 2.0 | 5 votes |
@Override public HystrixMetricsPublisherThreadPool getMetricsPublisherForThreadPool( HystrixThreadPoolKey threadPoolKey, HystrixThreadPoolMetrics metrics, HystrixThreadPoolProperties properties) { HystrixMetricsPublisherThreadPool delegate = metricsPublisherDelegate.getMetricsPublisherForThreadPool( threadPoolKey, metrics, properties); return new HystrixPrometheusMetricsPublisherThreadPool( collector, threadPoolKey, metrics, properties, exportProperties, delegate); }
Example #3
Source File: HystrixPrometheusMetricsPublisherThreadPool.java From prometheus-hystrix with Apache License 2.0 | 5 votes |
public HystrixPrometheusMetricsPublisherThreadPool( HystrixMetricsCollector collector, HystrixThreadPoolKey key, HystrixThreadPoolMetrics metrics, HystrixThreadPoolProperties properties, boolean exportProperties, HystrixMetricsPublisherThreadPool delegate) { this.metrics = metrics; this.collector = collector; this.properties = properties; this.exportProperties = exportProperties; this.labels = new TreeMap<String, String>(); this.labels.put("pool_name", key.name()); this.delegate = delegate; }
Example #4
Source File: MicrometerMetricsPublisher.java From micrometer with Apache License 2.0 | 4 votes |
@Override public HystrixMetricsPublisherThreadPool getMetricsPublisherForThreadPool(HystrixThreadPoolKey threadPoolKey, HystrixThreadPoolMetrics metrics, HystrixThreadPoolProperties properties) { final HystrixMetricsPublisherThreadPool metricsPublisherForThreadPool = metricsPublisher.getMetricsPublisherForThreadPool(threadPoolKey, metrics, properties); return new MicrometerMetricsPublisherThreadPool(registry, threadPoolKey, metrics, properties, metricsPublisherForThreadPool); }
Example #5
Source File: YammerMetricsPublisher.java From tenacity with Apache License 2.0 | 4 votes |
@Override public HystrixMetricsPublisherThreadPool getMetricsPublisherForThreadPool(HystrixThreadPoolKey threadPoolKey, HystrixThreadPoolMetrics metrics, HystrixThreadPoolProperties properties) { return new HystrixCodaHaleMetricsPublisherThreadPool("", threadPoolKey, metrics, properties, metricRegistry); }