com.netflix.hystrix.contrib.servopublisher
Class HystrixServoMetricsPublisherCommand
java.lang.Object
com.netflix.hystrix.contrib.servopublisher.HystrixServoMetricsPublisherCommand
- All Implemented Interfaces:
- com.netflix.hystrix.strategy.metrics.HystrixMetricsPublisherCommand
public class HystrixServoMetricsPublisherCommand
- extends java.lang.Object
- implements com.netflix.hystrix.strategy.metrics.HystrixMetricsPublisherCommand
Implementation of HystrixMetricsPublisherCommand using Servo (https://github.com/Netflix/servo)
|
Constructor Summary |
HystrixServoMetricsPublisherCommand(com.netflix.hystrix.HystrixCommandKey commandKey,
com.netflix.hystrix.HystrixCommandGroupKey commandGroupKey,
com.netflix.hystrix.HystrixCommandMetrics metrics,
com.netflix.hystrix.HystrixCircuitBreaker circuitBreaker,
com.netflix.hystrix.HystrixCommandProperties properties)
|
|
Method Summary |
protected com.netflix.servo.monitor.Monitor<?> |
getCumulativeCountForEvent(java.lang.String name,
com.netflix.hystrix.HystrixCommandMetrics metrics,
com.netflix.hystrix.util.HystrixRollingNumberEvent event)
|
protected com.netflix.servo.monitor.Monitor<?> |
getRollingCountForEvent(java.lang.String name,
com.netflix.hystrix.HystrixCommandMetrics metrics,
com.netflix.hystrix.util.HystrixRollingNumberEvent event)
|
protected com.netflix.servo.tag.Tag |
getServoInstanceTag()
|
protected com.netflix.servo.tag.Tag |
getServoTypeTag()
|
void |
initialize()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HystrixServoMetricsPublisherCommand
public HystrixServoMetricsPublisherCommand(com.netflix.hystrix.HystrixCommandKey commandKey,
com.netflix.hystrix.HystrixCommandGroupKey commandGroupKey,
com.netflix.hystrix.HystrixCommandMetrics metrics,
com.netflix.hystrix.HystrixCircuitBreaker circuitBreaker,
com.netflix.hystrix.HystrixCommandProperties properties)
initialize
public void initialize()
- Specified by:
initialize in interface com.netflix.hystrix.strategy.metrics.HystrixMetricsPublisherCommand
getServoTypeTag
protected com.netflix.servo.tag.Tag getServoTypeTag()
getServoInstanceTag
protected com.netflix.servo.tag.Tag getServoInstanceTag()
getCumulativeCountForEvent
protected com.netflix.servo.monitor.Monitor<?> getCumulativeCountForEvent(java.lang.String name,
com.netflix.hystrix.HystrixCommandMetrics metrics,
com.netflix.hystrix.util.HystrixRollingNumberEvent event)
getRollingCountForEvent
protected com.netflix.servo.monitor.Monitor<?> getRollingCountForEvent(java.lang.String name,
com.netflix.hystrix.HystrixCommandMetrics metrics,
com.netflix.hystrix.util.HystrixRollingNumberEvent event)