2 つのサービスがpingあり、pongwhere は にpingリクエストを送信しますpong。このメトリックは、サービスの/metricsエンドポイントに表示されます。ping
gauge.servo.hystrix.hystrixcommand.http://pong.pongclient#hello().90
/prometheusしかし、エンドポイントには表示されません。このエンドポイントには他のメトリックが表示されますが、Feign/Hystrix http 要求に関する情報を含むサーボ メトリックは表示されません。
/prometheusこれらのメトリックをエンドポイントに表示するにはどうすればよいですか?
私は自分に次の依存関係を持っていますbuild.gradle
compile 'org.springframework.boot:spring-boot-starter-web'
compile 'org.springframework.boot:spring-boot-starter-actuator'
compile 'org.springframework.cloud:spring-cloud-starter-eureka'
compile 'org.springframework.cloud:spring-cloud-starter-hystrix'
compile 'org.springframework.cloud:spring-cloud-starter-feign'
compile 'org.springframework.retry:spring-retry'
compile "io.micrometer:micrometer-core:${micrometerVersion}"
compile "io.micrometer:micrometer-spring-legacy:${micrometerVersion}"
compile "io.micrometer:micrometer-registry-prometheus:${micrometerVersion}"
以下のバージョンで
springCloudVersion = 'Dalston.SR4'
micrometerVersion = '1.0.0-rc.4'